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: table render error (#6074)
Lucas.Xue5ad0f6d1de2
diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/home/mobile_home_page.dart b/frontend/appflowy_flutter/lib/mobile/presentation/home/mobile_home_page.dartindex c3f0340953..1078d12b1f 100644--- a/frontend/appflowy_flutter/lib/mobile/presentation/home/mobile_home_page.dart+++ b/frontend/appflowy_flutter/lib/mobile/presentation/home/mobile_home_page.dart@@ -177,7 +177,13 @@ class _HomePageState extends State<_HomePage> {getIt<CachedRecentService>().reset();mCurrentWorkspace.value = state.currentWorkspace;- _showResultDialog(context, state);+ Debounce.debounce(+ 'workspace_action_result',+ const Duration(milliseconds: 150),+ () {+ _showResultDialog(context, state);+ },+ );},builder: (context, state) {if (state.currentWorkspace == null) {diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/home/shared/empty_placeholder.dart b/frontend/appflowy_flutter/lib/mobile/presentation/home/shared/empty_placeholder.dartindex 341acb8099..1b99be9a42 100644--- a/frontend/appflowy_flutter/lib/mobile/presentation/home/shared/empty_placeholder.dart+++ b/frontend/appflowy_flutter/lib/mobile/presentation/home/shared/empty_placeholder.dart@@ -36,6 +36,7 @@ class EmptySpacePlaceholder extends StatelessWidget {lineHeight: 1.3,color: Theme.of(context).hintColor,),+ const VSpace(kBottomNavigationBarHeight + 36.0),],),);diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_page.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_page.dartindex 731a0b6d6d..53dbf57c6d 100644--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_page.dart+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_page.dart@@ -499,11 +499,12 @@ class _AppFlowyEditorPageState extends State<AppFlowyEditorPage> {}void _customizeBlockComponentBackgroundColorDecorator() {- if (!context.mounted) {- return;- }- blockComponentBackgroundColorDecorator = (Node node, String colorString) =>- buildEditorCustomizedColor(context, node, colorString);+ blockComponentBackgroundColorDecorator = (Node node, String colorString) {+ if (context.mounted) {+ return buildEditorCustomizedColor(context, node, colorString);+ }+ return null;+ };}void _initEditorL10n() => AppFlowyEditorL10n.current = EditorI18n();diff --git a/frontend/appflowy_flutter/lib/workspace/application/sidebar/space/space_bloc.dart b/frontend/appflowy_flutter/lib/workspace/application/sidebar/space/space_bloc.dartindex feef136206..41ef345755 100644--- a/frontend/appflowy_flutter/lib/workspace/application/sidebar/space/space_bloc.dart+++ b/frontend/appflowy_flutter/lib/workspace/application/sidebar/space/space_bloc.dart@@ -559,7 +559,10 @@ class SpaceBloc extends Bloc<SpaceEvent, SpaceState> {return true;}- final viewId = fixedUuid(user.id.toInt(), UuidType.publicSpace);+ final viewId = fixedUuid(+ user.id.toInt() + (_workspaceId?.hashCode ?? 0),+ UuidType.publicSpace,+ );final publicSpace = await _createSpace(name: 'Shared',icon: builtInSpaceIcons.first,diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/space/sidebar_space.dart b/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/space/sidebar_space.dartindex e7ca76e533..288f42c064 100644--- a/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/space/sidebar_space.dart+++ b/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/space/sidebar_space.dart@@ -3,6 +3,7 @@ import 'package:appflowy/startup/startup.dart';import 'package:appflowy/workspace/application/favorite/favorite_bloc.dart';import 'package:appflowy/workspace/application/sidebar/space/space_bloc.dart';import 'package:appflowy/workspace/application/tabs/tabs_bloc.dart';+import 'package:appflowy/workspace/application/user/user_workspace_bloc.dart';import 'package:appflowy/workspace/presentation/home/hotkeys.dart';import 'package:appflowy/workspace/presentation/home/menu/menu_shared_state.dart';import 'package:appflowy/workspace/presentation/home/menu/sidebar/favorites/favorite_folder.dart';@@ -31,7 +32,6 @@ class SidebarSpace extends StatelessWidget {@overrideWidget build(BuildContext context) {- // const sectionPadding = 16.0;return ValueListenableBuilder(valueListenable: getIt<MenuSharedState>().notifier,builder: (context, value, child) {@@ -89,6 +89,8 @@ class _SpaceState extends State<_Space> {@overrideWidget build(BuildContext context) {+ final currentWorkspace =+ context.watch<UserWorkspaceBloc>().state.currentWorkspace;return BlocBuilder<SpaceBloc, SpaceState>(builder: (context, state) {if (state.spaces.isEmpty) {@@ -115,7 +117,12 @@ class _SpaceState extends State<_Space> {onEnter: (_) => isHovered.value = true,onExit: (_) => isHovered.value = false,child: SpacePages(- key: ValueKey(currentSpace.id),+ key: ValueKey(+ Object.hashAll([+ currentWorkspace?.workspaceId ?? '',+ currentSpace.id,+ ]),+ ),isExpandedNotifier: isExpandedNotifier,space: currentSpace,isHovered: isHovered,diff --git a/frontend/appflowy_flutter/pubspec.lock b/frontend/appflowy_flutter/pubspec.lockindex 267fb80c21..04e83c0bcc 100644--- a/frontend/appflowy_flutter/pubspec.lock+++ b/frontend/appflowy_flutter/pubspec.lock@@ -53,8 +53,8 @@ packages:dependency: "direct main"description:path: "."- ref: "8e17d14"- resolved-ref: "8e17d1447eea0b57ff92e31dbe88796ce759fb37"+ ref: a64a516+ resolved-ref: a64a5165e79bd2424e594b793843a7158e7d4fb4url: "https://github.com/AppFlowy-IO/appflowy-editor.git"source: gitversion: "3.2.0"diff --git a/frontend/appflowy_flutter/pubspec.yaml b/frontend/appflowy_flutter/pubspec.yamlindex 278b5bd187..a02263011a 100644--- a/frontend/appflowy_flutter/pubspec.yaml+++ b/frontend/appflowy_flutter/pubspec.yaml@@ -190,7 +190,7 @@ dependency_overrides:appflowy_editor:git:url: https://github.com/AppFlowy-IO/appflowy-editor.git- ref: "8e17d14"+ ref: "a64a516"appflowy_editor_plugins:git: