Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

chore: require always two lines (#4068)

Richard Shiuebb4b98768113
diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/home/recent_folder/mobile_recent_view.dart b/frontend/appflowy_flutter/lib/mobile/presentation/home/recent_folder/mobile_recent_view.dart
index 1f8ef5b2cf..a58aaa8c50 100644
--- a/frontend/appflowy_flutter/lib/mobile/presentation/home/recent_folder/mobile_recent_view.dart
+++ b/frontend/appflowy_flutter/lib/mobile/presentation/home/recent_folder/mobile_recent_view.dart
@@ -97,10 +97,20 @@ class _MobileRecentViewState extends State<MobileRecentView> {
Expanded(
child: Padding(
padding: const EdgeInsets.fromLTRB(8, 18, 8, 2),
- child: FlowyText.medium(
- view.name,
- maxLines: 2,
- overflow: TextOverflow.ellipsis,
+ // hack: minLines currently not supported in Text widget.
+ // https://github.com/flutter/flutter/issues/31134
+ child: Stack(
+ children: [
+ FlowyText(
+ view.name,
+ maxLines: 2,
+ overflow: TextOverflow.ellipsis,
+ ),
+ const FlowyText(
+ "\n\n",
+ maxLines: 2,
+ ),
+ ],
),
),
),