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
chore: upgrade to flutter 3.0
appflowy3307e2f8fd51
diff --git a/frontend/app_flowy/lib/workspace/presentation/home/menu/app/section/section.dart b/frontend/app_flowy/lib/workspace/presentation/home/menu/app/section/section.dartindex d9fd618e9a..d352db6620 100644--- a/frontend/app_flowy/lib/workspace/presentation/home/menu/app/section/section.dart+++ b/frontend/app_flowy/lib/workspace/presentation/home/menu/app/section/section.dart@@ -26,7 +26,7 @@ class ViewSection extends StatelessWidget {listenWhen: (p, c) => p.selectedView != c.selectedView,listener: (context, state) {if (state.selectedView != null) {- WidgetsBinding.instance?.addPostFrameCallback((_) {+ WidgetsBinding.instance.addPostFrameCallback((_) {getIt<HomeStackManager>().setPlugin(state.selectedView!.plugin());});}diff --git a/frontend/app_flowy/lib/workspace/presentation/plugins/doc/src/widget/toolbar/tool_bar.dart b/frontend/app_flowy/lib/workspace/presentation/plugins/doc/src/widget/toolbar/tool_bar.dartindex 2ab0b78cc9..8dae41f986 100644--- a/frontend/app_flowy/lib/workspace/presentation/plugins/doc/src/widget/toolbar/tool_bar.dart+++ b/frontend/app_flowy/lib/workspace/presentation/plugins/doc/src/widget/toolbar/tool_bar.dart@@ -184,7 +184,7 @@ class _ToolbarButtonListState extends State<ToolbarButtonList> with WidgetsBindi// Listening to the WidgetsBinding instance is necessary so that we can// hide the arrows when the window gets a new size and thus the toolbar// becomes scrollable/unscrollable.- WidgetsBinding.instance!.addObserver(this);+ WidgetsBinding.instance.addObserver(this);// Workaround to allow the scroll controller attach to our ListView so that// we can detect if overflow arrows need to be shown on init.@@ -226,7 +226,7 @@ class _ToolbarButtonListState extends State<ToolbarButtonList> with WidgetsBindi@overridevoid dispose() {_controller.dispose();- WidgetsBinding.instance!.removeObserver(this);+ WidgetsBinding.instance.removeObserver(this);super.dispose();}diff --git a/frontend/app_flowy/lib/workspace/presentation/widgets/emoji_picker/src/emoji_picker.dart b/frontend/app_flowy/lib/workspace/presentation/widgets/emoji_picker/src/emoji_picker.dartindex f1e4420252..650cd185f1 100644--- a/frontend/app_flowy/lib/workspace/presentation/widgets/emoji_picker/src/emoji_picker.dart+++ b/frontend/app_flowy/lib/workspace/presentation/widgets/emoji_picker/src/emoji_picker.dart@@ -135,7 +135,7 @@ class _EmojiPickerState extends State<EmojiPicker> {if (!loaded) {// Load emojisupdateEmojiFuture.then(- (value) => WidgetsBinding.instance!.addPostFrameCallback((_) {+ (value) => WidgetsBinding.instance.addPostFrameCallback((_) {if (!mounted) return;setState(() {loaded = true;diff --git a/frontend/app_flowy/linux/flutter/generated_plugins.cmake b/frontend/app_flowy/linux/flutter/generated_plugins.cmakeindex 5562f19113..c7ae414da2 100644--- a/frontend/app_flowy/linux/flutter/generated_plugins.cmake+++ b/frontend/app_flowy/linux/flutter/generated_plugins.cmake@@ -8,6 +8,9 @@ list(APPEND FLUTTER_PLUGIN_LISTwindow_size)+list(APPEND FLUTTER_FFI_PLUGIN_LIST+)+set(PLUGIN_BUNDLED_LIBRARIES)foreach(plugin ${FLUTTER_PLUGIN_LIST})@@ -16,3 +19,8 @@ foreach(plugin ${FLUTTER_PLUGIN_LIST})list(APPEND PLUGIN_BUNDLED_LIBRARIES $<TARGET_FILE:${plugin}_plugin>)list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})endforeach(plugin)++foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})+ add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin})+ list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})+endforeach(ffi_plugin)diff --git a/frontend/app_flowy/pubspec.lock b/frontend/app_flowy/pubspec.lockindex 8f7e6d6db2..717ced5c86 100644--- a/frontend/app_flowy/pubspec.lock+++ b/frontend/app_flowy/pubspec.lock@@ -168,7 +168,7 @@ packages:name: collectionurl: "https://pub.dartlang.org"source: hosted- version: "1.15.0"+ version: "1.16.0"connectivity_plus:dependency: "direct main"description:@@ -357,7 +357,7 @@ packages:name: fake_asyncurl: "https://pub.dartlang.org"source: hosted- version: "1.2.0"+ version: "1.3.0"ffi:dependency: transitivedescription:@@ -645,7 +645,7 @@ packages:name: jsurl: "https://pub.dartlang.org"source: hosted- version: "0.6.3"+ version: "0.6.4"json_annotation:dependency: transitivedescription:@@ -708,7 +708,7 @@ packages:name: material_color_utilitiesurl: "https://pub.dartlang.org"source: hosted- version: "0.1.3"+ version: "0.1.4"meta:dependency: transitivedescription:@@ -806,7 +806,7 @@ packages:name: pathurl: "https://pub.dartlang.org"source: hosted- version: "1.8.0"+ version: "1.8.1"path_drawing:dependency: transitivedescription:@@ -1091,7 +1091,7 @@ packages:name: source_spanurl: "https://pub.dartlang.org"source: hosted- version: "1.8.1"+ version: "1.8.2"sprintf:dependency: transitivedescription:@@ -1161,21 +1161,21 @@ packages:name: testurl: "https://pub.dartlang.org"source: hosted- version: "1.19.5"+ version: "1.20.2"test_api:dependency: transitivedescription:name: test_apiurl: "https://pub.dartlang.org"source: hosted- version: "0.4.8"+ version: "0.4.9"test_core:dependency: transitivedescription:name: test_coreurl: "https://pub.dartlang.org"source: hosted- version: "0.4.9"+ version: "0.4.11"textfield_tags:dependency: "direct main"description:@@ -1294,7 +1294,7 @@ packages:name: vector_mathurl: "https://pub.dartlang.org"source: hosted- version: "2.1.1"+ version: "2.1.2"video_player:dependency: transitivedescription:@@ -1389,5 +1389,5 @@ packages:source: hostedversion: "8.0.0"sdks:- dart: ">=2.15.0-116.0.dev <3.0.0"+ dart: ">=2.17.0-0 <3.0.0"flutter: ">=2.5.0"