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.dart index 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 { child: BlocBuilder( builder: (context, state) { final ids = {}; - List recentViews = state.views.reversed.toList(); + final List 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(