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
fix: auto expand again after reorder app
appflowy0285b286a6b3
diff --git a/frontend/app_flowy/lib/workspace/presentation/home/menu/app/menu_app.dart b/frontend/app_flowy/lib/workspace/presentation/home/menu/app/menu_app.dartindex 67b52481e7..ae7345612a 100644--- a/frontend/app_flowy/lib/workspace/presentation/home/menu/app/menu_app.dart+++ b/frontend/app_flowy/lib/workspace/presentation/home/menu/app/menu_app.dart@@ -11,7 +11,7 @@ import 'section/section.dart';class MenuApp extends StatefulWidget {final App app;- MenuApp(this.app, {Key? key}) : super(key: ValueKey(app.hashCode));+ const MenuApp(this.app, {Key? key}) : super(key: key);@overrideState<MenuApp> createState() => _MenuAppState();@@ -95,6 +95,11 @@ class _MenuAppState extends State<MenuApp> {);}+ @override+ void didUpdateWidget(covariant MenuApp oldWidget) {+ super.didUpdateWidget(oldWidget);+ }+@overridevoid dispose() {viewDataContext.dispose();diff --git a/frontend/app_flowy/lib/workspace/presentation/home/menu/menu.dart b/frontend/app_flowy/lib/workspace/presentation/home/menu/menu.dartindex bf35ada576..4c71bba3b2 100644--- a/frontend/app_flowy/lib/workspace/presentation/home/menu/menu.dart+++ b/frontend/app_flowy/lib/workspace/presentation/home/menu/menu.dart@@ -108,7 +108,7 @@ class HomeMenu extends StatelessWidget {child: ScrollConfiguration(behavior: const ScrollBehavior().copyWith(scrollbars: false),child: BlocSelector<MenuBloc, MenuState, List<Widget>>(- selector: (state) => state.apps.map((app) => MenuApp(app)).toList(),+ selector: (state) => state.apps.map((app) => MenuApp(app, key: ValueKey(app.id))).toList(),builder: (context, menuItems) {return ReorderableListView.builder(itemCount: menuItems.length,@@ -128,7 +128,7 @@ class HomeMenu extends StatelessWidget {physics: StyledScrollPhysics(),itemBuilder: (BuildContext context, int index) {return ReorderableDragStartListener(- key: ValueKey(menuItems[index].hashCode),+ key: ValueKey(menuItems[index].key),index: index,child: Padding(padding: EdgeInsets.symmetric(vertical: MenuAppSizes.appVPadding / 2),