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: open latest view
appflowy81ecbd8ae22d
diff --git a/frontend/app_flowy/lib/workspace/presentation/home/home_screen.dart b/frontend/app_flowy/lib/workspace/presentation/home/home_screen.dartindex 4b9a485082..2839e8eeb2 100644--- a/frontend/app_flowy/lib/workspace/presentation/home/home_screen.dart+++ b/frontend/app_flowy/lib/workspace/presentation/home/home_screen.dart@@ -34,19 +34,6 @@ class HomeScreen extends StatefulWidget {}class _HomeScreenState extends State<HomeScreen> {- ViewPB? initialView;-- @override- void initState() {- super.initState();- }-- @override- void didUpdateWidget(covariant HomeScreen oldWidget) {- initialView = null;- super.didUpdateWidget(oldWidget);- }-@overrideWidget build(BuildContext context) {return MultiBlocProvider(@@ -129,15 +116,6 @@ class _HomeScreenState extends State<HomeScreen> {required BuildContext context,required HomeState state}) {final workspaceSetting = state.workspaceSetting;- if (initialView == null && workspaceSetting.hasLatestView()) {- initialView = workspaceSetting.latestView;- final plugin = makePlugin(- pluginType: initialView!.pluginType,- data: initialView,- );- getIt<HomeStackManager>().setPlugin(plugin);- }-final homeMenu = HomeMenu(user: widget.user,workspaceSetting: workspaceSetting,@@ -150,7 +128,6 @@ class _HomeScreenState extends State<HomeScreen> {// All opened widgets that display on the home screen are in the form// of plugins. There is a list of built-in plugins defined in the// [PluginType] enum, including board, grid and trash.-if (getIt<HomeStackManager>().plugin.ty == PluginType.blank) {// Open the last opened view.if (workspaceSetting.hasLatestView()) {