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.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
feat: keep the offset of the recent section (#4466)
Lucas.Xu827e41348bc6
diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/home/recent_folder/mobile_home_recent_views.dart b/frontend/appflowy_flutter/lib/mobile/presentation/home/recent_folder/mobile_home_recent_views.dartindex a7d06fdb4a..0ff2b11fe9 100644--- a/frontend/appflowy_flutter/lib/mobile/presentation/home/recent_folder/mobile_home_recent_views.dart+++ b/frontend/appflowy_flutter/lib/mobile/presentation/home/recent_folder/mobile_home_recent_views.dart@@ -25,10 +25,9 @@ class _MobileRecentFolderState extends State<MobileRecentFolder> {child: BlocBuilder<RecentViewsBloc, RecentViewsState>(builder: (context, state) {final ids = <String>{};- List<ViewPB> recentViews = state.views.reversed.toList();+ final List<ViewPB> recentViews = state.views.reversed.toList();recentViews.retainWhere((element) => ids.add(element.id));// only keep the first 10 items.- recentViews = recentViews.take(10).toList();if (recentViews.isEmpty) {return const SizedBox.shrink();@@ -72,6 +71,7 @@ class _RecentViews extends StatelessWidget {),),SingleChildScrollView(+ key: const PageStorageKey('recent_views_page_storage_key'),scrollDirection: Axis.horizontal,padding: const EdgeInsets.symmetric(horizontal: 24, vertical: 8),child: IntrinsicHeight(