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.27.4 (#7230)
Lucas00cdee831d6f
diff --git a/.github/workflows/android_ci.yaml.bak b/.github/workflows/android_ci.yaml.bakindex 4e159e845b..81e132cbf8 100644--- a/.github/workflows/android_ci.yaml.bak+++ b/.github/workflows/android_ci.yaml.bak@@ -18,7 +18,7 @@ on:env:CARGO_TERM_COLOR: always- FLUTTER_VERSION: "3.22.3"+ FLUTTER_VERSION: "3.27.4"RUST_TOOLCHAIN: "1.81.0"CARGO_MAKE_VERSION: "0.37.18"CLOUD_VERSION: 0.6.54-amd64diff --git a/.github/workflows/flutter_ci.yaml b/.github/workflows/flutter_ci.yamlindex 42daeca881..1fc1b0e052 100644--- a/.github/workflows/flutter_ci.yaml+++ b/.github/workflows/flutter_ci.yaml@@ -25,7 +25,7 @@ on:env:CARGO_TERM_COLOR: always- FLUTTER_VERSION: "3.22.2"+ FLUTTER_VERSION: "3.27.4"RUST_TOOLCHAIN: "1.81.0"CARGO_MAKE_VERSION: "0.37.18"CLOUD_VERSION: 0.6.54-amd64@@ -40,7 +40,7 @@ jobs:strategy:fail-fast: truematrix:- os: [ ubuntu-latest ]+ os: [ubuntu-latest]include:- os: ubuntu-latestflutter_profile: development-linux-x86_64@@ -74,7 +74,7 @@ jobs:strategy:fail-fast: truematrix:- os: [ windows-latest ]+ os: [windows-latest]include:- os: windows-latestflutter_profile: development-windows-x86@@ -101,7 +101,7 @@ jobs:strategy:fail-fast: truematrix:- os: [ macos-latest ]+ os: [macos-latest]include:- os: macos-latestflutter_profile: development-mac-x86_64@@ -123,12 +123,12 @@ jobs:flutter_profile: ${{ matrix.flutter_profile }}unit_test:- needs: [ prepare-linux ]+ needs: [prepare-linux]if: github.event.pull_request.draft != truestrategy:fail-fast: falsematrix:- os: [ ubuntu-latest ]+ os: [ubuntu-latest]include:- os: ubuntu-latestflutter_profile: development-linux-x86_64@@ -217,11 +217,11 @@ jobs:shell: bashcloud_integration_test:- needs: [ prepare-linux ]+ needs: [prepare-linux]strategy:fail-fast: falsematrix:- os: [ ubuntu-latest ]+ os: [ubuntu-latest]include:- os: ubuntu-latestflutter_profile: development-linux-x86_64@@ -340,13 +340,13 @@ jobs:shell: bashintegration_test:- needs: [ prepare-linux ]+ needs: [prepare-linux]if: github.event.pull_request.draft != truestrategy:fail-fast: falsematrix:- os: [ ubuntu-latest ]- test_number: [ 1, 2, 3, 4, 5, 6, 7, 8, 9 ]+ os: [ubuntu-latest]+ test_number: [1, 2, 3, 4, 5, 6, 7, 8, 9]include:- os: ubuntu-latesttarget: "x86_64-unknown-linux-gnu"diff --git a/.github/workflows/ios_ci.yaml b/.github/workflows/ios_ci.yamlindex d9bee0242a..e13863f4a7 100644--- a/.github/workflows/ios_ci.yaml+++ b/.github/workflows/ios_ci.yaml@@ -18,7 +18,7 @@ on:- "!frontend/appflowy_web_app/**"env:- FLUTTER_VERSION: "3.22.3"+ FLUTTER_VERSION: "3.27.4"RUST_TOOLCHAIN: "1.81.0"concurrency:diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 91e6b99565..918a2018f7 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -6,7 +6,7 @@ on:- "*"env:- FLUTTER_VERSION: "3.22.0"+ FLUTTER_VERSION: "3.27.4"RUST_TOOLCHAIN: "1.81.0"jobs:@@ -232,10 +232,10 @@ jobs:matrix:job:- {- targets: "aarch64-apple-darwin,x86_64-apple-darwin",- os: macos-latest,- extra-build-args: "",- }+ targets: "aarch64-apple-darwin,x86_64-apple-darwin",+ os: macos-latest,+ extra-build-args: "",+ }steps:- name: Checkout source codeuses: actions/checkout@v4@@ -336,12 +336,12 @@ jobs:matrix:job:- {- arch: x86_64,- target: x86_64-unknown-linux-gnu,- os: ubuntu-20.04,- extra-build-args: "",- flutter_profile: production-linux-x86_64,- }+ arch: x86_64,+ target: x86_64-unknown-linux-gnu,+ os: ubuntu-20.04,+ extra-build-args: "",+ flutter_profile: production-linux-x86_64,+ }steps:- name: Checkout source codeuses: actions/checkout@v4diff --git a/.github/workflows/rust_coverage.yml b/.github/workflows/rust_coverage.ymlindex 916f19d9fc..53a5f66748 100644--- a/.github/workflows/rust_coverage.yml+++ b/.github/workflows/rust_coverage.yml@@ -10,7 +10,7 @@ on:env:CARGO_TERM_COLOR: always- FLUTTER_VERSION: "3.22.0"+ FLUTTER_VERSION: "3.27.4"RUST_TOOLCHAIN: "1.81.0"jobs:diff --git a/codemagic.yaml b/codemagic.yamlindex b8934d8be8..9ba2a1a562 100644--- a/codemagic.yaml+++ b/codemagic.yaml@@ -4,7 +4,7 @@ workflows:instance_type: mac_mini_m2max_build_duration: 30environment:- flutter: 3.22.3+ flutter: 3.27.4xcode: latestcocoapods: defaultdiff --git a/frontend/appflowy_flutter/integration_test/shared/emoji.dart b/frontend/appflowy_flutter/integration_test/shared/emoji.dartindex 0f45098b23..41301dd9c1 100644--- a/frontend/appflowy_flutter/integration_test/shared/emoji.dart+++ b/frontend/appflowy_flutter/integration_test/shared/emoji.dart@@ -6,7 +6,6 @@ import 'package:appflowy/shared/icon_emoji_picker/icon_picker.dart';import 'package:appflowy/shared/icon_emoji_picker/icon_uploader.dart';import 'package:appflowy/shared/icon_emoji_picker/tab.dart';import 'package:appflowy/workspace/presentation/home/menu/sidebar/space/space_icon_popup.dart';-import 'package:cross_file/cross_file.dart';import 'package:desktop_drop/desktop_drop.dart';import 'package:flowy_infra_ui/style_widget/primary_rounded_button.dart';import 'package:flowy_svg/flowy_svg.dart';@@ -90,7 +89,7 @@ extension EmojiTestExtension on WidgetTester {final dropTargetWidget = dropTarget.evaluate().first.widget as DropTarget;dropTargetWidget.onDragDone?.call(DropDoneDetails(- files: [XFile(icon.emoji)],+ files: [DropItemFile(icon.emoji)],localPosition: Offset.zero,globalPosition: Offset.zero,),diff --git a/frontend/appflowy_flutter/lib/ai/widgets/prompt_input/mention_page_menu.dart b/frontend/appflowy_flutter/lib/ai/widgets/prompt_input/mention_page_menu.dartindex 69fecad613..ae2dbe5f26 100644--- a/frontend/appflowy_flutter/lib/ai/widgets/prompt_input/mention_page_menu.dart+++ b/frontend/appflowy_flutter/lib/ai/widgets/prompt_input/mention_page_menu.dart@@ -49,7 +49,9 @@ class _PromptInputMentionPageMenuStatevoid initState() {super.initState();Future.delayed(Duration.zero, () {- context.read<ChatInputControlCubit>().refreshViews();+ if (mounted) {+ context.read<ChatInputControlCubit>().refreshViews();+ }});}diff --git a/frontend/appflowy_flutter/lib/env/cloud_env.dart b/frontend/appflowy_flutter/lib/env/cloud_env.dartindex 3df88eac24..986fab128b 100644--- a/frontend/appflowy_flutter/lib/env/cloud_env.dart+++ b/frontend/appflowy_flutter/lib/env/cloud_env.dart@@ -180,7 +180,7 @@ Future<void> useLocalServer() async {await _setAuthenticatorType(AuthenticatorType.local);}-/// Use getIt<AppFlowyCloudSharedEnv>() to get the shared environment.+// Use getIt<AppFlowyCloudSharedEnv>() to get the shared environment.class AppFlowyCloudSharedEnv {AppFlowyCloudSharedEnv({required AuthenticatorType authenticatorType,diff --git a/frontend/appflowy_flutter/lib/flutter/af_dropdown_menu.dart b/frontend/appflowy_flutter/lib/flutter/af_dropdown_menu.dartindex 1cc846339b..56a61e120b 100644--- a/frontend/appflowy_flutter/lib/flutter/af_dropdown_menu.dart+++ b/frontend/appflowy_flutter/lib/flutter/af_dropdown_menu.dart@@ -502,11 +502,11 @@ class _AFDropdownMenuState<T> extends State<AFDropdownMenu<T>> {// Simulate the focused state because the text field should always be focused// during traversal. If the menu item has a custom foreground color, the "focused"- // color will also change to foregroundColor.withOpacity(0.12).+ // color will also change to foregroundColor.withValues(alpha: 0.12).effectiveStyle = entry.enabled && i == focusedIndex? effectiveStyle.copyWith(backgroundColor: WidgetStatePropertyAll<Color>(- focusedBackgroundColor.withOpacity(0.12),+ focusedBackgroundColor.withValues(alpha: 0.12),),): effectiveStyle;diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/base/view_page/app_bar_buttons.dart b/frontend/appflowy_flutter/lib/mobile/presentation/base/view_page/app_bar_buttons.dartindex b01f72c371..2d52426bf9 100644--- a/frontend/appflowy_flutter/lib/mobile/presentation/base/view_page/app_bar_buttons.dart+++ b/frontend/appflowy_flutter/lib/mobile/presentation/base/view_page/app_bar_buttons.dart@@ -43,7 +43,7 @@ class MobileViewPageImmersiveAppBar extends StatelessWidgetvalueListenable: appBarOpacity,builder: (_, opacity, __) => FlowyAppBar(backgroundColor:- AppBarTheme.of(context).backgroundColor?.withOpacity(opacity),+ AppBarTheme.of(context).backgroundColor?.withValues(alpha: opacity),showDivider: false,title: Opacity(opacity: opacity >= 0.99 ? 1.0 : 0, child: title),leadingWidth: 44,@@ -224,7 +224,7 @@ class _ImmersiveAppBarButton extends StatelessWidget {child = DecoratedBox(decoration: BoxDecoration(borderRadius: BorderRadius.circular(dimension / 2.0),- color: Colors.black.withOpacity(0.2),+ color: Colors.black.withValues(alpha: 0.2),),child: child,);diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/bottom_sheet/show_mobile_bottom_sheet.dart b/frontend/appflowy_flutter/lib/mobile/presentation/bottom_sheet/show_mobile_bottom_sheet.dartindex 999813d63e..a0fa5dc6aa 100644--- a/frontend/appflowy_flutter/lib/mobile/presentation/bottom_sheet/show_mobile_bottom_sheet.dart+++ b/frontend/appflowy_flutter/lib/mobile/presentation/bottom_sheet/show_mobile_bottom_sheet.dart@@ -74,7 +74,7 @@ Future<T?> showMobileBottomSheet<T>(backgroundColor ??= Theme.of(context).brightness == Brightness.light? const Color(0xFFF7F8FB): const Color(0xFF23262B);- barrierColor ??= Colors.black.withOpacity(0.3);+ barrierColor ??= Colors.black.withValues(alpha: 0.3);return showModalBottomSheet<T>(context: context,diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/bottom_sheet/show_transition_bottom_sheet.dart b/frontend/appflowy_flutter/lib/mobile/presentation/bottom_sheet/show_transition_bottom_sheet.dartindex 0ff2a6634a..b29817251a 100644--- a/frontend/appflowy_flutter/lib/mobile/presentation/bottom_sheet/show_transition_bottom_sheet.dart+++ b/frontend/appflowy_flutter/lib/mobile/presentation/bottom_sheet/show_transition_bottom_sheet.dart@@ -329,7 +329,7 @@ class CupertinoSheetBottomRouteTransition extends StatelessWidget {(Theme.of(context).brightness == Brightness.dark? Colors.grey: Colors.black)- .withOpacity(secondaryAnimation.value * 0.1),+ .withValues(alpha: secondaryAnimation.value * 0.1),BlendMode.srcOver,),child: child,diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/database/board/mobile_board_page.dart b/frontend/appflowy_flutter/lib/mobile/presentation/database/board/mobile_board_page.dartindex 2885f37bbd..2cfd807174 100644--- a/frontend/appflowy_flutter/lib/mobile/presentation/database/board/mobile_board_page.dart+++ b/frontend/appflowy_flutter/lib/mobile/presentation/database/board/mobile_board_page.dart@@ -1,5 +1,3 @@-import 'package:flutter/material.dart';-import 'package:appflowy/generated/flowy_svgs.g.dart';import 'package:appflowy/generated/locale_keys.g.dart';import 'package:appflowy/mobile/presentation/database/board/board.dart';@@ -19,6 +17,7 @@ import 'package:appflowy_board/appflowy_board.dart';import 'package:easy_localization/easy_localization.dart';import 'package:flowy_infra/theme_extension.dart';import 'package:flowy_infra_ui/flowy_infra_ui.dart';+import 'package:flutter/material.dart';import 'package:flutter_bloc/flutter_bloc.dart';import 'package:go_router/go_router.dart';@@ -276,14 +275,20 @@ class _BoardContentState extends State<_BoardContent> {border: themeMode == ThemeMode.light? Border.fromBorderSide(BorderSide(- color: Theme.of(context).colorScheme.outline.withOpacity(0.5),+ color: Theme.of(context)+ .colorScheme+ .outline+ .withValues(alpha: 0.5),),): null,boxShadow: themeMode == ThemeMode.light? [BoxShadow(- color: Theme.of(context).colorScheme.outline.withOpacity(0.5),+ color: Theme.of(context)+ .colorScheme+ .outline+ .withValues(alpha: 0.5),blurRadius: 4,offset: const Offset(0, 2),),diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/database/field/mobile_edit_field_screen.dart b/frontend/appflowy_flutter/lib/mobile/presentation/database/field/mobile_edit_field_screen.dartindex a51e3561f8..75b52de414 100644--- a/frontend/appflowy_flutter/lib/mobile/presentation/database/field/mobile_edit_field_screen.dart+++ b/frontend/appflowy_flutter/lib/mobile/presentation/database/field/mobile_edit_field_screen.dart@@ -1,5 +1,3 @@-import 'package:flutter/material.dart';-import 'package:appflowy/generated/locale_keys.g.dart';import 'package:appflowy/mobile/presentation/base/app_bar/app_bar.dart';import 'package:appflowy/mobile/presentation/database/field/mobile_full_field_editor.dart';@@ -8,6 +6,7 @@ import 'package:appflowy/plugins/database/domain/field_backend_service.dart';import 'package:appflowy/plugins/database/domain/field_service.dart';import 'package:appflowy/plugins/database/widgets/setting/field_visibility_extension.dart';import 'package:easy_localization/easy_localization.dart';+import 'package:flutter/material.dart';import 'package:go_router/go_router.dart';class MobileEditPropertyScreen extends StatefulWidget {@@ -49,7 +48,7 @@ class _MobileEditPropertyScreenState extends State<MobileEditPropertyScreen> {final fieldId = widget.field.id;return PopScope(- onPopInvoked: (didPop) {+ onPopInvokedWithResult: (didPop, _) {if (!didPop) {context.pop(_fieldOptionValues);}diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/database/view/database_view_quick_actions.dart b/frontend/appflowy_flutter/lib/mobile/presentation/database/view/database_view_quick_actions.dartindex f665455dbe..505e012f7b 100644--- a/frontend/appflowy_flutter/lib/mobile/presentation/database/view/database_view_quick_actions.dart+++ b/frontend/appflowy_flutter/lib/mobile/presentation/database/view/database_view_quick_actions.dart@@ -84,7 +84,11 @@ class MobileDatabaseViewQuickActions extends StatelessWidget {);},builder: (_) => const SizedBox.shrink(),- ).then((_) => Navigator.pop(context));+ ).then((_) {+ if (context.mounted) {+ Navigator.pop(context);+ }+ });},!isInline,),diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/home/mobile_home_trash_page.dart b/frontend/appflowy_flutter/lib/mobile/presentation/home/mobile_home_trash_page.dartindex 73a5381d42..73da7594a7 100644--- a/frontend/appflowy_flutter/lib/mobile/presentation/home/mobile_home_trash_page.dart+++ b/frontend/appflowy_flutter/lib/mobile/presentation/home/mobile_home_trash_page.dart@@ -212,7 +212,7 @@ class _DeletedFilesListView extends StatelessWidget {?.copyWith(color: theme.colorScheme.onSurface),),horizontalTitleGap: 0,- tileColor: theme.colorScheme.onSurface.withOpacity(0.1),+ tileColor: theme.colorScheme.onSurface.withValues(alpha: 0.1),shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(8),),diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/home/recent_folder/mobile_recent_view.dart b/frontend/appflowy_flutter/lib/mobile/presentation/home/recent_folder/mobile_recent_view.dartindex cad05acad4..966b1ac61a 100644--- a/frontend/appflowy_flutter/lib/mobile/presentation/home/recent_folder/mobile_recent_view.dart+++ b/frontend/appflowy_flutter/lib/mobile/presentation/home/recent_folder/mobile_recent_view.dart@@ -134,7 +134,8 @@ class _RecentCover extends StatelessWidget {Widget build(BuildContext context) {final placeholder = Container(// random color, update it once we have a better placeholder- color: Theme.of(context).colorScheme.onSurfaceVariant.withOpacity(0.2),+ color:+ Theme.of(context).colorScheme.onSurfaceVariant.withValues(alpha: 0.2),);final value = this.value;if (value == null) {diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/home/shared/mobile_page_card.dart b/frontend/appflowy_flutter/lib/mobile/presentation/home/shared/mobile_page_card.dartindex 638e20839e..87ce41d5b6 100644--- a/frontend/appflowy_flutter/lib/mobile/presentation/home/shared/mobile_page_card.dart+++ b/frontend/appflowy_flutter/lib/mobile/presentation/home/shared/mobile_page_card.dart@@ -225,7 +225,7 @@ class MobileViewPage extends StatelessWidget {Widget _buildLastViewed(BuildContext context) {final textColor = Theme.of(context).isLightMode? const Color(0x7F171717)- : Colors.white.withOpacity(0.45);+ : Colors.white.withValues(alpha: 0.45);if (timestamp == null) {return const SizedBox.shrink();}diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/home/tab/ai_bubble_button.dart b/frontend/appflowy_flutter/lib/mobile/presentation/home/tab/ai_bubble_button.dartindex b3f10bbbd2..cc4176e0ef 100644--- a/frontend/appflowy_flutter/lib/mobile/presentation/home/tab/ai_bubble_button.dart+++ b/frontend/appflowy_flutter/lib/mobile/presentation/home/tab/ai_bubble_button.dart@@ -42,7 +42,7 @@ class FloatingAIEntry extends StatelessWidget {blurRadius: 20,spreadRadius: 1,offset: const Offset(0, 4),- color: Colors.black.withOpacity(0.05),+ color: Colors.black.withValues(alpha: 0.05),),],);@@ -51,8 +51,8 @@ class FloatingAIEntry extends StatelessWidget {BoxDecoration _buildWrapperDecoration(BuildContext context) {final outlineColor = Theme.of(context).colorScheme.outline;final borderColor = Theme.of(context).isLightMode- ? outlineColor.withOpacity(0.7)- : outlineColor.withOpacity(0.3);+ ? outlineColor.withValues(alpha: 0.7)+ : outlineColor.withValues(alpha: 0.3);return BoxDecoration(borderRadius: BorderRadius.circular(30),color: Theme.of(context).colorScheme.surface,diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/home/tab/mobile_space_tab.dart b/frontend/appflowy_flutter/lib/mobile/presentation/home/tab/mobile_space_tab.dartindex 1a19845152..cba6f0fd9a 100644--- a/frontend/appflowy_flutter/lib/mobile/presentation/home/tab/mobile_space_tab.dart+++ b/frontend/appflowy_flutter/lib/mobile/presentation/home/tab/mobile_space_tab.dart@@ -173,8 +173,6 @@ class _MobileSpaceTabState extends State<MobileSpaceTab>);case MobileSpaceTabType.favorites:return MobileFavoriteSpace(userProfile: widget.userProfile);- default:- throw Exception('Unknown tab type: $tab');}}).toList();}diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/home/workspaces/workspace_menu_bottom_sheet.dart b/frontend/appflowy_flutter/lib/mobile/presentation/home/workspaces/workspace_menu_bottom_sheet.dartindex 9a5bd8c511..ef7f4492a5 100644--- a/frontend/appflowy_flutter/lib/mobile/presentation/home/workspaces/workspace_menu_bottom_sheet.dart+++ b/frontend/appflowy_flutter/lib/mobile/presentation/home/workspaces/workspace_menu_bottom_sheet.dart@@ -139,7 +139,7 @@ class _CreateWorkspaceButton extends StatelessWidget {decoration: BoxDecoration(borderRadius: BorderRadius.circular(12),border: Border.all(- color: const Color(0x01717171).withOpacity(0.12),+ color: const Color(0x01717171).withValues(alpha: 0.12),width: 0.8,),),diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/home/workspaces/workspace_more_options.dart b/frontend/appflowy_flutter/lib/mobile/presentation/home/workspaces/workspace_more_options.dartindex 5f6066930f..bb6f6207f6 100644--- a/frontend/appflowy_flutter/lib/mobile/presentation/home/workspaces/workspace_more_options.dart+++ b/frontend/appflowy_flutter/lib/mobile/presentation/home/workspaces/workspace_more_options.dart@@ -101,8 +101,6 @@ class WorkspaceMenuMoreOptions extends StatelessWidget {WorkspaceMenuMoreOption.leave,),);- default:- return const Placeholder();}}}diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/mobile_bottom_navigation_bar.dart b/frontend/appflowy_flutter/lib/mobile/presentation/mobile_bottom_navigation_bar.dartindex 4d8bc16103..170ef46ac2 100644--- a/frontend/appflowy_flutter/lib/mobile/presentation/mobile_bottom_navigation_bar.dart+++ b/frontend/appflowy_flutter/lib/mobile/presentation/mobile_bottom_navigation_bar.dart@@ -365,14 +365,14 @@ class _NotificationNavigationBar extends StatelessWidget {extension on BuildContext {Color get backgroundColor {return Theme.of(this).isLightMode- ? Colors.white.withOpacity(0.95)- : const Color(0xFF23262B).withOpacity(0.95);+ ? Colors.white.withValues(alpha: 0.95)+ : const Color(0xFF23262B).withValues(alpha: 0.95);}Color get borderColor {return Theme.of(this).isLightMode? const Color(0x141F2329)- : const Color(0xFF23262B).withOpacity(0.5);+ : const Color(0xFF23262B).withValues(alpha: 0.5);}Border? get border {diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/notifications/widgets/color.dart b/frontend/appflowy_flutter/lib/mobile/presentation/notifications/widgets/color.dartindex 8a59336378..e11e91ada5 100644--- a/frontend/appflowy_flutter/lib/mobile/presentation/notifications/widgets/color.dart+++ b/frontend/appflowy_flutter/lib/mobile/presentation/notifications/widgets/color.dart@@ -6,6 +6,6 @@ extension NotificationItemColors on BuildContext {if (Theme.of(this).isLightMode) {return const Color(0xFF171717);}- return const Color(0xFFffffff).withOpacity(0.8);+ return const Color(0xFFffffff).withValues(alpha: 0.8);}}diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/setting/appearance/rtl_setting.dart b/frontend/appflowy_flutter/lib/mobile/presentation/setting/appearance/rtl_setting.dartindex 8e1aceefae..5b8035f004 100644--- a/frontend/appflowy_flutter/lib/mobile/presentation/setting/appearance/rtl_setting.dart+++ b/frontend/appflowy_flutter/lib/mobile/presentation/setting/appearance/rtl_setting.dart@@ -83,7 +83,6 @@ class RTLSetting extends StatelessWidget {case AppFlowyTextDirection.rtl:return LocaleKeys.settings_appearance_textDirection_rtl.tr();case AppFlowyTextDirection.ltr:- default:return LocaleKeys.settings_appearance_textDirection_ltr.tr();}}diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/widgets/flowy_option_tile.dart b/frontend/appflowy_flutter/lib/mobile/presentation/widgets/flowy_option_tile.dartindex 4f76003e23..835b3b052f 100644--- a/frontend/appflowy_flutter/lib/mobile/presentation/widgets/flowy_option_tile.dart+++ b/frontend/appflowy_flutter/lib/mobile/presentation/widgets/flowy_option_tile.dart@@ -299,7 +299,7 @@ class _Toggle extends StatelessWidget {fit: BoxFit.fill,child: CupertinoSwitch(value: value,- activeColor: Theme.of(context).colorScheme.primary,+ activeTrackColor: Theme.of(context).colorScheme.primary,onChanged: onChanged,),),diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/widgets/show_flowy_mobile_confirm_dialog.dart b/frontend/appflowy_flutter/lib/mobile/presentation/widgets/show_flowy_mobile_confirm_dialog.dartindex 9df9d2e6fd..96c18f5d91 100644--- a/frontend/appflowy_flutter/lib/mobile/presentation/widgets/show_flowy_mobile_confirm_dialog.dart+++ b/frontend/appflowy_flutter/lib/mobile/presentation/widgets/show_flowy_mobile_confirm_dialog.dart@@ -99,7 +99,7 @@ Future<T?> showFlowyCupertinoConfirmDialog<T>({}) {return showDialog(context: context ?? AppGlobals.context,- barrierColor: Colors.black.withOpacity(0.25),+ barrierColor: Colors.black.withValues(alpha: 0.25),builder: (context) => CupertinoAlertDialog(title: FlowyText.medium(title,diff --git a/frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/animated_chat_list.dart b/frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/animated_chat_list.dartindex e4fc090605..9b7aadf4a4 100644--- a/frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/animated_chat_list.dart+++ b/frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/animated_chat_list.dart@@ -7,10 +7,9 @@ import 'package:diffutil_dart/diffutil.dart' as diffutil;import 'package:flutter/material.dart';import 'package:flutter/rendering.dart';import 'package:flutter_chat_core/flutter_chat_core.dart';-import 'package:provider/provider.dart';-import 'package:flutter_chat_ui/src/scroll_to_bottom.dart';import 'package:flutter_chat_ui/src/utils/message_list_diff.dart';+import 'package:provider/provider.dart';class ChatAnimatedListReversed extends StatefulWidget {const ChatAnimatedListReversed({diff --git a/frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_editor_style.dart b/frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_editor_style.dartindex a979e80746..b79e3c52c3 100644--- a/frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_editor_style.dart+++ b/frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_editor_style.dart@@ -75,7 +75,8 @@ class ChatEditorStyleCustomizer extends EditorStyleCustomizer {fontSize: fontSize,fontWeight: FontWeight.normal,color: Colors.red,- backgroundColor: theme.colorScheme.inverseSurface.withOpacity(0.8),+ backgroundColor:+ theme.colorScheme.inverseSurface.withValues(alpha: 0.8),),),),@@ -144,7 +145,7 @@ class ChatEditorStyleCustomizer extends EditorStyleCustomizer {return TextStyle(fontFamily: defaultFontFamily,height: 1.5,- color: AFThemeExtension.of(context).onBackground.withOpacity(0.6),+ color: AFThemeExtension.of(context).onBackground.withValues(alpha: 0.6),);}}diff --git a/frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_welcome_page.dart b/frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_welcome_page.dartindex 6c3dd4bd4d..d7a90bd18a 100644--- a/frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_welcome_page.dart+++ b/frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_welcome_page.dart@@ -125,14 +125,14 @@ class WelcomeSampleQuestion extends StatelessWidget {spreadRadius: -2,color: isLightMode? const Color(0x051F2329)- : Theme.of(context).shadowColor.withOpacity(0.02),+ : Theme.of(context).shadowColor.withValues(alpha: 0.02),),BoxShadow(offset: const Offset(0, 2),blurRadius: 4,color: isLightMode? const Color(0x051F2329)- : Theme.of(context).shadowColor.withOpacity(0.02),+ : Theme.of(context).shadowColor.withValues(alpha: 0.02),),BoxShadow(offset: const Offset(0, 2),@@ -140,7 +140,7 @@ class WelcomeSampleQuestion extends StatelessWidget {spreadRadius: 2,color: isLightMode? const Color(0x051F2329)- : Theme.of(context).shadowColor.withOpacity(0.02),+ : Theme.of(context).shadowColor.withValues(alpha: 0.02),),],),diff --git a/frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/ai_message_action_bar.dart b/frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/ai_message_action_bar.dartindex 7ae4a11f19..1dbeeb0ec2 100644--- a/frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/ai_message_action_bar.dart+++ b/frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/ai_message_action_bar.dart@@ -89,14 +89,14 @@ class _AIMessageActionBarState extends State<AIMessageActionBar> {spreadRadius: -2,color: isLightMode? const Color(0x051F2329)- : Theme.of(context).shadowColor.withOpacity(0.02),+ : Theme.of(context).shadowColor.withValues(alpha: 0.02),),BoxShadow(offset: const Offset(0, 2),blurRadius: 4,color: isLightMode? const Color(0x051F2329)- : Theme.of(context).shadowColor.withOpacity(0.02),+ : Theme.of(context).shadowColor.withValues(alpha: 0.02),),BoxShadow(offset: const Offset(0, 2),@@ -104,7 +104,7 @@ class _AIMessageActionBarState extends State<AIMessageActionBar> {spreadRadius: 2,color: isLightMode? const Color(0x051F2329)- : Theme.of(context).shadowColor.withOpacity(0.02),+ : Theme.of(context).shadowColor.withValues(alpha: 0.02),),],),@@ -340,14 +340,14 @@ class _ChangeFormatPopoverContentStatespreadRadius: -2,color: isLightMode? const Color(0x051F2329)- : Theme.of(context).shadowColor.withOpacity(0.02),+ : Theme.of(context).shadowColor.withValues(alpha: 0.02),),BoxShadow(offset: const Offset(0, 2),blurRadius: 4,color: isLightMode? const Color(0x051F2329)- : Theme.of(context).shadowColor.withOpacity(0.02),+ : Theme.of(context).shadowColor.withValues(alpha: 0.02),),BoxShadow(offset: const Offset(0, 2),@@ -355,7 +355,7 @@ class _ChangeFormatPopoverContentStatespreadRadius: 2,color: isLightMode? const Color(0x051F2329)- : Theme.of(context).shadowColor.withOpacity(0.02),+ : Theme.of(context).shadowColor.withValues(alpha: 0.02),),],),diff --git a/frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/scroll_to_bottom.dart b/frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/scroll_to_bottom.dartindex 0cfa2efe7b..d66a6665b3 100644--- a/frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/scroll_to_bottom.dart+++ b/frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/scroll_to_bottom.dart@@ -41,21 +41,21 @@ class CustomScrollToBottom extends StatelessWidget {spreadRadius: 8,color: isLightMode? const Color(0x0F1F2329)- : Theme.of(context).shadowColor.withOpacity(0.06),+ : Theme.of(context).shadowColor.withValues(alpha: 0.06),),BoxShadow(offset: const Offset(0, 4),blurRadius: 8,color: isLightMode? const Color(0x141F2329)- : Theme.of(context).shadowColor.withOpacity(0.08),+ : Theme.of(context).shadowColor.withValues(alpha: 0.08),),BoxShadow(offset: const Offset(0, 2),blurRadius: 4,color: isLightMode? const Color(0x1F1F2329)- : Theme.of(context).shadowColor.withOpacity(0.12),+ : Theme.of(context).shadowColor.withValues(alpha: 0.12),),],),diff --git a/frontend/appflowy_flutter/lib/plugins/database/board/presentation/board_page.dart b/frontend/appflowy_flutter/lib/plugins/database/board/presentation/board_page.dartindex cefcafa03b..b170ee2fef 100644--- a/frontend/appflowy_flutter/lib/plugins/database/board/presentation/board_page.dart+++ b/frontend/appflowy_flutter/lib/plugins/database/board/presentation/board_page.dart@@ -1,10 +1,5 @@import 'dart:io';-import 'package:appflowy/util/field_type_extension.dart';-import 'package:appflowy/workspace/application/user/user_workspace_bloc.dart';-import 'package:flutter/material.dart' hide Card;-import 'package:flutter/services.dart';-import 'package:appflowy/generated/flowy_svgs.g.dart';import 'package:appflowy/generated/locale_keys.g.dart';import 'package:appflowy/mobile/presentation/database/board/mobile_board_page.dart';@@ -20,6 +15,8 @@ import 'package:appflowy/plugins/database/widgets/cell/card_cell_style_maps/deskimport 'package:appflowy/plugins/database/widgets/row/row_detail.dart';import 'package:appflowy/shared/conditional_listenable_builder.dart';import 'package:appflowy/shared/flowy_error_page.dart';+import 'package:appflowy/util/field_type_extension.dart';+import 'package:appflowy/workspace/application/user/user_workspace_bloc.dart';import 'package:appflowy_backend/protobuf/flowy-database2/protobuf.dart';import 'package:appflowy_backend/protobuf/flowy-folder/view.pb.dart';import 'package:appflowy_board/appflowy_board.dart';@@ -27,13 +24,14 @@ import 'package:easy_localization/easy_localization.dart';import 'package:flowy_infra/theme_extension.dart';import 'package:flowy_infra_ui/flowy_infra_ui.dart';import 'package:flowy_infra_ui/style_widget/hover.dart';+import 'package:flutter/material.dart' hide Card;+import 'package:flutter/services.dart';import 'package:flutter_bloc/flutter_bloc.dart';import 'package:universal_platform/universal_platform.dart';import '../../widgets/card/card.dart';import '../../widgets/cell/card_cell_builder.dart';import '../application/board_bloc.dart';-import 'toolbar/board_setting_bar.dart';import 'widgets/board_focus_scope.dart';import 'widgets/board_hidden_groups.dart';@@ -715,19 +713,19 @@ class _BoardCardState extends State<_BoardCard> {.isFocused(GroupedRowId(rowId: rowId, groupId: groupId))? Theme.of(context).colorScheme.primary: Theme.of(context).brightness == Brightness.light- ? const Color(0xFF1F2329).withOpacity(0.12)+ ? const Color(0xFF1F2329).withValues(alpha: 0.12): const Color(0xFF59647A),),),boxShadow: [BoxShadow(blurRadius: 4,- color: const Color(0xFF1F2329).withOpacity(0.02),+ color: const Color(0xFF1F2329).withValues(alpha: 0.02),),BoxShadow(blurRadius: 4,spreadRadius: -2,- color: const Color(0xFF1F2329).withOpacity(0.02),+ color: const Color(0xFF1F2329).withValues(alpha: 0.02),),],);diff --git a/frontend/appflowy_flutter/lib/plugins/database/calendar/presentation/calendar_day.dart b/frontend/appflowy_flutter/lib/plugins/database/calendar/presentation/calendar_day.dartindex de5648291e..1d2838210d 100644--- a/frontend/appflowy_flutter/lib/plugins/database/calendar/presentation/calendar_day.dart+++ b/frontend/appflowy_flutter/lib/plugins/database/calendar/presentation/calendar_day.dart@@ -256,16 +256,16 @@ class NewEventButton extends StatelessWidget {boxShadow: [BoxShadow(spreadRadius: -2,- color: const Color(0xFF1F2329).withOpacity(0.02),+ color: const Color(0xFF1F2329).withValues(alpha: 0.02),blurRadius: 2,),BoxShadow(- color: const Color(0xFF1F2329).withOpacity(0.02),+ color: const Color(0xFF1F2329).withValues(alpha: 0.02),blurRadius: 4,),BoxShadow(spreadRadius: 2,- color: const Color(0xFF1F2329).withOpacity(0.02),+ color: const Color(0xFF1F2329).withValues(alpha: 0.02),blurRadius: 8,),],diff --git a/frontend/appflowy_flutter/lib/plugins/database/calendar/presentation/calendar_event_card.dart b/frontend/appflowy_flutter/lib/plugins/database/calendar/presentation/calendar_event_card.dartindex 8df96350f9..5ef2e2c327 100644--- a/frontend/appflowy_flutter/lib/plugins/database/calendar/presentation/calendar_event_card.dart+++ b/frontend/appflowy_flutter/lib/plugins/database/calendar/presentation/calendar_event_card.dart@@ -1,25 +1,23 @@-import 'package:appflowy/plugins/database/application/row/row_controller.dart';-import 'package:appflowy/plugins/database/widgets/row/row_detail.dart';-import 'package:appflowy/workspace/application/user/user_workspace_bloc.dart';-import 'package:flutter/material.dart';-import 'package:appflowy/mobile/presentation/database/card/card_detail/mobile_card_detail_screen.dart';import 'package:appflowy/plugins/database/application/database_controller.dart';import 'package:appflowy/plugins/database/application/row/row_cache.dart';+import 'package:appflowy/plugins/database/application/row/row_controller.dart';import 'package:appflowy/plugins/database/widgets/card/card.dart';import 'package:appflowy/plugins/database/widgets/cell/card_cell_builder.dart';import 'package:appflowy/plugins/database/widgets/cell/card_cell_style_maps/calendar_card_cell_style.dart';+import 'package:appflowy/plugins/database/widgets/row/row_detail.dart';import 'package:appflowy/workspace/application/view/view_bloc.dart';+import 'package:appflowy/workspace/application/user/user_workspace_bloc.dart';import 'package:flowy_infra/size.dart';import 'package:flowy_infra/theme_extension.dart';import 'package:flowy_infra_ui/flowy_infra_ui.dart';import 'package:flowy_infra_ui/style_widget/hover.dart';+import 'package:flutter/material.dart';import 'package:flutter_bloc/flutter_bloc.dart';import 'package:go_router/go_router.dart';import 'package:universal_platform/universal_platform.dart';import '../application/calendar_bloc.dart';-import 'calendar_event_editor.dart';class EventCard extends StatefulWidget {@@ -129,16 +127,16 @@ class _EventCardState extends State<EventCard> {boxShadow: [BoxShadow(spreadRadius: -2,- color: const Color(0xFF1F2329).withOpacity(0.02),+ color: const Color(0xFF1F2329).withValues(alpha: 0.02),blurRadius: 2,),BoxShadow(- color: const Color(0xFF1F2329).withOpacity(0.02),+ color: const Color(0xFF1F2329).withValues(alpha: 0.02),blurRadius: 4,),BoxShadow(spreadRadius: 2,- color: const Color(0xFF1F2329).withOpacity(0.02),+ color: const Color(0xFF1F2329).withValues(alpha: 0.02),blurRadius: 8,),],diff --git a/frontend/appflowy_flutter/lib/plugins/database/calendar/presentation/calendar_event_editor.dart b/frontend/appflowy_flutter/lib/plugins/database/calendar/presentation/calendar_event_editor.dartindex 576e5d198c..6c4b365906 100644--- a/frontend/appflowy_flutter/lib/plugins/database/calendar/presentation/calendar_event_editor.dart+++ b/frontend/appflowy_flutter/lib/plugins/database/calendar/presentation/calendar_event_editor.dart@@ -98,12 +98,15 @@ class EventEditorControls extends StatelessWidget {size: const Size.square(16),color: Theme.of(context).iconTheme.color,),- onPressed: () => context.read<CalendarBloc>().add(- CalendarEvent.duplicateEvent(- rowController.viewId,- rowController.rowId,- ),- ),+ onPressed: () {+ context.read<CalendarBloc>().add(+ CalendarEvent.duplicateEvent(+ rowController.viewId,+ rowController.rowId,+ ),+ );+ PopoverContainer.of(context).close();+ },),),const HSpace(8.0),@@ -126,6 +129,7 @@ class EventEditorControls extends StatelessWidget {rowController.rowId,),);+ PopoverContainer.of(context).close();},);},diff --git a/frontend/appflowy_flutter/lib/plugins/database/grid/presentation/grid_page.dart b/frontend/appflowy_flutter/lib/plugins/database/grid/presentation/grid_page.dartindex fb32a2868b..851ed2f7b1 100755--- a/frontend/appflowy_flutter/lib/plugins/database/grid/presentation/grid_page.dart+++ b/frontend/appflowy_flutter/lib/plugins/database/grid/presentation/grid_page.dart@@ -1,19 +1,17 @@import 'dart:async';-import 'package:appflowy/plugins/database/grid/presentation/widgets/toolbar/grid_setting_bar.dart';-import 'package:appflowy/plugins/database/tab_bar/desktop/setting_menu.dart';-import 'package:appflowy/workspace/application/user/user_workspace_bloc.dart';-import 'package:flutter/material.dart';-import 'package:appflowy/generated/locale_keys.g.dart';import 'package:appflowy/plugins/database/application/row/row_service.dart';import 'package:appflowy/plugins/database/application/tab_bar_bloc.dart';import 'package:appflowy/plugins/database/domain/sort_service.dart';import 'package:appflowy/plugins/database/grid/presentation/widgets/calculations/calculations_row.dart';+import 'package:appflowy/plugins/database/grid/presentation/widgets/toolbar/grid_setting_bar.dart';+import 'package:appflowy/plugins/database/tab_bar/desktop/setting_menu.dart';import 'package:appflowy/plugins/database/widgets/cell/editable_cell_builder.dart';import 'package:appflowy/shared/flowy_error_page.dart';import 'package:appflowy/workspace/application/action_navigation/action_navigation_bloc.dart';import 'package:appflowy/workspace/application/action_navigation/navigation_action.dart';+import 'package:appflowy/workspace/application/user/user_workspace_bloc.dart';import 'package:appflowy/workspace/presentation/widgets/dialogs.dart';import 'package:appflowy_backend/log.dart';import 'package:appflowy_backend/protobuf/flowy-folder/view.pb.dart';@@ -21,6 +19,7 @@ import 'package:easy_localization/easy_localization.dart';import 'package:flowy_infra/theme_extension.dart';import 'package:flowy_infra_ui/flowy_infra_ui.dart';import 'package:flowy_infra_ui/style_widget/scrolling/styled_scrollview.dart';+import 'package:flutter/material.dart';import 'package:flutter_bloc/flutter_bloc.dart';import 'package:linked_scroll_controller/linked_scroll_controller.dart';import 'package:provider/provider.dart';@@ -30,7 +29,6 @@ import '../../application/row/row_controller.dart';import '../../tab_bar/tab_bar_view.dart';import '../../widgets/row/row_detail.dart';import '../application/grid_bloc.dart';-import 'grid_scroll.dart';import 'layout/layout.dart';import 'layout/sizes.dart';@@ -474,7 +472,7 @@ class _GridRowsState extends State<_GridRows> {proxyDecorator: (child, _, __) => Provider.value(value: context.read<DatabasePluginWidgetBuilderSize>(),child: Material(- color: Colors.white.withOpacity(.1),+ color: Colors.white.withValues(alpha: .1),child: Opacity(opacity: .5, child: child),),),diff --git a/frontend/appflowy_flutter/lib/plugins/database/grid/presentation/widgets/footer/grid_footer.dart b/frontend/appflowy_flutter/lib/plugins/database/grid/presentation/widgets/footer/grid_footer.dartindex 1b973554cd..43a0301a10 100755--- a/frontend/appflowy_flutter/lib/plugins/database/grid/presentation/widgets/footer/grid_footer.dart+++ b/frontend/appflowy_flutter/lib/plugins/database/grid/presentation/widgets/footer/grid_footer.dart@@ -1,5 +1,3 @@-import 'package:flutter/material.dart';-import 'package:appflowy/generated/flowy_svgs.g.dart';import 'package:appflowy/generated/locale_keys.g.dart';import 'package:appflowy/plugins/database/grid/application/grid_bloc.dart';@@ -9,6 +7,7 @@ import 'package:easy_localization/easy_localization.dart';import 'package:flowy_infra/theme_extension.dart';import 'package:flowy_infra_ui/style_widget/button.dart';import 'package:flowy_infra_ui/style_widget/text.dart';+import 'package:flutter/material.dart';import 'package:flutter_bloc/flutter_bloc.dart';class GridAddRowButton extends StatelessWidget {@@ -17,8 +16,8 @@ class GridAddRowButton extends StatelessWidget {@overrideWidget build(BuildContext context) {final color = Theme.of(context).brightness == Brightness.light- ? const Color(0xFF171717).withOpacity(0.4)- : const Color(0xFFFFFFFF).withOpacity(0.4);+ ? const Color(0xFF171717).withValues(alpha: 0.4)+ : const Color(0xFFFFFFFF).withValues(alpha: 0.4);return FlowyButton(radius: BorderRadius.zero,decoration: BoxDecoration(@@ -66,8 +65,8 @@ class GridRowLoadMoreButton extends StatelessWidget {final padding =context.read<DatabasePluginWidgetBuilderSize>().horizontalPadding;final color = Theme.of(context).brightness == Brightness.light- ? const Color(0xFF171717).withOpacity(0.4)- : const Color(0xFFFFFFFF).withOpacity(0.4);+ ? const Color(0xFF171717).withValues(alpha: 0.4)+ : const Color(0xFFFFFFFF).withValues(alpha: 0.4);return Container(padding: GridSize.footerContentInsets.copyWith(left: 0) +diff --git a/frontend/appflowy_flutter/lib/plugins/database/grid/presentation/widgets/header/desktop_field_cell.dart b/frontend/appflowy_flutter/lib/plugins/database/grid/presentation/widgets/header/desktop_field_cell.dartindex f0597c15e4..23c2fe1f91 100755--- a/frontend/appflowy_flutter/lib/plugins/database/grid/presentation/widgets/header/desktop_field_cell.dart+++ b/frontend/appflowy_flutter/lib/plugins/database/grid/presentation/widgets/header/desktop_field_cell.dart@@ -1,17 +1,16 @@-import 'package:appflowy/shared/icon_emoji_picker/icon_picker.dart';-import 'package:appflowy/util/theme_extension.dart';-import 'package:flutter/material.dart';-import 'package:appflowy/generated/flowy_svgs.g.dart';import 'package:appflowy/plugins/database/application/field/field_cell_bloc.dart';import 'package:appflowy/plugins/database/application/field/field_controller.dart';import 'package:appflowy/plugins/database/application/field/field_info.dart';import 'package:appflowy/plugins/database/widgets/field/field_editor.dart';+import 'package:appflowy/shared/icon_emoji_picker/icon_picker.dart';import 'package:appflowy/util/field_type_extension.dart';+import 'package:appflowy/util/theme_extension.dart';import 'package:appflowy_backend/protobuf/flowy-database2/field_entities.pb.dart';import 'package:flowy_infra/theme_extension.dart';import 'package:flowy_infra_ui/flowy_infra_ui.dart';import 'package:flowy_infra_ui/style_widget/hover.dart';+import 'package:flutter/material.dart';import 'package:flutter_bloc/flutter_bloc.dart';import '../../layout/sizes.dart';@@ -261,7 +260,7 @@ class FieldIcon extends StatelessWidget {return svgContent == null? FlowySvg(fieldInfo.fieldType.svgData,- color: color.withOpacity(0.6),+ color: color.withValues(alpha: 0.6),size: Size.square(dimension),): SizedBox.square(@@ -269,7 +268,7 @@ class FieldIcon extends StatelessWidget {child: Center(child: FlowySvg.string(svgContent,- color: color.withOpacity(0.45),+ color: color.withValues(alpha: 0.45),size: Size.square(dimension - 2),),),diff --git a/frontend/appflowy_flutter/lib/plugins/database/widgets/card/container/accessory.dart b/frontend/appflowy_flutter/lib/plugins/database/widgets/card/container/accessory.dartindex 7078685845..e74f947b46 100644--- a/frontend/appflowy_flutter/lib/plugins/database/widgets/card/container/accessory.dart+++ b/frontend/appflowy_flutter/lib/plugins/database/widgets/card/container/accessory.dart@@ -1,6 +1,5 @@-import 'package:flutter/material.dart';-import 'package:flowy_infra_ui/style_widget/hover.dart';+import 'package:flutter/material.dart';enum AccessoryType {edit,@@ -45,7 +44,7 @@ class CardAccessoryContainer extends StatelessWidget {width: 1,thickness: 1,color: Theme.of(context).brightness == Brightness.light- ? const Color(0xFF1F2329).withOpacity(0.12)+ ? const Color(0xFF1F2329).withValues(alpha: 0.12): const Color(0xff59647a),),);@@ -77,19 +76,19 @@ class CardAccessoryContainer extends StatelessWidget {border: Border.fromBorderSide(BorderSide(color: Theme.of(context).brightness == Brightness.light- ? const Color(0xFF1F2329).withOpacity(0.12)+ ? const Color(0xFF1F2329).withValues(alpha: 0.12): const Color(0xff59647a),),),boxShadow: [BoxShadow(blurRadius: 4,- color: const Color(0xFF1F2329).withOpacity(0.02),+ color: const Color(0xFF1F2329).withValues(alpha: 0.02),),BoxShadow(blurRadius: 4,spreadRadius: -2,- color: const Color(0xFF1F2329).withOpacity(0.02),+ color: const Color(0xFF1F2329).withValues(alpha: 0.02),),],);diff --git a/frontend/appflowy_flutter/lib/plugins/database/widgets/cell/desktop_row_detail/desktop_row_detail_media_cell.dart b/frontend/appflowy_flutter/lib/plugins/database/widgets/cell/desktop_row_detail/desktop_row_detail_media_cell.dartindex 34d8a18ad8..6e648eb187 100644--- a/frontend/appflowy_flutter/lib/plugins/database/widgets/cell/desktop_row_detail/desktop_row_detail_media_cell.dart+++ b/frontend/appflowy_flutter/lib/plugins/database/widgets/cell/desktop_row_detail/desktop_row_detail_media_cell.dart@@ -202,7 +202,7 @@ class _FilePreviewFeedback extends StatelessWidget {decoration: BoxDecoration(boxShadow: [BoxShadow(- color: const Color(0xFF1F2329).withOpacity(.2),+ color: const Color(0xFF1F2329).withValues(alpha: .2),blurRadius: 6,offset: const Offset(0, 3),),@@ -431,7 +431,8 @@ class _FilePreviewRenderState extends State<_FilePreviewRender> {Positioned.fill(child: DecoratedBox(position: DecorationPosition.foreground,- decoration: BoxDecoration(color: Colors.black.withOpacity(0.5)),+ decoration:+ BoxDecoration(color: Colors.black.withValues(alpha: 0.5)),child: child,),),@@ -543,7 +544,7 @@ class _FilePreviewRenderState extends State<_FilePreviewRender> {setState(() => isSelected = true);controller.show();},- fillColor: Colors.black.withOpacity(0.4),+ fillColor: Colors.black.withValues(alpha: 0.4),width: 18,radius: BorderRadius.circular(4),icon: const FlowySvg(diff --git a/frontend/appflowy_flutter/lib/plugins/database/widgets/row/row_banner.dart b/frontend/appflowy_flutter/lib/plugins/database/widgets/row/row_banner.dartindex 243eb5f027..5b77e93f8e 100644--- a/frontend/appflowy_flutter/lib/plugins/database/widgets/row/row_banner.dart+++ b/frontend/appflowy_flutter/lib/plugins/database/widgets/row/row_banner.dart@@ -1,6 +1,3 @@-import 'package:flutter/material.dart';-import 'package:flutter/services.dart';-import 'package:appflowy/generated/flowy_svgs.g.dart';import 'package:appflowy/generated/locale_keys.g.dart';import 'package:appflowy/mobile/application/page_style/document_page_style_bloc.dart';@@ -31,6 +28,8 @@ import 'package:easy_localization/easy_localization.dart';import 'package:flowy_infra/theme_extension.dart';import 'package:flowy_infra_ui/flowy_infra_ui.dart';import 'package:flowy_infra_ui/widget/rounded_button.dart';+import 'package:flutter/material.dart';+import 'package:flutter/services.dart';import 'package:flutter_bloc/flutter_bloc.dart';import 'package:go_router/go_router.dart';import 'package:string_validator/string_validator.dart';@@ -278,8 +277,10 @@ class _RowCoverState extends State<RowCover> {onPressed: () => popoverController.show(),hoverColor: Theme.of(context).colorScheme.surface,textColor: Theme.of(context).colorScheme.tertiary,- fillColor:- Theme.of(context).colorScheme.surface.withOpacity(0.5),+ fillColor: Theme.of(context)+ .colorScheme+ .surface+ .withValues(alpha: 0.5),title: LocaleKeys.document_plugins_cover_changeCover.tr(),),),diff --git a/frontend/appflowy_flutter/lib/plugins/database_document/database_document_plugin.dart b/frontend/appflowy_flutter/lib/plugins/database_document/database_document_plugin.dartindex 07c2a4b5dc..fd238271b7 100644--- a/frontend/appflowy_flutter/lib/plugins/database_document/database_document_plugin.dart+++ b/frontend/appflowy_flutter/lib/plugins/database_document/database_document_plugin.dart@@ -1,4 +1,4 @@-library document_plugin;+library;import 'package:appflowy/generated/flowy_svgs.g.dart';import 'package:appflowy/generated/locale_keys.g.dart';diff --git a/frontend/appflowy_flutter/lib/plugins/document/application/document_bloc.dart b/frontend/appflowy_flutter/lib/plugins/document/application/document_bloc.dartindex f7ec313471..641344cf27 100644--- a/frontend/appflowy_flutter/lib/plugins/document/application/document_bloc.dart+++ b/frontend/appflowy_flutter/lib/plugins/document/application/document_bloc.dart@@ -399,7 +399,7 @@ class DocumentBloc extends Bloc<DocumentEvent, DocumentState> {final basicColor = ColorGenerator(id.toString()).toColor();final metadata = DocumentAwarenessMetadata(cursorColor: basicColor.toHexString(),- selectionColor: basicColor.withOpacity(0.6).toHexString(),+ selectionColor: basicColor.withValues(alpha: 0.6).toHexString(),userName: user.name,userAvatar: user.iconUrl,);@@ -422,7 +422,7 @@ class DocumentBloc extends Bloc<DocumentEvent, DocumentState> {final basicColor = ColorGenerator(id.toString()).toColor();final metadata = DocumentAwarenessMetadata(cursorColor: basicColor.toHexString(),- selectionColor: basicColor.withOpacity(0.6).toHexString(),+ selectionColor: basicColor.withValues(alpha: 0.6).toHexString(),userName: user.name,userAvatar: user.iconUrl,);diff --git a/frontend/appflowy_flutter/lib/plugins/document/application/document_data_pb_extension.dart b/frontend/appflowy_flutter/lib/plugins/document/application/document_data_pb_extension.dartindex f9a80864f1..574ae34af8 100644--- a/frontend/appflowy_flutter/lib/plugins/document/application/document_data_pb_extension.dart+++ b/frontend/appflowy_flutter/lib/plugins/document/application/document_data_pb_extension.dart@@ -18,7 +18,6 @@ import 'package:appflowy_editor/appflowy_editor.dart'BulletedListBlockKeys,blockComponentDelta;import 'package:appflowy_editor_plugins/appflowy_editor_plugins.dart';-import 'package:collection/collection.dart';import 'package:nanoid/nanoid.dart';class ExternalValues extends NodeExternalValues {@@ -105,7 +104,7 @@ extension DocumentDataPBFromTo on DocumentDataPB {final children = <Node>[];if (childrenIds != null && childrenIds.isNotEmpty) {- children.addAll(childrenIds.map((e) => buildNode(e)).whereNotNull());+ children.addAll(childrenIds.map((e) => buildNode(e)).nonNulls);}final node = block?.toNode(diff --git a/frontend/appflowy_flutter/lib/plugins/document/application/editor_transaction_adapter.dart b/frontend/appflowy_flutter/lib/plugins/document/application/editor_transaction_adapter.dartindex bbe671a822..b789de3881 100644--- a/frontend/appflowy_flutter/lib/plugins/document/application/editor_transaction_adapter.dart+++ b/frontend/appflowy_flutter/lib/plugins/document/application/editor_transaction_adapter.dart@@ -113,7 +113,7 @@ class TransactionAdapter {) {return transaction.operations.map((op) => op.toBlockAction(editorState, documentId))- .whereNotNull()+ .nonNulls.expand((element) => element).toList(growable: false); // avoid lazy evaluation}diff --git a/frontend/appflowy_flutter/lib/plugins/document/document.dart b/frontend/appflowy_flutter/lib/plugins/document/document.dartindex 38236b008b..4ebc6f1b47 100644--- a/frontend/appflowy_flutter/lib/plugins/document/document.dart+++ b/frontend/appflowy_flutter/lib/plugins/document/document.dart@@ -1,4 +1,4 @@-library document_plugin;+library;import 'package:appflowy/generated/flowy_svgs.g.dart';import 'package:appflowy/generated/locale_keys.g.dart';diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/collaborator_avater_stack.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/collaborator_avater_stack.dartindex 8fa15af8b2..1be5a41d81 100644--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/collaborator_avater_stack.dart+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/collaborator_avater_stack.dart@@ -46,7 +46,7 @@ class CollaboratorAvatarStack extends StatelessWidget {width: width,child: WidgetStack(positions: settings,- buildInfoWidget: (value) => plusWidgetBuilder(value, border),+ buildInfoWidget: (value, _) => plusWidgetBuilder(value, border),stackedWidgets: avatars.map((avatar) => CircleAvatar(diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_page.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_page.dartindex 5c3762b438..207951fe22 100644--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_page.dart+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_page.dart@@ -357,7 +357,7 @@ class _AppFlowyEditorPageState extends State<AppFlowyEditorPage>),),dropTargetStyle: AppFlowyDropTargetStyle(- color: Theme.of(context).colorScheme.primary.withOpacity(0.8),+ color: Theme.of(context).colorScheme.primary.withValues(alpha: 0.8),margin: const EdgeInsets.only(left: 44),),),diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/mobile_block_action_buttons.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/mobile_block_action_buttons.dartindex 539dd313b1..a04190f8af 100644--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/mobile_block_action_buttons.dart+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/mobile_block_action_buttons.dart@@ -110,7 +110,6 @@ class MobileBlockActionButtons extends StatelessWidget {),);break;- default:}if (transaction.operations.isNotEmpty) {diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/align_toolbar_item/align_toolbar_item.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/align_toolbar_item/align_toolbar_item.dartindex 09bdc06057..cceac56c0d 100644--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/align_toolbar_item/align_toolbar_item.dart+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/align_toolbar_item/align_toolbar_item.dart@@ -106,7 +106,7 @@ class _AlignmentButtonsState extends State<_AlignmentButtons> {child: FlowyButton(useIntrinsicWidth: true,text: widget.child,- hoverColor: Colors.grey.withOpacity(0.3),+ hoverColor: Colors.grey.withValues(alpha: 0.3),onTap: () => controller.show(),),);@@ -167,7 +167,7 @@ class _AlignButton extends StatelessWidget {Widget build(BuildContext context) {return FlowyButton(useIntrinsicWidth: true,- hoverColor: Colors.grey.withOpacity(0.3),+ hoverColor: Colors.grey.withValues(alpha: 0.3),onTap: onTap,text: FlowyTooltip(message: tooltips,diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/file/file_upload_menu.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/file/file_upload_menu.dartindex 75f02f5079..4ef680d1b9 100644--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/file/file_upload_menu.dart+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/file/file_upload_menu.dart@@ -141,7 +141,8 @@ class _FileUploadLocalState extends State<_FileUploadLocal> {height: 32,child: FlowyButton(backgroundColor: Theme.of(context).colorScheme.primary,- hoverColor: Theme.of(context).colorScheme.primary.withOpacity(0.9),+ hoverColor:+ Theme.of(context).colorScheme.primary.withValues(alpha: 0.9),showDefaultBoxDecorationOnMobile: true,margin: const EdgeInsets.all(5),text: FlowyText(@@ -295,7 +296,7 @@ class _FileUploadNetworkState extends State<_FileUploadNetwork> {child: FlowyButton(backgroundColor: Theme.of(context).colorScheme.primary,hoverColor:- Theme.of(context).colorScheme.primary.withOpacity(0.9),+ Theme.of(context).colorScheme.primary.withValues(alpha: 0.9),showDefaultBoxDecorationOnMobile: true,margin: const EdgeInsets.all(5),text: FlowyText(diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/file/mobile_file_upload_menu.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/file/mobile_file_upload_menu.dartindex f716c107df..f4c7a76c0e 100644--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/file/mobile_file_upload_menu.dart+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/file/mobile_file_upload_menu.dart@@ -138,7 +138,7 @@ class _FileUploadLocalState extends State<_FileUploadLocal> {radius: Corners.s8Border,backgroundColor: Theme.of(context).colorScheme.primary,hoverColor:- Theme.of(context).colorScheme.primary.withOpacity(0.9),+ Theme.of(context).colorScheme.primary.withValues(alpha: 0.9),margin: const EdgeInsets.all(5),text: FlowyText(LocaleKeys.document_plugins_file_uploadMobileGallery.tr(),@@ -155,7 +155,7 @@ class _FileUploadLocalState extends State<_FileUploadLocal> {radius: Corners.s8Border,backgroundColor: Theme.of(context).colorScheme.primary,hoverColor:- Theme.of(context).colorScheme.primary.withOpacity(0.9),+ Theme.of(context).colorScheme.primary.withValues(alpha: 0.9),margin: const EdgeInsets.all(5),text: FlowyText(LocaleKeys.document_plugins_file_uploadMobile.tr(),@@ -241,7 +241,7 @@ class _FileUploadNetworkState extends State<_FileUploadNetwork> {child: FlowyButton(backgroundColor: Theme.of(context).colorScheme.primary,hoverColor:- Theme.of(context).colorScheme.primary.withOpacity(0.9),+ Theme.of(context).colorScheme.primary.withValues(alpha: 0.9),radius: Corners.s8Border,margin: const EdgeInsets.all(5),text: FlowyText(diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/font/customize_font_toolbar_item.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/font/customize_font_toolbar_item.dartindex ef943a7ef7..d297328681 100644--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/font/customize_font_toolbar_item.dart+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/font/customize_font_toolbar_item.dart@@ -60,7 +60,7 @@ final customizeFontToolbarItem = ToolbarItem(child: FlowyButton(key: kFontFamilyToolbarItemKey,useIntrinsicWidth: true,- hoverColor: Colors.grey.withOpacity(0.3),+ hoverColor: Colors.grey.withValues(alpha: 0.3),onTap: () => popoverController.show(),text: const FlowySvg(FlowySvgs.font_family_s,diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/document_cover_widget.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/document_cover_widget.dartindex a565fd4e43..12fe821459 100644--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/document_cover_widget.dart+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/document_cover_widget.dart@@ -640,7 +640,7 @@ class DocumentCoverState extends State<DocumentCover> {fillColor: Theme.of(context).colorScheme.onSurfaceVariant- .withOpacity(0.5),+ .withValues(alpha: 0.5),height: 32,title: LocaleKeys.document_plugins_cover_changeCover.tr(),),@@ -726,8 +726,10 @@ class DocumentCoverState extends State<DocumentCover> {onPressed: () => popoverController.show(),hoverColor: Theme.of(context).colorScheme.surface,textColor: Theme.of(context).colorScheme.tertiary,- fillColor:- Theme.of(context).colorScheme.surface.withOpacity(0.5),+ fillColor: Theme.of(context)+ .colorScheme+ .surface+ .withValues(alpha: 0.5),title: LocaleKeys.document_plugins_cover_changeCover.tr(),),),@@ -821,8 +823,8 @@ class DeleteCoverButton extends StatelessWidget {@overrideWidget build(BuildContext context) {final fillColor = UniversalPlatform.isDesktopOrWeb- ? Theme.of(context).colorScheme.surface.withOpacity(0.5)- : Theme.of(context).colorScheme.onSurfaceVariant.withOpacity(0.5);+ ? Theme.of(context).colorScheme.surface.withValues(alpha: 0.5)+ : Theme.of(context).colorScheme.onSurfaceVariant.withValues(alpha: 0.5);final svgColor = UniversalPlatform.isDesktopOrWeb? Theme.of(context).colorScheme.tertiary: Theme.of(context).colorScheme.onPrimary;diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/emoji_icon_widget.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/emoji_icon_widget.dartindex 1d7f43004c..733454d021 100644--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/emoji_icon_widget.dart+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/emoji_icon_widget.dart@@ -38,7 +38,10 @@ class _EmojiIconWidgetState extends State<EmojiIconWidget> {child: Container(decoration: BoxDecoration(color: !hover- ? Theme.of(context).colorScheme.inverseSurface.withOpacity(0.5)+ ? Theme.of(context)+ .colorScheme+ .inverseSurface+ .withValues(alpha: 0.5): Colors.transparent,borderRadius: BorderRadius.circular(8),),@@ -144,8 +147,6 @@ class RawEmojiIconWidget extends StatelessWidget {height: emojiSize,),);- default:- return defaultEmoji;}} catch (e) {Log.error("Display widget error: $e");diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/heading/heading_toolbar_item.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/heading/heading_toolbar_item.dartindex c5e1758435..3d0c199ea2 100644--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/heading/heading_toolbar_item.dart+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/heading/heading_toolbar_item.dart@@ -140,7 +140,7 @@ class HeadingPopup extends StatelessWidget {},child: FlowyButton(useIntrinsicWidth: true,- hoverColor: Colors.grey.withOpacity(0.3),+ hoverColor: Colors.grey.withValues(alpha: 0.3),text: child,),);@@ -209,7 +209,7 @@ class HeadingButton extends StatelessWidget {Widget build(BuildContext context) {return FlowyButton(useIntrinsicWidth: true,- hoverColor: Colors.grey.withOpacity(0.3),+ hoverColor: Colors.grey.withValues(alpha: 0.3),onTap: onTap,text: FlowyTooltip(message: tooltip,diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/custom_image_block_component/image_menu.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/custom_image_block_component/image_menu.dartindex b07e0b3b08..4a6260d8b8 100644--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/custom_image_block_component/image_menu.dart+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/custom_image_block_component/image_menu.dart@@ -60,7 +60,7 @@ class _ImageMenuState extends State<ImageMenu> {BoxShadow(blurRadius: 5,spreadRadius: 1,- color: Colors.black.withOpacity(0.1),+ color: Colors.black.withValues(alpha: 0.1),),],borderRadius: BorderRadius.circular(4.0),diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/multi_image_block_component/layouts/image_browser_layout.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/multi_image_block_component/layouts/image_browser_layout.dartindex 4b53bca127..c0f91a27f0 100644--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/multi_image_block_component/layouts/image_browser_layout.dart+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/multi_image_block_component/layouts/image_browser_layout.dart@@ -1,8 +1,5 @@import 'dart:io';-import 'package:appflowy/workspace/application/user/user_workspace_bloc.dart';-import 'package:flutter/material.dart';-import 'package:appflowy/generated/flowy_svgs.g.dart';import 'package:appflowy/generated/locale_keys.g.dart';import 'package:appflowy/plugins/document/application/document_bloc.dart';@@ -12,6 +9,7 @@ import 'package:appflowy/plugins/document/presentation/editor_plugins/image/multimport 'package:appflowy/plugins/document/presentation/editor_plugins/image/multi_image_block_component/multi_image_block_component.dart';import 'package:appflowy/shared/appflowy_network_image.dart';import 'package:appflowy/shared/patterns/file_type_patterns.dart';+import 'package:appflowy/workspace/application/user/user_workspace_bloc.dart';import 'package:appflowy/workspace/presentation/widgets/image_viewer/image_provider.dart';import 'package:appflowy/workspace/presentation/widgets/image_viewer/interactive_image_viewer.dart';import 'package:appflowy_backend/protobuf/flowy-user/user_profile.pb.dart';@@ -24,6 +22,7 @@ import 'package:flowy_infra_ui/style_widget/hover.dart';import 'package:flowy_infra_ui/style_widget/text.dart';import 'package:flowy_infra_ui/widget/flowy_tooltip.dart';import 'package:flowy_infra_ui/widget/spacing.dart';+import 'package:flutter/material.dart';import 'package:provider/provider.dart';import '../image_render.dart';@@ -137,7 +136,8 @@ class _ImageBrowserLayoutState extends State<ImageBrowserLayout> {),DecoratedBox(decoration: BoxDecoration(- color: Colors.white.withOpacity(0.5),+ color:+ Colors.white.withValues(alpha: 0.5),),child: Center(child: FlowyText(@@ -226,8 +226,9 @@ class _ImageBrowserLayoutState extends State<ImageBrowserLayout> {? const SizedBox.shrink(): SizedBox.expand(child: DecoratedBox(- decoration:- BoxDecoration(color: Colors.white.withOpacity(0.5)),+ decoration: BoxDecoration(+ color: Colors.white.withValues(alpha: 0.5),+ ),child: Center(child: Row(mainAxisAlignment: MainAxisAlignment.center,@@ -387,8 +388,8 @@ class _ThumbnailItemState extends State<ThumbnailItem> {child: FlowyHover(resetHoverOnRebuild: false,style: HoverStyle(- backgroundColor: Colors.black.withOpacity(0.6),- hoverColor: Colors.black.withOpacity(0.9),+ backgroundColor: Colors.black.withValues(alpha: 0.6),+ hoverColor: Colors.black.withValues(alpha: 0.9),),child: const Padding(padding: EdgeInsets.all(4),diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/multi_image_block_component/layouts/multi_image_layouts.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/multi_image_block_component/layouts/multi_image_layouts.dartindex 00919a20cc..43d1c7ae36 100644--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/multi_image_block_component/layouts/multi_image_layouts.dart+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/multi_image_block_component/layouts/multi_image_layouts.dart@@ -1,10 +1,9 @@-import 'package:flutter/material.dart';-import 'package:appflowy/plugins/document/presentation/editor_plugins/image/common.dart';import 'package:appflowy/plugins/document/presentation/editor_plugins/image/multi_image_block_component/layouts/image_browser_layout.dart';import 'package:appflowy/plugins/document/presentation/editor_plugins/image/multi_image_block_component/layouts/image_grid_layout.dart';import 'package:appflowy/plugins/document/presentation/editor_plugins/image/multi_image_block_component/multi_image_block_component.dart';import 'package:appflowy_editor/appflowy_editor.dart' hide ResizableImage;+import 'package:flutter/material.dart';abstract class ImageBlockMultiLayout extends StatefulWidget {const ImageBlockMultiLayout({@@ -65,7 +64,6 @@ class ImageLayoutRender extends StatelessWidget {isLocalMode: isLocalMode,);case MultiImageLayout.browser:- default:return ImageBrowserLayout(node: node,editorState: editorState,diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/multi_image_block_component/multi_image_menu.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/multi_image_block_component/multi_image_menu.dartindex 8abeaf9e99..52bb41fd84 100644--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/multi_image_block_component/multi_image_menu.dart+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/multi_image_block_component/multi_image_menu.dart@@ -1,8 +1,5 @@import 'dart:io';-import 'package:flutter/material.dart';-import 'package:flutter/services.dart';-import 'package:appflowy/generated/flowy_svgs.g.dart';import 'package:appflowy/generated/locale_keys.g.dart';import 'package:appflowy/plugins/document/application/document_bloc.dart';@@ -25,6 +22,8 @@ import 'package:flowy_infra/size.dart';import 'package:flowy_infra/theme_extension.dart';import 'package:flowy_infra/uuid.dart';import 'package:flowy_infra_ui/flowy_infra_ui.dart';+import 'package:flutter/material.dart';+import 'package:flutter/services.dart';import 'package:http/http.dart';import 'package:path/path.dart' as p;import 'package:provider/provider.dart';@@ -103,7 +102,7 @@ class _MultiImageMenuState extends State<MultiImageMenu> {BoxShadow(blurRadius: 5,spreadRadius: 1,- color: Colors.black.withOpacity(0.1),+ color: Colors.black.withValues(alpha: 0.1),),],borderRadius: BorderRadius.circular(4.0),diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/resizeable_image.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/resizeable_image.dartindex eb8e8a2707..da37945bf5 100644--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/resizeable_image.dart+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/resizeable_image.dart@@ -226,7 +226,7 @@ class _ResizableImageState extends State<ResizableImage> {child: Container(height: 40,decoration: BoxDecoration(- color: Colors.black.withOpacity(0.5),+ color: Colors.black.withValues(alpha: 0.5),borderRadius: const BorderRadius.all(Radius.circular(5.0),),@@ -262,7 +262,7 @@ class _ImageLoadFailedWidget extends StatelessWidget {padding: const EdgeInsets.symmetric(vertical: 8.0),decoration: BoxDecoration(borderRadius: const BorderRadius.all(Radius.circular(4.0)),- border: Border.all(color: Colors.grey.withOpacity(0.6)),+ border: Border.all(color: Colors.grey.withValues(alpha: 0.6)),),child: Column(mainAxisSize: MainAxisSize.min,@@ -280,7 +280,7 @@ class _ImageLoadFailedWidget extends StatelessWidget {FlowyText(error,textAlign: TextAlign.center,- color: Theme.of(context).hintColor.withOpacity(0.6),+ color: Theme.of(context).hintColor.withValues(alpha: 0.6),fontSize: 10,maxLines: 2,),diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/upload_image_menu/widgets/embed_image_url_widget.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/upload_image_menu/widgets/embed_image_url_widget.dartindex caddbf464a..28dccad72d 100644--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/upload_image_menu/widgets/embed_image_url_widget.dart+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/upload_image_menu/widgets/embed_image_url_widget.dart@@ -57,7 +57,8 @@ class _EmbedImageUrlWidgetState extends State<EmbedImageUrlWidget> {width: 300,child: FlowyButton(backgroundColor: Theme.of(context).colorScheme.primary,- hoverColor: Theme.of(context).colorScheme.primary.withOpacity(0.9),+ hoverColor:+ Theme.of(context).colorScheme.primary.withValues(alpha: 0.9),showDefaultBoxDecorationOnMobile: true,radius:UniversalPlatform.isMobile ? BorderRadius.circular(8) : null,diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/link_preview/link_preview_menu.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/link_preview/link_preview_menu.dartindex 61e5156060..cf7d72cc2a 100644--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/link_preview/link_preview_menu.dart+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/link_preview/link_preview_menu.dart@@ -39,7 +39,7 @@ class _LinkPreviewMenuState extends State<LinkPreviewMenu> {BoxShadow(blurRadius: 5,spreadRadius: 1,- color: Colors.black.withOpacity(0.1),+ color: Colors.black.withValues(alpha: 0.1),),],borderRadius: BorderRadius.circular(4.0),diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/mention/mention_block.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/mention/mention_block.dartindex a5bc340f71..d65609f1a8 100644--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/mention/mention_block.dart+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/mention/mention_block.dart@@ -124,8 +124,6 @@ class MentionBlock extends StatelessWidget {reminderOption: reminderOption ?? ReminderOption.none,includeTime: mention[MentionBlockKeys.includeTime] ?? false,);- default:- return const SizedBox.shrink();}}}diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/mobile_toolbar_v3/aa_menu/_color_list.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/mobile_toolbar_v3/aa_menu/_color_list.dartindex d3d4c5daa9..6ec777429c 100644--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/mobile_toolbar_v3/aa_menu/_color_list.dart+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/mobile_toolbar_v3/aa_menu/_color_list.dart@@ -86,7 +86,7 @@ class _TextColorAndBackgroundColorStateEditorTextColorWidget(selectedColor: selectedTextColor?.tryToColor(),onSelectedColor: (textColor) async {- final hex = textColor.alpha == 0 ? null : textColor.toHex();+ final hex = textColor.a == 0 ? null : textColor.toHex();final selection = widget.selection;if (selection.isCollapsed) {widget.editorState.updateToggledStyle(@@ -123,8 +123,7 @@ class _TextColorAndBackgroundColorStateEditorBackgroundColors(selectedColor: selectedBackgroundColor?.tryToColor(),onSelectedColor: (backgroundColor) async {- final hex =- backgroundColor.alpha == 0 ? null : backgroundColor.toHex();+ final hex = backgroundColor.a == 0 ? null : backgroundColor.toHex();final selection = widget.selection;if (selection.isCollapsed) {widget.editorState.updateToggledStyle(@@ -296,7 +295,7 @@ class _TextColorItem extends StatelessWidget {child: FlowyText('A',fontSize: 24,- color: color.alpha == 0 ? null : color,+ color: color.a == 0 ? null : color,),),);diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_cell_block_component.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_cell_block_component.dartindex 376ed90069..112343c6d8 100644--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_cell_block_component.dart+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_cell_block_component.dart@@ -468,7 +468,7 @@ class SimpleTableCellBlockWidgetState extends State<SimpleTableCellBlockWidget>final isSelectingTable =simpleTableContext?.isSelectingTable.value ?? false;if (isSelectingTable) {- return Theme.of(context).colorScheme.primary.withOpacity(0.1);+ return Theme.of(context).colorScheme.primary.withValues(alpha: 0.1);}final columnColor = node.buildColumnColor(context);diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_constants.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_constants.dartindex 6bdbcd516a..79201b38fa 100644--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_constants.dart+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_constants.dart@@ -294,7 +294,7 @@ extension SimpleTableColors on BuildContext {Color get simpleTableDividerColor => Theme.of(this).isLightMode? const Color(0x141F2329)- : const Color(0xFF23262B).withOpacity(0.5);+ : const Color(0xFF23262B).withValues(alpha: 0.5);Color get simpleTableMoreActionBackgroundColor => Theme.of(this).isLightMode? const Color(0xFFF2F3F5)diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_more_action.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_more_action.dartindex be82ee3627..4906ed85eb 100644--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_more_action.dart+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_more_action.dart@@ -412,7 +412,9 @@ class SimpleTableActionMenu extends StatelessWidget {editorState.service.keyboardService?.closeKeyboard();// delay the bottom sheet show to make sure the keyboard is closedFuture.delayed(Durations.short3, () {- _showTableActionBottomSheet(context);+ if (context.mounted) {+ _showTableActionBottomSheet(context);+ }});},child: Container(diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_widgets/_simple_table_bottom_sheet_actions.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_widgets/_simple_table_bottom_sheet_actions.dartindex aae1acb68b..b81ff89ee8 100644--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_widgets/_simple_table_bottom_sheet_actions.dart+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_widgets/_simple_table_bottom_sheet_actions.dart@@ -622,7 +622,7 @@ class _SimpleTableHeaderActionButtonStatefit: BoxFit.fill,child: CupertinoSwitch(value: value,- activeColor: Theme.of(context).colorScheme.primary,+ activeTrackColor: Theme.of(context).colorScheme.primary,onChanged: (_) => _toggle(),),),diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_widgets/simple_table_bottom_sheet.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_widgets/simple_table_bottom_sheet.dartindex 644aae1926..97519422ec 100644--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_widgets/simple_table_bottom_sheet.dart+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/simple_table/simple_table_widgets/simple_table_bottom_sheet.dart@@ -264,7 +264,7 @@ class _SimpleTableCellBottomSheetState}void _onTextColorSelected(Color color) {- final hex = color.alpha == 0 ? null : color.toHex();+ final hex = color.a == 0 ? null : color.toHex();switch (widget.type) {case SimpleTableMoreActionType.column:widget.editorState.updateColumnTextColor(@@ -284,7 +284,7 @@ class _SimpleTableCellBottomSheetState}void _onCellBackgroundColorSelected(Color color) {- final hex = color.alpha == 0 ? null : color.toHex();+ final hex = color.a == 0 ? null : color.toHex();switch (widget.type) {case SimpleTableMoreActionType.column:widget.editorState.updateColumnBackgroundColor(diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/sub_page/block_transaction_handler.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/sub_page/block_transaction_handler.dartindex 35ff1f219b..a549e87f83 100644--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/sub_page/block_transaction_handler.dart+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/sub_page/block_transaction_handler.dart@@ -1,5 +1,3 @@-import 'package:flutter/material.dart';-import 'package:appflowy/generated/locale_keys.g.dart';import 'package:appflowy/mobile/application/mobile_router.dart';import 'package:appflowy/plugins/document/presentation/editor_plugins/block_transaction_handler/block_transaction_handler.dart';@@ -14,6 +12,7 @@ import 'package:appflowy_backend/protobuf/flowy-folder/view.pbenum.dart';import 'package:appflowy_editor/appflowy_editor.dart';import 'package:easy_localization/easy_localization.dart';import 'package:flowy_infra_ui/style_widget/snap_bar.dart';+import 'package:flutter/material.dart';import 'package:universal_platform/universal_platform.dart';class SubPageBlockTransactionHandler extends BlockTransactionHandler {@@ -162,7 +161,9 @@ class SubPageBlockTransactionHandler extends BlockTransactionHandler {if (UniversalPlatform.isDesktop) {getIt<TabsBloc>().openPlugin(view);} else {- await context.pushView(view);+ if (context.mounted) {+ await context.pushView(view);+ }}});},diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_style.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_style.dartindex 31377a93b7..130f9a9ca1 100644--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_style.dart+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_style.dart@@ -111,7 +111,8 @@ class EditorStyleCustomizer {fontSize: fontSize,fontWeight: FontWeight.normal,color: Colors.red,- backgroundColor: theme.colorScheme.inverseSurface.withOpacity(0.8),+ backgroundColor:+ theme.colorScheme.inverseSurface.withValues(alpha: 0.8),),),),@@ -159,7 +160,7 @@ class EditorStyleCustomizer {fontSize: fontSize,fontWeight: FontWeight.normal,color: Colors.red,- backgroundColor: Colors.grey.withOpacity(0.3),+ backgroundColor: Colors.grey.withValues(alpha: 0.3),),),applyHeightToFirstAscent: true,@@ -241,7 +242,7 @@ class EditorStyleCustomizer {fontFamily: defaultFontFamily,fontSize: fontSize,height: 1.5,- color: AFThemeExtension.of(context).onBackground.withOpacity(0.6),+ color: AFThemeExtension.of(context).onBackground.withValues(alpha: 0.6),);}@@ -281,7 +282,7 @@ class EditorStyleCustomizer {final afThemeExtension = AFThemeExtension.of(context);return InlineActionsMenuStyle(backgroundColor: theme.cardColor,- groupTextColor: afThemeExtension.onBackground.withOpacity(.8),+ groupTextColor: afThemeExtension.onBackground.withValues(alpha: .8),menuItemTextColor: afThemeExtension.onBackground,menuItemSelectedColor: theme.colorScheme.secondary,menuItemSelectedTextColor: theme.colorScheme.onSurface,@@ -470,7 +471,7 @@ class EditorStyleCustomizer {padding: const EdgeInsets.symmetric(vertical: 4.0),child: FlowyHover(style: HoverStyle(- hoverColor: Colors.grey.withOpacity(0.3),+ hoverColor: Colors.grey.withValues(alpha: 0.3),),child: child,),diff --git a/frontend/appflowy_flutter/lib/plugins/inline_actions/widgets/inline_actions_handler.dart b/frontend/appflowy_flutter/lib/plugins/inline_actions/widgets/inline_actions_handler.dartindex be9a6c2f5f..63ccb04839 100644--- a/frontend/appflowy_flutter/lib/plugins/inline_actions/widgets/inline_actions_handler.dart+++ b/frontend/appflowy_flutter/lib/plugins/inline_actions/widgets/inline_actions_handler.dart@@ -165,7 +165,7 @@ class _InlineActionsHandlerState extends State<InlineActionsHandler> {BoxShadow(blurRadius: 5,spreadRadius: 1,- color: Colors.black.withOpacity(0.1),+ color: Colors.black.withValues(alpha: 0.1),),],),diff --git a/frontend/appflowy_flutter/lib/plugins/shared/share/export_tab.dart b/frontend/appflowy_flutter/lib/plugins/shared/share/export_tab.dartindex ff95fe6acc..bf0b7fee26 100644--- a/frontend/appflowy_flutter/lib/plugins/shared/share/export_tab.dart+++ b/frontend/appflowy_flutter/lib/plugins/shared/share/export_tab.dart@@ -198,7 +198,7 @@ class _ExportButton extends StatelessWidget {Widget build(BuildContext context) {final color = Theme.of(context).isLightMode? const Color(0x1E14171B)- : Colors.white.withOpacity(0.1);+ : Colors.white.withValues(alpha: 0.1);final radius = BorderRadius.circular(10.0);return FlowyButton(margin: const EdgeInsets.symmetric(vertical: 10, horizontal: 14),diff --git a/frontend/appflowy_flutter/lib/plugins/shared/share/publish_color_extension.dart b/frontend/appflowy_flutter/lib/plugins/shared/share/publish_color_extension.dartindex 960f59b07d..1c957016e4 100644--- a/frontend/appflowy_flutter/lib/plugins/shared/share/publish_color_extension.dart+++ b/frontend/appflowy_flutter/lib/plugins/shared/share/publish_color_extension.dart@@ -5,7 +5,7 @@ class ShareMenuColors {static Color borderColor(BuildContext context) {final borderColor = Theme.of(context).isLightMode? const Color(0x1E14171B)- : Colors.white.withOpacity(0.1);+ : Colors.white.withValues(alpha: 0.1);return borderColor;}}diff --git a/frontend/appflowy_flutter/lib/plugins/shared/share/publish_tab.dart b/frontend/appflowy_flutter/lib/plugins/shared/share/publish_tab.dartindex 68d1918c7f..1f754a4372 100644--- a/frontend/appflowy_flutter/lib/plugins/shared/share/publish_tab.dart+++ b/frontend/appflowy_flutter/lib/plugins/shared/share/publish_tab.dart@@ -217,7 +217,7 @@ class _PublishedWidgetState extends State<_PublishedWidget> {title: LocaleKeys.shareAction_visitSite.tr(),borderRadius: const BorderRadius.all(Radius.circular(10)),fillColor: Theme.of(context).colorScheme.primary,- hoverColor: Theme.of(context).colorScheme.primary.withOpacity(0.9),+ hoverColor: Theme.of(context).colorScheme.primary.withValues(alpha: 0.9),textColor: Theme.of(context).colorScheme.onPrimary,);}@@ -508,7 +508,7 @@ class _PublishDatabaseSelector extends StatefulWidget {class _PublishDatabaseSelectorState extends State<_PublishDatabaseSelector> {final PropertyValueNotifier<List<(ViewPB, bool)>> _databaseStatus =PropertyValueNotifier<List<(ViewPB, bool)>>([]);- late final _borderColor = Theme.of(context).hintColor.withOpacity(0.3);+ late final _borderColor = Theme.of(context).hintColor.withValues(alpha: 0.3);@overridevoid initState() {diff --git a/frontend/appflowy_flutter/lib/shared/icon_emoji_picker/colors.dart b/frontend/appflowy_flutter/lib/shared/icon_emoji_picker/colors.dartindex 8728c3be4a..40b9c1d6fa 100644--- a/frontend/appflowy_flutter/lib/shared/icon_emoji_picker/colors.dart+++ b/frontend/appflowy_flutter/lib/shared/icon_emoji_picker/colors.dart@@ -5,7 +5,7 @@ extension PickerColors on BuildContext {Color get pickerTextColor {return Theme.of(this).isLightMode? const Color(0x80171717)- : Colors.white.withOpacity(0.5);+ : Colors.white.withValues(alpha: 0.5);}Color get pickerIconColor {@@ -15,12 +15,12 @@ extension PickerColors on BuildContext {Color get pickerSearchBarBorderColor {return Theme.of(this).isLightMode? const Color(0x1E171717)- : Colors.white.withOpacity(0.12);+ : Colors.white.withValues(alpha: 0.12);}Color get pickerButtonBoarderColor {return Theme.of(this).isLightMode? const Color(0x1E171717)- : Colors.white.withOpacity(0.12);+ : Colors.white.withValues(alpha: 0.12);}}diff --git a/frontend/appflowy_flutter/lib/shared/popup_menu/appflowy_popup_menu.dart b/frontend/appflowy_flutter/lib/shared/popup_menu/appflowy_popup_menu.dartindex 1e9aa1a3c3..786d666060 100644--- a/frontend/appflowy_flutter/lib/shared/popup_menu/appflowy_popup_menu.dart+++ b/frontend/appflowy_flutter/lib/shared/popup_menu/appflowy_popup_menu.dart@@ -1613,7 +1613,7 @@ class _PopupMenuDefaultsM3 extends PopupMenuThemeData {return WidgetStateProperty.resolveWith((Set<WidgetState> states) {final TextStyle style = _textTheme.labelLarge!;if (states.contains(WidgetState.disabled)) {- return style.apply(color: _colors.onSurface.withOpacity(0.38));+ return style.apply(color: _colors.onSurface.withValues(alpha: 0.38));}return style.apply(color: _colors.onSurface);});diff --git a/frontend/appflowy_flutter/lib/startup/plugin/plugin.dart b/frontend/appflowy_flutter/lib/startup/plugin/plugin.dartindex 920a994927..5bb08e3fdf 100644--- a/frontend/appflowy_flutter/lib/startup/plugin/plugin.dart+++ b/frontend/appflowy_flutter/lib/startup/plugin/plugin.dart@@ -1,4 +1,4 @@-library flowy_plugin;+library;import 'package:appflowy/generated/flowy_svgs.g.dart';import 'package:appflowy/startup/plugin/plugin.dart';diff --git a/frontend/appflowy_flutter/lib/util/color_to_hex_string.dart b/frontend/appflowy_flutter/lib/util/color_to_hex_string.dartindex 34925235cb..61694367bb 100644--- a/frontend/appflowy_flutter/lib/util/color_to_hex_string.dart+++ b/frontend/appflowy_flutter/lib/util/color_to_hex_string.dart@@ -5,12 +5,17 @@ import 'package:flutter/material.dart';extension ColorExtension on Color {/// return a hex string in 0xff000000 formatString toHexString() {- return '0x${value.toRadixString(16).padLeft(8, '0')}';+ final alpha = (a * 255).toInt().toRadixString(16).padLeft(2, '0');+ final red = (r * 255).toInt().toRadixString(16).padLeft(2, '0');+ final green = (g * 255).toInt().toRadixString(16).padLeft(2, '0');+ final blue = (b * 255).toInt().toRadixString(16).padLeft(2, '0');++ return '0x$alpha$red$green$blue'.toLowerCase();}/// return a random colorstatic Color random({double opacity = 1.0}) {return Color((math.Random().nextDouble() * 0xFFFFFF).toInt())- .withOpacity(opacity);+ .withValues(alpha: opacity);}}diff --git a/frontend/appflowy_flutter/lib/workspace/application/appearance_defaults.dart b/frontend/appflowy_flutter/lib/workspace/application/appearance_defaults.dartindex d900afd6eb..c3190a8e40 100644--- a/frontend/appflowy_flutter/lib/workspace/application/appearance_defaults.dart+++ b/frontend/appflowy_flutter/lib/workspace/application/appearance_defaults.dart@@ -1,7 +1,6 @@-import 'package:flutter/material.dart';-import 'package:appflowy/workspace/application/settings/appearance/base_appearance.dart';import 'package:flowy_infra/theme.dart';+import 'package:flutter/material.dart';/// A class for the default appearance settings for the appclass DefaultAppearanceSettings {@@ -15,6 +14,6 @@ class DefaultAppearanceSettings {}static Color getDefaultSelectionColor(BuildContext context) {- return Theme.of(context).colorScheme.primary.withOpacity(0.2);+ return Theme.of(context).colorScheme.primary.withValues(alpha: 0.2);}}diff --git a/frontend/appflowy_flutter/lib/workspace/application/settings/appearance/appearance_cubit.dart b/frontend/appflowy_flutter/lib/workspace/application/settings/appearance/appearance_cubit.dartindex 37027bcf38..b64ef7d5b8 100644--- a/frontend/appflowy_flutter/lib/workspace/application/settings/appearance/appearance_cubit.dart+++ b/frontend/appflowy_flutter/lib/workspace/application/settings/appearance/appearance_cubit.dart@@ -309,7 +309,6 @@ ThemeModePB _themeModeToPB(ThemeMode themeMode) {case ThemeMode.dark:return ThemeModePB.Dark;case ThemeMode.system:- default:return ThemeModePB.System;}}@@ -358,8 +357,6 @@ enum AppFlowyTextDirection {return TextDirectionPB.RTL;case AppFlowyTextDirection.auto:return TextDirectionPB.AUTO;- default:- return TextDirectionPB.FALLBACK;}}}diff --git a/frontend/appflowy_flutter/lib/workspace/application/settings/appearance/mobile_appearance.dart b/frontend/appflowy_flutter/lib/workspace/application/settings/appearance/mobile_appearance.dartindex 63235ba217..6aa649d320 100644--- a/frontend/appflowy_flutter/lib/workspace/application/settings/appearance/mobile_appearance.dart+++ b/frontend/appflowy_flutter/lib/workspace/application/settings/appearance/mobile_appearance.dart@@ -49,7 +49,7 @@ class MobileAppearance extends BaseAppearance {error: const Color(0xffFB006D),onError: const Color(0xffFB006D),outline: const Color(0xffe3e3e3),- outlineVariant: const Color(0xffCBD5E0).withOpacity(0.24),+ outlineVariant: const Color(0xffCBD5E0).withValues(alpha: 0.24),//Snack barsurface: Colors.white,onSurface: _onSurfaceColor, // text/body colordiff --git a/frontend/appflowy_flutter/lib/workspace/application/settings/shortcuts/settings_shortcuts_service.dart b/frontend/appflowy_flutter/lib/workspace/application/settings/shortcuts/settings_shortcuts_service.dartindex 25b51c9a81..af95d5af5a 100644--- a/frontend/appflowy_flutter/lib/workspace/application/settings/shortcuts/settings_shortcuts_service.dart+++ b/frontend/appflowy_flutter/lib/workspace/application/settings/shortcuts/settings_shortcuts_service.dart@@ -53,8 +53,8 @@ class SettingsShortcutService {}}- /// Extracts shortcuts from the saved json file. The shortcuts in the saved file consist of [List<CommandShortcutModel>].- /// This list needs to be converted to List<CommandShortcutEvent\>. This function is intended to facilitate the same.+ // Extracts shortcuts from the saved json file. The shortcuts in the saved file consist of [List<CommandShortcutModel>].+ // This list needs to be converted to List<CommandShortcutEvent\>. This function is intended to facilitate the same.List<CommandShortcutModel> getShortcutsFromJson(String savedJson) {final shortcuts = EditorShortcuts.fromJson(jsonDecode(savedJson));return shortcuts.commandShortcuts;diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/command_palette/widgets/recent_view_tile.dart b/frontend/appflowy_flutter/lib/workspace/presentation/command_palette/widgets/recent_view_tile.dartindex deb401ea5c..000de7c9db 100644--- a/frontend/appflowy_flutter/lib/workspace/presentation/command_palette/widgets/recent_view_tile.dart+++ b/frontend/appflowy_flutter/lib/workspace/presentation/command_palette/widgets/recent_view_tile.dart@@ -33,8 +33,8 @@ class RecentViewTile extends StatelessWidget {),],),- focusColor: Theme.of(context).colorScheme.primary.withOpacity(0.1),- hoverColor: Theme.of(context).colorScheme.primary.withOpacity(0.1),+ focusColor: Theme.of(context).colorScheme.primary.withValues(alpha: 0.1),+ hoverColor: Theme.of(context).colorScheme.primary.withValues(alpha: 0.1),onTap: () {onSelected();diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/command_palette/widgets/search_result_tile.dart b/frontend/appflowy_flutter/lib/workspace/presentation/command_palette/widgets/search_result_tile.dartindex 1db18b77fb..5f26f07597 100644--- a/frontend/appflowy_flutter/lib/workspace/presentation/command_palette/widgets/search_result_tile.dart+++ b/frontend/appflowy_flutter/lib/workspace/presentation/command_palette/widgets/search_result_tile.dart@@ -82,7 +82,8 @@ class _SearchResultTileState extends State<SearchResultTile> {child: FlowyHover(isSelected: () => _hasFocus,style: HoverStyle(- hoverColor: Theme.of(context).colorScheme.primary.withOpacity(0.1),+ hoverColor:+ Theme.of(context).colorScheme.primary.withValues(alpha: 0.1),foregroundColorOnHover: AFThemeExtension.of(context).textColor,),child: Padding(diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/home/home_stack.dart b/frontend/appflowy_flutter/lib/workspace/presentation/home/home_stack.dartindex f7a95f3103..ae3b92a702 100644--- a/frontend/appflowy_flutter/lib/workspace/presentation/home/home_stack.dart+++ b/frontend/appflowy_flutter/lib/workspace/presentation/home/home_stack.dart@@ -326,7 +326,7 @@ class _SecondaryViewState extends State<SecondaryView>? const Color(0x1F1F2329): Theme.of(context).shadowColor- .withOpacity(0.08),+ .withValues(alpha: 0.08),),],),diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/footer/sidebar_toast.dart b/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/footer/sidebar_toast.dartindex 6d2b93be45..5e1a6f90e0 100644--- a/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/footer/sidebar_toast.dart+++ b/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/footer/sidebar_toast.dart@@ -174,8 +174,8 @@ class _PlanIndicatorState extends State<PlanIndicator> {begin: Alignment.topLeft,end: Alignment.bottomRight,colors: [- const Color(0xFF8032FF).withOpacity(.1),- const Color(0xFFEF35FF).withOpacity(.1),+ const Color(0xFF8032FF).withValues(alpha: .1),+ const Color(0xFFEF35FF).withValues(alpha: .1),],);diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/import/import_panel.dart b/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/import/import_panel.dartindex 6a23c7def9..716002e917 100644--- a/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/import/import_panel.dart+++ b/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/import/import_panel.dart@@ -204,8 +204,6 @@ class _ImportPanelState extends State<ImportPanel> {..importType = ImportTypePB.AFDatabase,);break;- default:- break;}}diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/space/shared_widget.dart b/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/space/shared_widget.dartindex 7afb4a6298..9b279cc11a 100644--- a/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/space/shared_widget.dart+++ b/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/space/shared_widget.dart@@ -250,16 +250,16 @@ enum ConfirmPopupStyle {class ConfirmPopupColor {static Color titleColor(BuildContext context) {if (Theme.of(context).isLightMode) {- return const Color(0xFF171717).withOpacity(0.8);+ return const Color(0xFF171717).withValues(alpha: 0.8);}- return const Color(0xFFffffff).withOpacity(0.8);+ return const Color(0xFFffffff).withValues(alpha: 0.8);}static Color descriptionColor(BuildContext context) {if (Theme.of(context).isLightMode) {- return const Color(0xFF171717).withOpacity(0.7);+ return const Color(0xFF171717).withValues(alpha: 0.7);}- return const Color(0xFFffffff).withOpacity(0.7);+ return const Color(0xFFffffff).withValues(alpha: 0.7);}}diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/workspace/_sidebar_workspace_menu.dart b/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/workspace/_sidebar_workspace_menu.dartindex f3038c0bec..ff393a8305 100644--- a/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/workspace/_sidebar_workspace_menu.dart+++ b/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/workspace/_sidebar_workspace_menu.dart@@ -370,7 +370,7 @@ class _CreateWorkspaceButton extends StatelessWidget {decoration: BoxDecoration(borderRadius: BorderRadius.circular(12),border: Border.all(- color: const Color(0x01717171).withOpacity(0.12),+ color: const Color(0x01717171).withValues(alpha: 0.12),width: 0.8,),),@@ -438,7 +438,7 @@ class _ImportNotionButton extends StatelessWidget {decoration: BoxDecoration(borderRadius: BorderRadius.circular(12),border: Border.all(- color: const Color(0x01717171).withOpacity(0.12),+ color: const Color(0x01717171).withValues(alpha: 0.12),width: 0.8,),),diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/view/draggable_view_item.dart b/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/view/draggable_view_item.dartindex 2b27024cff..c604fae432 100644--- a/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/view/draggable_view_item.dart+++ b/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/view/draggable_view_item.dart@@ -111,7 +111,8 @@ class _DraggableViewItemState extends State<DraggableViewItem> {decoration: BoxDecoration(borderRadius: BorderRadius.circular(6.0),color: position == DraggableHoverPosition.center- ? widget.centerHighlightColor ?? hoverColor.withOpacity(0.5)+ ? widget.centerHighlightColor ??+ hoverColor.withValues(alpha: 0.5): Colors.transparent,),child: widget.child,@@ -150,7 +151,10 @@ class _DraggableViewItemState extends State<DraggableViewItem> {borderRadius: BorderRadius.circular(4.0),color: position == DraggableHoverPosition.center? widget.centerHighlightColor ??- Theme.of(context).colorScheme.secondary.withOpacity(0.5)+ Theme.of(context)+ .colorScheme+ .secondary+ .withValues(alpha: 0.5): Colors.transparent,),child: widget.child,diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/account/account_deletion.dart b/frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/account/account_deletion.dartindex 6f1c4920cb..9b2f75ddd0 100644--- a/frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/account/account_deletion.dart+++ b/frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/account/account_deletion.dart@@ -76,7 +76,8 @@ class _AccountDeletionButtonState extends State<AccountDeletionButton> {padding: const EdgeInsets.symmetric(horizontal: 26, vertical: 10),fillColor: Colors.transparent,radius: Corners.s8Border,- hoverColor: Theme.of(context).colorScheme.error.withOpacity(0.1),+ hoverColor:+ Theme.of(context).colorScheme.error.withValues(alpha: 0.1),fontColor: Theme.of(context).colorScheme.error,fontSize: 12,isDangerous: true,diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/settings_plan_view.dart b/frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/settings_plan_view.dartindex 2230650164..bf1e479226 100644--- a/frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/settings_plan_view.dart+++ b/frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/settings_plan_view.dart@@ -602,8 +602,8 @@ class _PlanProgressIndicator extends StatelessWidget {borderRadius: BorderRadius.circular(8),color: AFThemeExtension.of(context).progressBarBGColor,border: Border.all(- color: const Color(0xFFDDF1F7).withOpacity(- theme.brightness == Brightness.light ? 1 : 0.1,+ color: const Color(0xFFDDF1F7).withValues(+ alpha: theme.brightness == Brightness.light ? 1 : 0.1,),),),@@ -673,7 +673,7 @@ class _AddOnBox extends StatelessWidget {border: Border.all(color: isActive ? const Color(0xFFBDBDBD) : const Color(0xFF9C00FB),),- color: const Color(0xFFF7F8FC).withOpacity(0.05),+ color: const Color(0xFFF7F8FC).withValues(alpha: 0.05),borderRadius: BorderRadius.circular(16),),child: Column(diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/settings_shortcuts_view.dart b/frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/settings_shortcuts_view.dartindex f98ff00a3a..1db39b8fda 100644--- a/frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/settings_shortcuts_view.dart+++ b/frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/settings_shortcuts_view.dart@@ -485,7 +485,7 @@ class KeyBadge extends StatelessWidget {borderRadius: Corners.s4Border,boxShadow: [BoxShadow(- color: Colors.black.withOpacity(0.25),+ color: Colors.black.withValues(alpha: 0.25),blurRadius: 1,offset: const Offset(0, 1),),diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/settings_workspace_view.dart b/frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/settings_workspace_view.dartindex ab8d5ee078..1cfc833398 100644--- a/frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/settings_workspace_view.dart+++ b/frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/settings_workspace_view.dart@@ -1090,9 +1090,11 @@ class _FontListPopupState extends State<_FontListPopup> {hoverColor: Theme.of(context).colorScheme.onSurface- .withOpacity(0.12),- selectedTileColor:- Theme.of(context).colorScheme.primary.withOpacity(0.12),+ .withValues(alpha: 0.12),+ selectedTileColor: Theme.of(context)+ .colorScheme+ .primary+ .withValues(alpha: 0.12),contentPadding:const EdgeInsets.symmetric(horizontal: 6, vertical: 4),minTileHeight: 0,diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/sites/domain/domain_item.dart b/frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/sites/domain/domain_item.dartindex 2ac7814de4..8f9df5f1b6 100644--- a/frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/sites/domain/domain_item.dart+++ b/frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/sites/domain/domain_item.dart@@ -249,7 +249,7 @@ class _FreePlanUpgradeButton extends StatelessWidget {horizontal: 8.0,vertical: 6.0,),- hoverColor: context.proSecondaryColor.withOpacity(0.9),+ hoverColor: context.proSecondaryColor.withValues(alpha: 0.9),onTap: () {if (isOwner) {showToastNotification(diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/settings/settings_dialog.dart b/frontend/appflowy_flutter/lib/workspace/presentation/settings/settings_dialog.dartindex 986e2a4dbd..5165744627 100644--- a/frontend/appflowy_flutter/lib/workspace/presentation/settings/settings_dialog.dart+++ b/frontend/appflowy_flutter/lib/workspace/presentation/settings/settings_dialog.dart@@ -171,8 +171,6 @@ class SettingsDialog extends StatelessWidget {);case SettingsPage.featureFlags:return const FeatureFlagsPage();- default:- return const SizedBox.shrink();}}}diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/settings/shared/flowy_gradient_button.dart b/frontend/appflowy_flutter/lib/workspace/presentation/settings/shared/flowy_gradient_button.dartindex eb39df8b32..68556f8294 100644--- a/frontend/appflowy_flutter/lib/workspace/presentation/settings/shared/flowy_gradient_button.dart+++ b/frontend/appflowy_flutter/lib/workspace/presentation/settings/shared/flowy_gradient_button.dart@@ -1,6 +1,5 @@-import 'package:flutter/material.dart';-import 'package:flowy_infra_ui/style_widget/text.dart';+import 'package:flutter/material.dart';class FlowyGradientButton extends StatefulWidget {const FlowyGradientButton({@@ -49,7 +48,7 @@ class _FlowyGradientButtonState extends State<FlowyGradientButton> {boxShadow: [BoxShadow(blurRadius: 4,- color: Colors.black.withOpacity(0.25),+ color: Colors.black.withValues(alpha: 0.25),offset: const Offset(0, 2),),],diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/settings/shared/settings_dropdown.dart b/frontend/appflowy_flutter/lib/workspace/presentation/settings/shared/settings_dropdown.dartindex 56d2c8d2cc..3b2e883210 100644--- a/frontend/appflowy_flutter/lib/workspace/presentation/settings/shared/settings_dropdown.dart+++ b/frontend/appflowy_flutter/lib/workspace/presentation/settings/shared/settings_dropdown.dart@@ -61,7 +61,7 @@ class _SettingsDropdownState<T> extends State<SettingsDropdown<T>> {const WidgetStatePropertyAll(Size(double.infinity, 250)),elevation: const WidgetStatePropertyAll(10),shadowColor:- WidgetStatePropertyAll(Colors.black.withOpacity(0.4)),+ WidgetStatePropertyAll(Colors.black.withValues(alpha: 0.4)),backgroundColor: WidgetStatePropertyAll(Theme.of(context).cardColor,),diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/settings/shared/single_setting_action.dart b/frontend/appflowy_flutter/lib/workspace/presentation/settings/shared/single_setting_action.dartindex a356e3fd50..6b0c920a04 100644--- a/frontend/appflowy_flutter/lib/workspace/presentation/settings/shared/single_setting_action.dart+++ b/frontend/appflowy_flutter/lib/workspace/presentation/settings/shared/single_setting_action.dart@@ -128,11 +128,11 @@ class SingleSettingAction extends StatelessWidget {Color? hoverColor(BuildContext context) {if (buttonType.isDangerous) {- return Theme.of(context).colorScheme.error.withOpacity(0.1);+ return Theme.of(context).colorScheme.error.withValues(alpha: 0.1);}if (buttonType.isPrimary) {- return Theme.of(context).colorScheme.primary.withOpacity(0.9);+ return Theme.of(context).colorScheme.primary.withValues(alpha: 0.9);}if (buttonType.isHighlight) {diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/emoji_picker/src/emji_picker_config.dart b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/emoji_picker/src/emji_picker_config.dartindex 22d2bbe034..f329e9dd1c 100644--- a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/emoji_picker/src/emji_picker_config.dart+++ b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/emoji_picker/src/emji_picker_config.dart@@ -3,8 +3,8 @@ import 'dart:math';import 'package:flutter/material.dart';import 'package:freezed_annotation/freezed_annotation.dart';-import 'models/emoji_category_models.dart';import 'emoji_picker.dart';+import 'models/emoji_category_models.dart';part 'emji_picker_config.freezed.dart';@@ -87,8 +87,6 @@ class EmojiPickerConfig with _$EmojiPickerConfig {return emojiCategoryIcons.flagIcon;case EmojiCategory.SEARCH:return emojiCategoryIcons.searchIcon;- default:- throw Exception('Unsupported EmojiCategory');}}}diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/theme_upload/theme_upload_decoration.dart b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/theme_upload/theme_upload_decoration.dartindex f3cd25afde..ea8ebfe36b 100644--- a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/theme_upload/theme_upload_decoration.dart+++ b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/theme_upload/theme_upload_decoration.dart@@ -16,8 +16,8 @@ class ThemeUploadDecoration extends StatelessWidget {borderRadius: BorderRadius.circular(ThemeUploadWidget.borderRadius),color: Theme.of(context).colorScheme.surface,border: Border.all(- color: AFThemeExtension.of(context).onBackground.withOpacity(- ThemeUploadWidget.fadeOpacity,+ color: AFThemeExtension.of(context).onBackground.withValues(+ alpha: ThemeUploadWidget.fadeOpacity,),),),@@ -28,7 +28,7 @@ class ThemeUploadDecoration extends StatelessWidget {color: Theme.of(context).colorScheme.onSurface- .withOpacity(ThemeUploadWidget.fadeOpacity),+ .withValues(alpha: ThemeUploadWidget.fadeOpacity),radius: const Radius.circular(ThemeUploadWidget.borderRadius),child: ClipRRect(borderRadius: BorderRadius.circular(ThemeUploadWidget.borderRadius),diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/theme_upload/theme_upload_failure_widget.dart b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/theme_upload/theme_upload_failure_widget.dartindex edb382d6ee..a7286bee48 100644--- a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/theme_upload/theme_upload_failure_widget.dart+++ b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/theme_upload/theme_upload_failure_widget.dart@@ -15,7 +15,7 @@ class ThemeUploadFailureWidget extends StatelessWidget {color: Theme.of(context).colorScheme.error- .withOpacity(ThemeUploadWidget.fadeOpacity),+ .withValues(alpha: ThemeUploadWidget.fadeOpacity),constraints: const BoxConstraints.expand(),padding: ThemeUploadWidget.padding,child: Column(diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/theme_upload/theme_upload_loading_widget.dart b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/theme_upload/theme_upload_loading_widget.dartindex 5e0ad15f38..1d3e7ab0f8 100644--- a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/theme_upload/theme_upload_loading_widget.dart+++ b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/theme_upload/theme_upload_loading_widget.dart@@ -14,7 +14,7 @@ class ThemeUploadLoadingWidget extends StatelessWidget {color: Theme.of(context).colorScheme.surface- .withOpacity(ThemeUploadWidget.fadeOpacity),+ .withValues(alpha: ThemeUploadWidget.fadeOpacity),constraints: const BoxConstraints.expand(),child: Column(mainAxisAlignment: MainAxisAlignment.center,diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/theme_upload/upload_new_theme_widget.dart b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/theme_upload/upload_new_theme_widget.dartindex 0113d26a37..02a7c8e7ab 100644--- a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/theme_upload/upload_new_theme_widget.dart+++ b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/theme_upload/upload_new_theme_widget.dart@@ -15,7 +15,7 @@ class UploadNewThemeWidget extends StatelessWidget {color: Theme.of(context).colorScheme.surface- .withOpacity(ThemeUploadWidget.fadeOpacity),+ .withValues(alpha: ThemeUploadWidget.fadeOpacity),padding: ThemeUploadWidget.padding,child: Column(mainAxisAlignment: MainAxisAlignment.center,diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/widgets/float_bubble/social_media_section.dart b/frontend/appflowy_flutter/lib/workspace/presentation/widgets/float_bubble/social_media_section.dartindex f5c8ffa146..43b3ab9b62 100644--- a/frontend/appflowy_flutter/lib/workspace/presentation/widgets/float_bubble/social_media_section.dart+++ b/frontend/appflowy_flutter/lib/workspace/presentation/widgets/float_bubble/social_media_section.dart@@ -79,9 +79,6 @@ extension QuestionBubbleExtension on SocialMedia {case SocialMedia.forum:return Theme.of(context).hintColor;-- default:- return null;}}diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/widgets/image_viewer/interactive_image_toolbar.dart b/frontend/appflowy_flutter/lib/workspace/presentation/widgets/image_viewer/interactive_image_toolbar.dartindex a602aaed58..765a385b0b 100644--- a/frontend/appflowy_flutter/lib/workspace/presentation/widgets/image_viewer/interactive_image_toolbar.dart+++ b/frontend/appflowy_flutter/lib/workspace/presentation/widgets/image_viewer/interactive_image_toolbar.dart@@ -119,7 +119,7 @@ class InteractiveImageToolbar extends StatelessWidget {child: FlowyHover(resetHoverOnRebuild: false,style: HoverStyle(- hoverColor: Colors.white.withOpacity(0.1),+ hoverColor: Colors.white.withValues(alpha: 0.1),borderRadius: BorderRadius.circular(4),),child: Padding(@@ -204,7 +204,7 @@ class InteractiveImageToolbar extends StatelessWidget {return DecoratedBox(decoration: BoxDecoration(borderRadius: BorderRadius.circular(6),- color: Colors.black.withOpacity(0.6),+ color: Colors.black.withValues(alpha: 0.6),),child: Padding(padding: const EdgeInsets.all(4),@@ -284,8 +284,9 @@ class _ToolbarItem extends StatelessWidget {child: FlowyHover(resetHoverOnRebuild: false,style: HoverStyle(- hoverColor:- isDisabled ? Colors.transparent : Colors.white.withOpacity(0.1),+ hoverColor: isDisabled+ ? Colors.transparent+ : Colors.white.withValues(alpha: 0.1),borderRadius: BorderRadius.circular(4),),child: Container(diff --git a/frontend/appflowy_flutter/macos/Podfile.lock b/frontend/appflowy_flutter/macos/Podfile.lockindex 347343dad8..9c0ef58429 100644--- a/frontend/appflowy_flutter/macos/Podfile.lock+++ b/frontend/appflowy_flutter/macos/Podfile.lock@@ -31,7 +31,7 @@ PODS:- Flutter- FlutterMacOS- ReachabilitySwift (5.2.3)- - screen_retriever (0.0.1):+ - screen_retriever_macos (0.0.1):- FlutterMacOS- Sentry/HybridSDK (8.35.1)- sentry_flutter (8.8.0):@@ -43,13 +43,16 @@ PODS:- shared_preferences_foundation (0.0.1):- Flutter- FlutterMacOS- - sqflite (0.0.3):+ - sqflite_darwin (0.0.4):- Flutter- FlutterMacOS- super_native_extensions (0.0.1):- FlutterMacOS- url_launcher_macos (0.0.1):- FlutterMacOS+ - webview_flutter_wkwebview (0.0.1):+ - Flutter+ - FlutterMacOS- window_manager (0.2.0):- FlutterMacOS@@ -68,13 +71,14 @@ DEPENDENCIES:- local_notifier (from `Flutter/ephemeral/.symlinks/plugins/local_notifier/macos`)- package_info_plus (from `Flutter/ephemeral/.symlinks/plugins/package_info_plus/macos`)- path_provider_foundation (from `Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin`)- - screen_retriever (from `Flutter/ephemeral/.symlinks/plugins/screen_retriever/macos`)+ - screen_retriever_macos (from `Flutter/ephemeral/.symlinks/plugins/screen_retriever_macos/macos`)- sentry_flutter (from `Flutter/ephemeral/.symlinks/plugins/sentry_flutter/macos`)- share_plus (from `Flutter/ephemeral/.symlinks/plugins/share_plus/macos`)- shared_preferences_foundation (from `Flutter/ephemeral/.symlinks/plugins/shared_preferences_foundation/darwin`)- - sqflite (from `Flutter/ephemeral/.symlinks/plugins/sqflite/darwin`)+ - sqflite_darwin (from `Flutter/ephemeral/.symlinks/plugins/sqflite_darwin/darwin`)- super_native_extensions (from `Flutter/ephemeral/.symlinks/plugins/super_native_extensions/macos`)- url_launcher_macos (from `Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos`)+ - webview_flutter_wkwebview (from `Flutter/ephemeral/.symlinks/plugins/webview_flutter_wkwebview/darwin`)- window_manager (from `Flutter/ephemeral/.symlinks/plugins/window_manager/macos`)SPEC REPOS:@@ -112,20 +116,22 @@ EXTERNAL SOURCES::path: Flutter/ephemeral/.symlinks/plugins/package_info_plus/macospath_provider_foundation::path: Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin- screen_retriever:- :path: Flutter/ephemeral/.symlinks/plugins/screen_retriever/macos+ screen_retriever_macos:+ :path: Flutter/ephemeral/.symlinks/plugins/screen_retriever_macos/macossentry_flutter::path: Flutter/ephemeral/.symlinks/plugins/sentry_flutter/macosshare_plus::path: Flutter/ephemeral/.symlinks/plugins/share_plus/macosshared_preferences_foundation::path: Flutter/ephemeral/.symlinks/plugins/shared_preferences_foundation/darwin- sqflite:- :path: Flutter/ephemeral/.symlinks/plugins/sqflite/darwin+ sqflite_darwin:+ :path: Flutter/ephemeral/.symlinks/plugins/sqflite_darwin/darwinsuper_native_extensions::path: Flutter/ephemeral/.symlinks/plugins/super_native_extensions/macosurl_launcher_macos::path: Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos+ webview_flutter_wkwebview:+ :path: Flutter/ephemeral/.symlinks/plugins/webview_flutter_wkwebview/darwinwindow_manager::path: Flutter/ephemeral/.symlinks/plugins/window_manager/macos@@ -146,14 +152,15 @@ SPEC CHECKSUMS:package_info_plus: 12f1c5c2cfe8727ca46cbd0b26677728972d9a5bpath_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46ReachabilitySwift: 7f151ff156cea1481a8411701195ac6a984f4979- screen_retriever: 59634572a57080243dd1bf715e55b6c54f241a38+ screen_retriever_macos: 776e0fa5d42c6163d2bf772d22478df4b302b161Sentry: 1fe34e9c2cbba1e347623610d26db121dcb569f1sentry_flutter: a39c2a2d67d5e5b9cb0b94a4985c76dd5b3fc737share_plus: 1fa619de8392a4398bfaf176d441853922614e89shared_preferences_foundation: fcdcbc04712aee1108ac7fda236f363274528f78- sqflite: 673a0e54cc04b7d6dba8d24fb8095b31c3a99eec+ sqflite_darwin: 5a7236e3b501866c1c9befc6771dfd73ffb8702dsuper_native_extensions: 85efee3a7495b46b04befcfc86ed12069264ebf3url_launcher_macos: c82c93949963e55b228a30115bd219499a6fe404+ webview_flutter_wkwebview: 0982481e3d9c78fd5c6f62a002fcd24fc791f1e4window_manager: 3a1844359a6295ab1e47659b1a777e36773cd6e8PODFILE CHECKSUM: 0532f3f001ca3110b8be345d6491fff690e95823diff --git a/frontend/appflowy_flutter/macos/Runner/AppDelegate.swift b/frontend/appflowy_flutter/macos/Runner/AppDelegate.swiftindex cad0330b85..14f99e9e07 100644--- a/frontend/appflowy_flutter/macos/Runner/AppDelegate.swift+++ b/frontend/appflowy_flutter/macos/Runner/AppDelegate.swift@@ -1,7 +1,7 @@import Cocoaimport FlutterMacOS-@NSApplicationMain+@mainclass AppDelegate: FlutterAppDelegate {override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {return falsediff --git a/frontend/appflowy_flutter/packages/appflowy_popover/example/lib/example_button.dart b/frontend/appflowy_flutter/packages/appflowy_popover/example/lib/example_button.dartindex ebd757aad3..12bfd87ac3 100644--- a/frontend/appflowy_flutter/packages/appflowy_popover/example/lib/example_button.dart+++ b/frontend/appflowy_flutter/packages/appflowy_popover/example/lib/example_button.dart@@ -23,7 +23,7 @@ class _PopoverMenuState extends State<PopoverMenu> {borderRadius: const BorderRadius.all(Radius.circular(8)),boxShadow: [BoxShadow(- color: Colors.grey.withOpacity(0.5),+ color: Colors.grey.withValues(alpha: 0.5),spreadRadius: 5,blurRadius: 7,offset: const Offset(0, 3), // changes position of shadowdiff --git a/frontend/appflowy_flutter/packages/appflowy_popover/lib/appflowy_popover.dart b/frontend/appflowy_flutter/packages/appflowy_popover/lib/appflowy_popover.dartindex 925b9cad02..0b4208e6fc 100644--- a/frontend/appflowy_flutter/packages/appflowy_popover/lib/appflowy_popover.dart+++ b/frontend/appflowy_flutter/packages/appflowy_popover/lib/appflowy_popover.dart@@ -1,5 +1,5 @@/// AppFlowyBoard library-library appflowy_popover;+library;export 'src/mutex.dart';export 'src/popover.dart';diff --git a/frontend/appflowy_flutter/packages/appflowy_result/lib/appflowy_result.dart b/frontend/appflowy_flutter/packages/appflowy_result/lib/appflowy_result.dartindex 97b81cfe1a..d91c9e4954 100644--- a/frontend/appflowy_flutter/packages/appflowy_result/lib/appflowy_result.dart+++ b/frontend/appflowy_flutter/packages/appflowy_result/lib/appflowy_result.dart@@ -1,4 +1,5 @@-library appflowy_result;+/// AppFlowyPopover library+library;export 'src/async_result.dart';export 'src/result.dart';diff --git a/frontend/appflowy_flutter/packages/flowy_infra/lib/utils/color_converter.dart b/frontend/appflowy_flutter/packages/flowy_infra/lib/utils/color_converter.dartindex 19ca90d78f..4f80f81e62 100644--- a/frontend/appflowy_flutter/packages/flowy_infra/lib/utils/color_converter.dart+++ b/frontend/appflowy_flutter/packages/flowy_infra/lib/utils/color_converter.dart@@ -13,5 +13,12 @@ class ColorConverter implements JsonConverter<Color, String> {}@override- String toJson(Color color) => "0x${color.value.toRadixString(16)}";+ String toJson(Color color) {+ final alpha = (color.a * 255).toInt().toRadixString(16).padLeft(2, '0');+ final red = (color.r * 255).toInt().toRadixString(16).padLeft(2, '0');+ final green = (color.g * 255).toInt().toRadixString(16).padLeft(2, '0');+ final blue = (color.b * 255).toInt().toRadixString(16).padLeft(2, '0');++ return '0x$alpha$red$green$blue'.toLowerCase();+ }}diff --git a/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/src/flowy_overlay/flowy_popover_layout.dart b/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/src/flowy_overlay/flowy_popover_layout.dartindex 0d4bacde52..fb29bb0637 100644--- a/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/src/flowy_overlay/flowy_popover_layout.dart+++ b/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/src/flowy_overlay/flowy_popover_layout.dart@@ -1,5 +1,7 @@import 'dart:math' as math;+import 'package:flutter/material.dart';+import 'flowy_overlay.dart';class PopoverLayoutDelegate extends SingleChildLayoutDelegate {@@ -133,8 +135,6 @@ class PopoverLayoutDelegate extends SingleChildLayoutDelegate {case AnchorDirection.custom:childConstraints = constraints.loosen();break;- default:- throw UnimplementedError();}return childConstraints;}diff --git a/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/src/flowy_overlay/layout.dart b/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/src/flowy_overlay/layout.dartindex 87dd63b715..84e7bb8ebd 100644--- a/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/src/flowy_overlay/layout.dart+++ b/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/src/flowy_overlay/layout.dart@@ -1,5 +1,7 @@import 'dart:math' as math;+import 'package:flutter/material.dart';+import 'flowy_overlay.dart';class OverlayLayoutDelegate extends SingleChildLayoutDelegate {@@ -133,8 +135,6 @@ class OverlayLayoutDelegate extends SingleChildLayoutDelegate {case AnchorDirection.custom:childConstraints = constraints.loosen();break;- default:- throw UnimplementedError();}return childConstraints;}diff --git a/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/src/flowy_overlay/list_overlay.dart b/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/src/flowy_overlay/list_overlay.dartindex 2b61839ac3..d1964e0c83 100644--- a/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/src/flowy_overlay/list_overlay.dart+++ b/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/src/flowy_overlay/list_overlay.dart@@ -128,7 +128,7 @@ class OverlayContainer extends StatelessWidget {padding: padding,decoration: FlowyDecoration.decoration(Theme.of(context).colorScheme.surface,- Theme.of(context).colorScheme.shadow.withOpacity(0.15),+ Theme.of(context).colorScheme.shadow.withValues(alpha: 0.15),),constraints: constraints,child: child,diff --git a/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/style_widget/primary_rounded_button.dart b/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/style_widget/primary_rounded_button.dartindex c227d8b8ef..9a54d51fed 100644--- a/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/style_widget/primary_rounded_button.dart+++ b/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/style_widget/primary_rounded_button.dart@@ -52,8 +52,8 @@ class PrimaryRoundedButton extends StatelessWidget {),margin: margin ?? const EdgeInsets.symmetric(horizontal: 14.0),backgroundColor: backgroundColor ?? Theme.of(context).colorScheme.primary,- hoverColor:- hoverColor ?? Theme.of(context).colorScheme.primary.withOpacity(0.9),+ hoverColor: hoverColor ??+ Theme.of(context).colorScheme.primary.withValues(alpha: 0.9),radius: BorderRadius.circular(radius ?? 10.0),onTap: onTap,);diff --git a/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/style_widget/text_input.dart b/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/style_widget/text_input.dartindex bc391daf9e..95fd82363e 100644--- a/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/style_widget/text_input.dart+++ b/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/style_widget/text_input.dart@@ -1,11 +1,10 @@import 'dart:async';import 'dart:math' as math;+import 'package:flowy_infra/size.dart';import 'package:flutter/material.dart';import 'package:flutter/services.dart';-import 'package:flowy_infra/size.dart';-class FlowyFormTextInput extends StatelessWidget {static EdgeInsets kDefaultTextInputPadding = const EdgeInsets.only(bottom: 2);@@ -68,7 +67,7 @@ class FlowyFormTextInput extends StatelessWidget {hintStyle: Theme.of(context).textTheme.bodyMedium!- .copyWith(color: Theme.of(context).hintColor.withOpacity(0.7)),+ .copyWith(color: Theme.of(context).hintColor.withValues(alpha: 0.7)),isDense: true,inputBorder: const ThinUnderlineBorder(borderSide: BorderSide(width: 5, color: Colors.red),diff --git a/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/widget/buttons/base_styled_button.dart b/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/widget/buttons/base_styled_button.dartindex 8087c712fe..c81c81f356 100644--- a/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/widget/buttons/base_styled_button.dart+++ b/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/widget/buttons/base_styled_button.dart@@ -121,7 +121,7 @@ class BaseStyledBtnState extends State<BaseStyledButton> {fillColor: Colors.transparent,hoverColor: widget.hoverColor ?? Colors.transparent,highlightColor: widget.highlightColor ?? Colors.transparent,- focusColor: widget.focusColor ?? Colors.grey.withOpacity(0.35),+ focusColor: widget.focusColor ?? Colors.grey.withValues(alpha: 0.35),constraints: BoxConstraints(minHeight: widget.minHeight ?? 0, minWidth: widget.minWidth ?? 0),onPressed: widget.onPressed,diff --git a/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/widget/dialog/styled_dialogs.dart b/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/widget/dialog/styled_dialogs.dartindex e29f778d84..7048ed32ec 100644--- a/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/widget/dialog/styled_dialogs.dart+++ b/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/widget/dialog/styled_dialogs.dart@@ -96,7 +96,7 @@ class Dialogs {{required Widget child}) async {return await Navigator.of(context).push(StyledDialogRoute(- barrier: DialogBarrier(color: Colors.black.withOpacity(0.4)),+ barrier: DialogBarrier(color: Colors.black.withValues(alpha: 0.4)),pageBuilder: (BuildContext buildContext, Animation<double> animation,Animation<double> secondaryAnimation) {return SafeArea(child: child);diff --git a/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/widget/flowy_tooltip.dart b/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/widget/flowy_tooltip.dartindex c4c3263d39..a34a55b9f8 100644--- a/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/widget/flowy_tooltip.dart+++ b/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/widget/flowy_tooltip.dart@@ -66,7 +66,7 @@ extension FlowyToolTipExtension on BuildContext {}TextStyle? tooltipHintTextStyle({double? fontSize}) => tooltipTextStyle(- fontColor: tooltipFontColor().withOpacity(0.7),+ fontColor: tooltipFontColor().withValues(alpha: 0.7),fontSize: fontSize,);diff --git a/frontend/appflowy_flutter/packages/flowy_svg/lib/src/flowy_svg.dart b/frontend/appflowy_flutter/packages/flowy_svg/lib/src/flowy_svg.dartindex cba112dc2b..b5ded7b713 100644--- a/frontend/appflowy_flutter/packages/flowy_svg/lib/src/flowy_svg.dart+++ b/frontend/appflowy_flutter/packages/flowy_svg/lib/src/flowy_svg.dart@@ -80,7 +80,7 @@ class FlowySvg extends StatelessWidget {Widget build(BuildContext context) {Color? iconColor = color ?? Theme.of(context).iconTheme.color;if (opacity != null) {- iconColor = iconColor?.withOpacity(opacity!);+ iconColor = iconColor?.withValues(alpha: opacity!);}final textScaleFactor = MediaQuery.textScalerOf(context).scale(1);diff --git a/frontend/appflowy_flutter/pubspec.lock b/frontend/appflowy_flutter/pubspec.lockindex 217c708495..6548cc183d 100644--- a/frontend/appflowy_flutter/pubspec.lock+++ b/frontend/appflowy_flutter/pubspec.lock@@ -5,18 +5,23 @@ packages:dependency: transitivedescription:name: _fe_analyzer_shared- sha256: "0b2f2bd91ba804e53a61d757b986f89f1f9eaed5b11e4b2f5a2468d86d6c9fc7"+ sha256: "16e298750b6d0af7ce8a3ba7c18c69c3785d11b15ec83f6dcd0ad2a0009b3cab"url: "https://pub.dev"source: hosted- version: "67.0.0"+ version: "76.0.0"+ _macros:+ dependency: transitive+ description: dart+ source: sdk+ version: "0.3.3"analyzer:dependency: transitivedescription:name: analyzer- sha256: "37577842a27e4338429a1cbc32679d508836510b056f1eedf0c8d20e39c1383d"+ sha256: "1f14db053a8c23e260789e9b0980fa27f2680dd640932cae5e1137cce0e46e1e"url: "https://pub.dev"source: hosted- version: "6.4.1"+ version: "6.11.0"animations:dependency: transitivedescription:@@ -37,10 +42,34 @@ packages:dependency: "direct main"description:name: app_links- sha256: "3ced568a5d9e309e99af71285666f1f3117bddd0bd5b3317979dccc1a40cada4"+ sha256: "433df2e61b10519407475d7f69e470789d23d593f28224c38ba1068597be7950"+ url: "https://pub.dev"+ source: hosted+ version: "6.3.3"+ app_links_linux:+ dependency: transitive+ description:+ name: app_links_linux+ sha256: f5f7173a78609f3dfd4c2ff2c95bd559ab43c80a87dc6a095921d96c05688c81+ url: "https://pub.dev"+ source: hosted+ version: "1.0.3"+ app_links_platform_interface:+ dependency: transitive+ description:+ name: app_links_platform_interface+ sha256: "05f5379577c513b534a29ddea68176a4d4802c46180ee8e2e966257158772a3f"+ url: "https://pub.dev"+ source: hosted+ version: "2.0.2"+ app_links_web:+ dependency: transitive+ description:+ name: app_links_web+ sha256: af060ed76183f9e2b87510a9480e56a5352b6c249778d07bd2c95fc35632a555url: "https://pub.dev"source: hosted- version: "3.5.1"+ version: "1.0.4"appflowy_backend:dependency: "direct main"description:@@ -61,11 +90,11 @@ packages:dependency: "direct main"description:path: "."- ref: e4648cc- resolved-ref: e4648ccbc2c1b9ffc5ceb3168b84a9ebdaa692de+ ref: "55c457f"+ resolved-ref: "55c457f472ed997906bd77142ef94bb7f66cc629"url: "https://github.com/AppFlowy-IO/appflowy-editor.git"source: git- version: "4.0.0"+ version: "5.0.0"appflowy_editor_plugins:dependency: "direct main"description:@@ -125,10 +154,10 @@ packages:dependency: "direct main"description:name: avatar_stack- sha256: e4a1576f7478add964bbb8aa5e530db39288fbbf81c30c4fb4b81162dd68aa49+ sha256: "354527ba139956fd6439e2c49199d8298d72afdaa6c4cd6f37f26b97faf21f7e"url: "https://pub.dev"source: hosted- version: "1.2.0"+ version: "3.0.0"barcode:dependency: transitivedescription:@@ -213,50 +242,50 @@ packages:dependency: transitivedescription:name: build- sha256: "80184af8b6cb3e5c1c4ec6d8544d27711700bc3e6d2efad04238c7b5290889f0"+ sha256: cef23f1eda9b57566c81e2133d196f8e3df48f244b317368d65c5943d91148f0url: "https://pub.dev"source: hosted- version: "2.4.1"+ version: "2.4.2"build_config:dependency: transitivedescription:name: build_config- sha256: bf80fcfb46a29945b423bd9aad884590fb1dc69b330a4d4700cac476af1708d1+ sha256: "4ae2de3e1e67ea270081eaee972e1bd8f027d459f249e0f1186730784c2e7e33"url: "https://pub.dev"source: hosted- version: "1.1.1"+ version: "1.1.2"build_daemon:dependency: transitivedescription:name: build_daemon- sha256: "79b2aef6ac2ed00046867ed354c88778c9c0f029df8a20fe10b5436826721ef9"+ sha256: "294a2edaf4814a378725bfe6358210196f5ea37af89ecd81bfa32960113d4948"url: "https://pub.dev"source: hosted- version: "4.0.2"+ version: "4.0.3"build_resolvers:dependency: transitivedescription:name: build_resolvers- sha256: "339086358431fa15d7eca8b6a36e5d783728cf025e559b834f4609a1fcfb7b0a"+ sha256: "99d3980049739a985cf9b21f30881f46db3ebc62c5b8d5e60e27440876b1ba1e"url: "https://pub.dev"source: hosted- version: "2.4.2"+ version: "2.4.3"build_runner:dependency: "direct dev"description:name: build_runner- sha256: "644dc98a0f179b872f612d3eb627924b578897c629788e858157fa5e704ca0c7"+ sha256: "74691599a5bc750dc96a6b4bfd48f7d9d66453eab04c7f4063134800d6a5c573"url: "https://pub.dev"source: hosted- version: "2.4.11"+ version: "2.4.14"build_runner_core:dependency: transitivedescription:name: build_runner_core- sha256: e3c79f69a64bdfcd8a776a3c28db4eb6e3fb5356d013ae5eb2e52007706d5dbe+ sha256: "22e3aa1c80e0ada3722fe5b63fd43d9c8990759d0a2cf489c8c5d7b2bdebc021"url: "https://pub.dev"source: hosted- version: "7.3.1"+ version: "8.0.0"built_collection:dependency: transitivedescription:@@ -342,18 +371,18 @@ packages:dependency: transitivedescription:name: code_builder- sha256: f692079e25e7869c14132d39f223f8eec9830eb76131925143b2129c4bb01b37+ sha256: "0ec10bf4a89e4c613960bf1e8b42c64127021740fb21640c29c909826a5eea3e"url: "https://pub.dev"source: hosted- version: "4.10.0"+ version: "4.10.1"collection:dependency: "direct main"description:name: collection- sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a+ sha256: a1ace0a119f20aabc852d165077c036cd864315bd99b7eaa10a60100341941bfurl: "https://pub.dev"source: hosted- version: "1.18.0"+ version: "1.19.0"connectivity_plus:dependency: "direct main"description:@@ -390,10 +419,10 @@ packages:dependency: transitivedescription:name: cross_cache- sha256: "3879d1661f211e89d81ece419684df5111b5a611aa6200cd405e8332031765e9"+ sha256: "80329477264c73f09945ee780ccdc84df9231f878dc7227d132d301e34ff310b"url: "https://pub.dev"source: hosted- version: "0.0.3"+ version: "0.0.4"cross_file:dependency: "direct main"description:@@ -422,10 +451,10 @@ packages:dependency: transitivedescription:name: dart_style- sha256: "99e066ce75c89d6b29903d788a7bb9369cf754f7b24bf70bf4b6d6d6b26853b9"+ sha256: "7856d364b589d1f08986e140938578ed36ed948581fbc3bc9aef1805039ac5ab"url: "https://pub.dev"source: hosted- version: "2.3.6"+ version: "2.3.7"dbus:dependency: transitivedescription:@@ -446,10 +475,10 @@ packages:dependency: "direct main"description:name: desktop_drop- sha256: d55a010fe46c8e8fcff4ea4b451a9ff84a162217bdb3b2a0aa1479776205e15d+ sha256: "03abf1c0443afdd1d65cf8fa589a2f01c67a11da56bbb06f6ea1de79d5628e94"url: "https://pub.dev"source: hosted- version: "0.4.4"+ version: "0.5.0"device_info_plus:dependency: "direct main"description:@@ -534,18 +563,18 @@ packages:dependency: "direct main"description:name: envied- sha256: bbff9c76120e4dc5e2e36a46690cf0a26feb65e7765633f4e8d916bcd173a450+ sha256: "08a9012e5d93e1a816919a52e37c7b8367e73ebb8d52d1ca7dd6fcd875a2cd2c"url: "https://pub.dev"source: hosted- version: "0.5.4+1"+ version: "1.0.1"envied_generator:dependency: "direct dev"description:name: envied_generator- sha256: "517b70de08d13dcd40e97b4e5347e216a0b1c75c99e704f3c85c0474a392d14a"+ sha256: "9a49ca9f3744069661c4f2c06993647699fae2773bca10b593fbb3228d081027"url: "https://pub.dev"source: hosted- version: "0.5.4+1"+ version: "1.0.1"equatable:dependency: "direct main"description:@@ -566,10 +595,10 @@ packages:dependency: "direct main"description:name: extended_text_field- sha256: fb5c35460a54906a0ada2a88a968cdfc71d71aebbaf9022debb5d67f47748964+ sha256: "3996195c117c6beb734026a7bc0ba80d7e4e84e4edd4728caa544d8209ab4d7d"url: "https://pub.dev"source: hosted- version: "15.0.1"+ version: "16.0.2"extended_text_library:dependency: "direct main"description:@@ -654,18 +683,18 @@ packages:dependency: "direct main"description:name: flex_color_picker- sha256: "12dc855ae8ef5491f529b1fc52c655f06dcdf4114f1f7fdecafa41eec2ec8d79"+ sha256: c083b79f1c57eaeed9f464368be376951230b3cb1876323b784626152a86e480url: "https://pub.dev"source: hosted- version: "3.6.0"+ version: "3.7.0"flex_seed_scheme:dependency: transitivedescription:name: flex_seed_scheme- sha256: "7639d2c86268eff84a909026eb169f008064af0fb3696a651b24b0fa24a40334"+ sha256: d3ba3c5c92d2d79d45e94b4c6c71d01fac3c15017da1545880c53864da5dfeb0url: "https://pub.dev"source: hosted- version: "3.4.1"+ version: "3.5.0"flowy_infra:dependency: "direct main"description:@@ -790,10 +819,10 @@ packages:dependency: "direct dev"description:name: flutter_lints- sha256: "3f41d009ba7172d5ff9be5f6e6e6abb4300e263aab8866d2a0842ed2a70f8f0c"+ sha256: "5398f14efa795ffb7a33e9b6a08798b26a180edac4ad7db3f231e40f82ce11e1"url: "https://pub.dev"source: hosted- version: "4.0.0"+ version: "5.0.0"flutter_localizations:dependency: transitivedescription: flutter@@ -811,10 +840,10 @@ packages:dependency: transitivedescription:name: flutter_plugin_android_lifecycle- sha256: "9ee02950848f61c4129af3d6ec84a1cfc0e47931abc746b03e7a3bc3e8ff6eda"+ sha256: "615a505aef59b151b46bbeef55b36ce2b6ed299d160c51d84281946f0aa0ce0e"url: "https://pub.dev"source: hosted- version: "2.0.22"+ version: "2.0.24"flutter_shaders:dependency: transitivedescription:@@ -840,21 +869,21 @@ packages:source: hostedversion: "0.7.0"flutter_sticky_header:- dependency: transitive+ dependency: "direct overridden"description:name: flutter_sticky_header- sha256: "017f398fbb45a589e01491861ca20eb6570a763fd9f3888165a978e11248c709"+ sha256: "7f76d24d119424ca0c95c146b8627a457e8de8169b0d584f766c2c545db8f8be"url: "https://pub.dev"source: hosted- version: "0.6.5"+ version: "0.7.0"flutter_svg:dependency: transitivedescription:name: flutter_svg- sha256: "54900a1a1243f3c4a5506d853a2b5c2dbc38d5f27e52a52618a8054401431123"+ sha256: c200fd79c918a40c5cd50ea0877fa13f81bdaf6f0a5d3dbcc2a13e3285d6aa1burl: "https://pub.dev"source: hosted- version: "2.0.16"+ version: "2.0.17"flutter_test:dependency: "direct dev"description: flutter@@ -864,10 +893,10 @@ packages:dependency: "direct main"description:name: flutter_tex- sha256: "816074d8a49dd2301704aaf481f9b052b935b8790018a88b69a60d003d5e89e4"+ sha256: ef7896946052e150514a2afe10f6e33e4fe0e7e4fc51195b65da811cb33c59aburl: "https://pub.dev"source: hosted- version: "4.0.9"+ version: "4.0.13"flutter_web_plugins:dependency: transitivedescription: flutter@@ -885,10 +914,10 @@ packages:dependency: "direct dev"description:name: freezed- sha256: a434911f643466d78462625df76fd9eb13e57348ff43fe1f77bbe909522c67a1+ sha256: "44c19278dd9d89292cf46e97dc0c1e52ce03275f40a97c5a348e802a924bf40e"url: "https://pub.dev"source: hosted- version: "2.5.2"+ version: "2.5.7"freezed_annotation:dependency: "direct main"description:@@ -914,10 +943,10 @@ packages:dependency: "direct main"description:name: get_it- sha256: d85128a5dae4ea777324730dc65edd9c9f43155c109d5cc0a69cab74139fbac1+ sha256: f126a3e286b7f5b578bf436d5592968706c4c1de28a228b870ce375d9f743103url: "https://pub.dev"source: hosted- version: "7.7.0"+ version: "8.0.3"glob:dependency: transitivedescription:@@ -930,10 +959,10 @@ packages:dependency: "direct main"description:name: go_router- sha256: "2fd11229f59e23e967b0775df8d5948a519cd7e1e8b6e849729e010587b46539"+ sha256: "7c2d40b59890a929824f30d442e810116caf5088482629c894b9e4478c67472d"url: "https://pub.dev"source: hosted- version: "14.6.2"+ version: "14.6.3"google_fonts:dependency: "direct main"description:@@ -1026,10 +1055,10 @@ packages:dependency: transitivedescription:name: http_parser- sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b"+ sha256: "178d74305e7866013777bab2c3d8726205dc5a4dd935297175b19a23a2e66571"url: "https://pub.dev"source: hosted- version: "4.0.2"+ version: "4.1.2"iconsax_flutter:dependency: transitivedescription:@@ -1058,10 +1087,10 @@ packages:dependency: transitivedescription:name: image_picker_android- sha256: "8c5abf0dcc24fe6e8e0b4a5c0b51a5cf30cefdf6407a3213dae61edc75a70f56"+ sha256: b62d34a506e12bb965e824b6db4fbf709ee4589cf5d3e99b45ab2287b008ee0curl: "https://pub.dev"source: hosted- version: "0.8.12+12"+ version: "0.8.12+20"image_picker_for_web:dependency: transitivedescription:@@ -1074,10 +1103,10 @@ packages:dependency: transitivedescription:name: image_picker_ios- sha256: "4f0568120c6fcc0aaa04511cb9f9f4d29fc3d0139884b1d06be88dcec7641d6b"+ sha256: "05da758e67bc7839e886b3959848aa6b44ff123ab4b28f67891008afe8ef9100"url: "https://pub.dev"source: hosted- version: "0.8.12+1"+ version: "0.8.12+2"image_picker_linux:dependency: transitivedescription:@@ -1098,10 +1127,10 @@ packages:dependency: transitivedescription:name: image_picker_platform_interface- sha256: "9ec26d410ff46f483c5519c29c02ef0e02e13a543f882b152d4bfd2f06802f80"+ sha256: "886d57f0be73c4b140004e78b9f28a8914a09e50c2d816bdd0520051a71236a0"url: "https://pub.dev"source: hosted- version: "2.10.0"+ version: "2.10.1"image_picker_windows:dependency: transitivedescription:@@ -1175,10 +1204,10 @@ packages:dependency: "direct dev"description:name: json_serializable- sha256: ea1432d167339ea9b5bb153f0571d0039607a873d6e04e0117af043f14a1fd4b+ sha256: c2fcb3920cf2b6ae6845954186420fca40bc0a8abcc84903b7801f17d7050d7curl: "https://pub.dev"source: hosted- version: "6.8.0"+ version: "6.9.0"keyboard_height_plugin:dependency: "direct main"description:@@ -1191,18 +1220,18 @@ packages:dependency: "direct main"description:name: leak_tracker- sha256: "7f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341a"+ sha256: "7bb2830ebd849694d1ec25bf1f44582d6ac531a57a365a803a6034ff751d2d06"url: "https://pub.dev"source: hosted- version: "10.0.4"+ version: "10.0.7"leak_tracker_flutter_testing:dependency: transitivedescription:name: leak_tracker_flutter_testing- sha256: "06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8"+ sha256: "9491a714cca3667b60b5c420da8217e6de0d1ba7a5ec322fab01758f6998f379"url: "https://pub.dev"source: hosted- version: "3.0.3"+ version: "3.0.8"leak_tracker_testing:dependency: transitivedescription:@@ -1239,10 +1268,10 @@ packages:dependency: transitivedescription:name: lints- sha256: "976c774dd944a42e83e2467f4cc670daef7eed6295b10b36ae8c85bcbf828235"+ sha256: c35bb79562d980e9a453fc715854e1ed39e24e7d0297a880ef54e17f9874a9d7url: "https://pub.dev"source: hosted- version: "4.0.0"+ version: "5.1.1"loading_indicator:dependency: transitivedescription:@@ -1275,14 +1304,22 @@ packages:url: "https://pub.dev"source: hostedversion: "1.3.0"+ macros:+ dependency: transitive+ description:+ name: macros+ sha256: "1d9e801cd66f7ea3663c45fc708450db1fa57f988142c64289142c9b7ee80656"+ url: "https://pub.dev"+ source: hosted+ version: "0.1.3-main.0"markdown:dependency: "direct main"description:name: markdown- sha256: ef2a1298144e3f985cc736b22e0ccdaf188b5b3970648f2d9dc13efd1d9df051+ sha256: "935e23e1ff3bc02d390bad4d4be001208ee92cc217cb5b5a6c19bc14aaa318c1"url: "https://pub.dev"source: hosted- version: "7.2.2"+ version: "7.3.0"markdown_widget:dependency: "direct main"description:@@ -1303,34 +1340,34 @@ packages:dependency: transitivedescription:name: material_color_utilities- sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a"+ sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdecurl: "https://pub.dev"source: hosted- version: "0.8.0"+ version: "0.11.1"meta:dependency: transitivedescription:name: meta- sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136"+ sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7url: "https://pub.dev"source: hosted- version: "1.12.0"+ version: "1.15.0"mime:dependency: "direct main"description:name: mime- sha256: "801fd0b26f14a4a58ccb09d5892c3fbdeff209594300a542492cf13fba9d247a"+ sha256: "41a20518f0cb1256669420fdba0cd90d21561e560ac240f26ef8322e45bb7ed6"url: "https://pub.dev"source: hosted- version: "1.0.6"+ version: "2.0.0"mockito:dependency: transitivedescription:name: mockito- sha256: "6841eed20a7befac0ce07df8116c8b8233ed1f4486a7647c7fc5a02ae6163917"+ sha256: f99d8d072e249f719a5531735d146d8cf04c580d93920b04de75bef6dfb2daf6url: "https://pub.dev"source: hosted- version: "5.4.4"+ version: "5.4.5"mocktail:dependency: "direct dev"description:@@ -1407,10 +1444,10 @@ packages:dependency: "direct main"description:name: package_info_plus- sha256: "70c421fe9d9cc1a9a7f3b05ae56befd469fe4f8daa3b484823141a55442d858d"+ sha256: "739e0a5c3c4055152520fa321d0645ee98e932718b4c8efeeb51451968fe0790"url: "https://pub.dev"source: hosted- version: "8.1.2"+ version: "8.1.3"package_info_plus_platform_interface:dependency: transitivedescription:@@ -1455,10 +1492,10 @@ packages:dependency: transitivedescription:name: path_provider_android- sha256: "6f01f8e37ec30b07bc424b4deabac37cacb1bc7e2e515ad74486039918a37eb7"+ sha256: "4adf4fd5423ec60a29506c76581bc05854c55e3a0b72d35bb28d661c9686edf2"url: "https://pub.dev"source: hosted- version: "2.2.10"+ version: "2.2.15"path_provider_foundation:dependency: transitivedescription:@@ -1583,10 +1620,10 @@ packages:dependency: transitivedescription:name: platform- sha256: "12220bb4b65720483f8fa9450b4332347737cf8213dd2840d8b2c823e47243ec"+ sha256: "9b71283fc13df574056616011fb138fd3b793ea47cc509c189a6c3fa5f8a1a65"url: "https://pub.dev"source: hosted- version: "3.1.4"+ version: "3.1.5"plugin_platform_interface:dependency: "direct dev"description:@@ -1639,10 +1676,10 @@ packages:dependency: transitivedescription:name: pubspec_parse- sha256: "81876843eb50dc2e1e5b151792c9a985c5ed2536914115ed04e9c8528f6647b0"+ sha256: "0560ba233314abbed0a48a2956f7f022cce7c3e1e73df540277da7544cad4082"url: "https://pub.dev"source: hosted- version: "1.4.0"+ version: "1.5.0"qr:dependency: transitivedescription:@@ -1662,10 +1699,11 @@ packages:reorderable_tabbar:dependency: "direct main"description:- name: reorderable_tabbar- sha256: dd19d7b6f60f0dec4be02ba0a2c860f9acbe5a392cb8b5b8c1417cbfcbfe923f- url: "https://pub.dev"- source: hosted+ path: "."+ ref: "93c4977"+ resolved-ref: "93c4977ffab68906694cdeaea262be6045543c94"+ url: "https://github.com/LucasXu0/reorderable_tabbar"+ source: gitversion: "1.0.6"reorderables:dependency: "direct main"@@ -1703,10 +1741,42 @@ packages:dependency: transitivedescription:name: screen_retriever- sha256: "6ee02c8a1158e6dae7ca430da79436e3b1c9563c8cf02f524af997c201ac2b90"+ sha256: "570dbc8e4f70bac451e0efc9c9bb19fa2d6799a11e6ef04f946d7886d2e23d0c"+ url: "https://pub.dev"+ source: hosted+ version: "0.2.0"+ screen_retriever_linux:+ dependency: transitive+ description:+ name: screen_retriever_linux+ sha256: f7f8120c92ef0784e58491ab664d01efda79a922b025ff286e29aa123ea3dd18+ url: "https://pub.dev"+ source: hosted+ version: "0.2.0"+ screen_retriever_macos:+ dependency: transitive+ description:+ name: screen_retriever_macos+ sha256: "71f956e65c97315dd661d71f828708bd97b6d358e776f1a30d5aa7d22d78a149"url: "https://pub.dev"source: hosted- version: "0.1.9"+ version: "0.2.0"+ screen_retriever_platform_interface:+ dependency: transitive+ description:+ name: screen_retriever_platform_interface+ sha256: ee197f4581ff0d5608587819af40490748e1e39e648d7680ecf95c05197240c0+ url: "https://pub.dev"+ source: hosted+ version: "0.2.0"+ screen_retriever_windows:+ dependency: transitive+ description:+ name: screen_retriever_windows+ sha256: "449ee257f03ca98a57288ee526a301a430a344a161f9202b4fcc38576716fe13"+ url: "https://pub.dev"+ source: hosted+ version: "0.2.0"scroll_to_index:dependency: "direct main"description:@@ -1743,10 +1813,10 @@ packages:dependency: "direct main"description:name: share_plus- sha256: "6327c3f233729374d0abaafd61f6846115b2a481b4feddd8534211dc10659400"+ sha256: fce43200aa03ea87b91ce4c3ac79f0cecd52e2a7a56c7a4185023c271fbfa6daurl: "https://pub.dev"source: hosted- version: "10.1.3"+ version: "10.1.4"share_plus_platform_interface:dependency: transitivedescription:@@ -1759,18 +1829,18 @@ packages:dependency: "direct main"description:name: shared_preferences- sha256: "95f9997ca1fb9799d494d0cb2a780fd7be075818d59f00c43832ed112b158a82"+ sha256: a752ce92ea7540fc35a0d19722816e04d0e72828a4200e83a98cf1a1eb524c9aurl: "https://pub.dev"source: hosted- version: "2.3.3"+ version: "2.3.5"shared_preferences_android:dependency: transitivedescription:name: shared_preferences_android- sha256: "480ba4345773f56acda9abf5f50bd966f581dac5d514e5fc4a18c62976bbba7e"+ sha256: bf808be89fe9dc467475e982c1db6c2faf3d2acf54d526cd5ec37d86c99dbd84url: "https://pub.dev"source: hosted- version: "2.3.2"+ version: "2.4.1"shared_preferences_foundation:dependency: transitivedescription:@@ -1824,10 +1894,10 @@ packages:dependency: transitivedescription:name: shelf- sha256: ad29c505aee705f41a4d8963641f91ac4cee3c8fad5947e033390a7bd8180fa4+ sha256: e7dd780a7ffb623c57850b33f43309312fc863fb6aa3d276a754bb299839ef12url: "https://pub.dev"source: hosted- version: "1.4.1"+ version: "1.4.2"shelf_packages_handler:dependency: transitivedescription:@@ -1848,10 +1918,10 @@ packages:dependency: transitivedescription:name: shelf_web_socket- sha256: "9ca081be41c60190ebcb4766b2486a7d50261db7bd0f5d9615f2d653637a84c1"+ sha256: cc36c297b52866d203dbf9332263c94becc2fe0ceaa9681d07b6ef9807023b67url: "https://pub.dev"source: hosted- version: "1.0.4"+ version: "2.0.1"simple_gesture_detector:dependency: transitivedescription:@@ -1872,7 +1942,7 @@ packages:dependency: transitivedescription: fluttersource: sdk- version: "0.0.99"+ version: "0.0.0"sliver_tools:dependency: transitivedescription:@@ -1933,26 +2003,50 @@ packages:dependency: transitivedescription:name: sqflite- sha256: a43e5a27235518c03ca238e7b4732cf35eabe863a369ceba6cbefa537a66f16d+ sha256: "2d7299468485dca85efeeadf5d38986909c5eb0cd71fd3db2c2f000e6c9454bb"+ url: "https://pub.dev"+ source: hosted+ version: "2.4.1"+ sqflite_android:+ dependency: transitive+ description:+ name: sqflite_android+ sha256: "78f489aab276260cdd26676d2169446c7ecd3484bbd5fead4ca14f3ed4dd9ee3"url: "https://pub.dev"source: hosted- version: "2.3.3+1"+ version: "2.4.0"sqflite_common:dependency: transitivedescription:name: sqflite_common- sha256: "3da423ce7baf868be70e2c0976c28a1bb2f73644268b7ffa7d2e08eab71f16a4"+ sha256: "761b9740ecbd4d3e66b8916d784e581861fd3c3553eda85e167bc49fdb68f709"url: "https://pub.dev"source: hosted- version: "2.5.4"+ version: "2.5.4+6"+ sqflite_darwin:+ dependency: transitive+ description:+ name: sqflite_darwin+ sha256: "22adfd9a2c7d634041e96d6241e6e1c8138ca6817018afc5d443fef91dcefa9c"+ url: "https://pub.dev"+ source: hosted+ version: "2.4.1+1"+ sqflite_platform_interface:+ dependency: transitive+ description:+ name: sqflite_platform_interface+ sha256: "8dd4515c7bdcae0a785b0062859336de775e8c65db81ae33dd5445f35be61920"+ url: "https://pub.dev"+ source: hosted+ version: "2.4.0"stack_trace:dependency: transitivedescription:name: stack_trace- sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"+ sha256: "9f47fd3630d76be3ab26f0ee06d213679aa425996925ff3feffdec504931c377"url: "https://pub.dev"source: hosted- version: "1.11.1"+ version: "1.12.0"stream_channel:dependency: transitivedescription:@@ -1973,10 +2067,10 @@ packages:dependency: transitivedescription:name: string_scanner- sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"+ sha256: "688af5ed3402a4bde5b3a6c15fd768dbf2621a614950b17f04626c431ab3c4c3"url: "https://pub.dev"source: hosted- version: "1.2.0"+ version: "1.3.0"string_validator:dependency: "direct main"description:@@ -2021,10 +2115,10 @@ packages:dependency: "direct main"description:name: synchronized- sha256: "539ef412b170d65ecdafd780f924e5be3f60032a1128df156adad6c5b373d558"+ sha256: "69fe30f3a8b04a0be0c15ae6490fc859a78ef4c43ae2dd5e8a623d45bfcf9225"url: "https://pub.dev"source: hosted- version: "3.1.0+1"+ version: "3.3.0+3"tab_indicator_styler:dependency: transitivedescription:@@ -2053,26 +2147,26 @@ packages:dependency: transitivedescription:name: test- sha256: "7ee446762c2c50b3bd4ea96fe13ffac69919352bd3b4b17bac3f3465edc58073"+ sha256: "713a8789d62f3233c46b4a90b174737b2c04cb6ae4500f2aa8b1be8f03f5e67f"url: "https://pub.dev"source: hosted- version: "1.25.2"+ version: "1.25.8"test_api:dependency: transitivedescription:name: test_api- sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f"+ sha256: "664d3a9a64782fcdeb83ce9c6b39e78fd2971d4e37827b9b06c3aa1edc5e760c"url: "https://pub.dev"source: hosted- version: "0.7.0"+ version: "0.7.3"test_core:dependency: transitivedescription:name: test_core- sha256: "2bc4b4ecddd75309300d8096f781c0e3280ca1ef85beda558d33fcbedc2eead4"+ sha256: "12391302411737c176b0b5d6491f466b0dd56d4763e347b6714efbaa74d7953d"url: "https://pub.dev"source: hosted- version: "0.6.0"+ version: "0.6.5"time:dependency: "direct main"description:@@ -2109,10 +2203,10 @@ packages:dependency: transitivedescription:name: typed_data- sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c+ sha256: f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006url: "https://pub.dev"source: hosted- version: "1.3.2"+ version: "1.4.0"universal_html:dependency: transitivedescription:@@ -2157,10 +2251,10 @@ packages:dependency: transitivedescription:name: url_launcher_android- sha256: f0c73347dfcfa5b3db8bc06e1502668265d39c08f310c29bff4e28eea9699f79+ sha256: "6fc2f56536ee873eeb867ad176ae15f304ccccc357848b351f6f0d8d4a40d193"url: "https://pub.dev"source: hosted- version: "6.3.9"+ version: "6.3.14"url_launcher_ios:dependency: transitivedescription:@@ -2197,18 +2291,18 @@ packages:dependency: transitivedescription:name: url_launcher_web- sha256: "772638d3b34c779ede05ba3d38af34657a05ac55b06279ea6edd409e323dca8e"+ sha256: "3ba963161bd0fe395917ba881d320b9c4f6dd3c4a233da62ab18a5025c85f1e9"url: "https://pub.dev"source: hosted- version: "2.3.3"+ version: "2.4.0"url_launcher_windows:dependency: transitivedescription:name: url_launcher_windows- sha256: "44cf3aabcedde30f2dba119a9dea3b0f2672fbe6fa96e85536251d678216b3c4"+ sha256: "3284b6d2ac454cf34f114e1d3319866fdd1e19cdc329999057e44ffe936cfa77"url: "https://pub.dev"source: hosted- version: "3.1.3"+ version: "3.1.4"url_protocol:dependency: "direct main"description:@@ -2230,10 +2324,10 @@ packages:dependency: transitivedescription:name: value_layout_builder- sha256: "98202ec1807e94ac72725b7f0d15027afde513c55c69ff3f41bcfccb950831bc"+ sha256: c02511ea91ca5c643b514a33a38fa52536f74aa939ec367d02938b5ede6807faurl: "https://pub.dev"source: hosted- version: "0.3.1"+ version: "0.4.0"vector_graphics:dependency: transitivedescription:@@ -2246,10 +2340,10 @@ packages:dependency: transitivedescription:name: vector_graphics_codec- sha256: "2430b973a4ca3c4dbc9999b62b8c719a160100dcbae5c819bae0cacce32c9cdb"+ sha256: "99fd9fbd34d9f9a32efd7b6a6aae14125d8237b10403b422a6a6dfeac2806146"url: "https://pub.dev"source: hosted- version: "1.1.12"+ version: "1.1.13"vector_graphics_compiler:dependency: transitivedescription:@@ -2278,10 +2372,10 @@ packages:dependency: transitivedescription:name: vm_service- sha256: "3923c89304b715fb1eb6423f017651664a03bf5f4b29983627c4da791f74a4ec"+ sha256: f6be3ed8bd01289b34d679c2b62226f63c0e69f9fd2e50a6b3c1c729a961041burl: "https://pub.dev"source: hosted- version: "14.2.1"+ version: "14.3.0"watcher:dependency: transitivedescription:@@ -2298,22 +2392,30 @@ packages:url: "https://pub.dev"source: hostedversion: "1.1.0"+ web_socket:+ dependency: transitive+ description:+ name: web_socket+ sha256: "3c12d96c0c9a4eec095246debcea7b86c0324f22df69893d538fcc6f1b8cce83"+ url: "https://pub.dev"+ source: hosted+ version: "0.1.6"web_socket_channel:dependency: transitivedescription:name: web_socket_channel- sha256: d88238e5eac9a42bb43ca4e721edba3c08c6354d4a53063afaa568516217621b+ sha256: "9f187088ed104edd8662ca07af4b124465893caf063ba29758f97af57e61da8f"url: "https://pub.dev"source: hosted- version: "2.4.0"+ version: "3.0.1"webdriver:dependency: transitivedescription:name: webdriver- sha256: "003d7da9519e1e5f329422b36c4dcdf18d7d2978d1ba099ea4e45ba490ed845e"+ sha256: "3d773670966f02a646319410766d3b5e1037efb7f07cc68f844d5e06cd4d61c8"url: "https://pub.dev"source: hosted- version: "3.0.3"+ version: "3.0.4"webkit_inspection_protocol:dependency: transitivedescription:@@ -2326,18 +2428,18 @@ packages:dependency: transitivedescription:name: webview_flutter- sha256: "6869c8786d179f929144b4a1f86e09ac0eddfe475984951ea6c634774c16b522"+ sha256: "889a0a678e7c793c308c68739996227c9661590605e70b1f6cf6b9a6634f7aec"url: "https://pub.dev"source: hosted- version: "4.8.0"+ version: "4.10.0"webview_flutter_android:dependency: transitivedescription:name: webview_flutter_android- sha256: ed021f27ae621bc97a6019fb601ab16331a3db4bf8afa305e9f6689bdb3edced+ sha256: d1ee28f44894cbabb1d94cc42f9980297f689ff844d067ec50ff88d86e27d63furl: "https://pub.dev"source: hosted- version: "3.16.8"+ version: "4.3.0"webview_flutter_platform_interface:dependency: transitivedescription:@@ -2350,26 +2452,26 @@ packages:dependency: transitivedescription:name: webview_flutter_plus- sha256: "57ec757eada4e23bfb015f5d5f84a45108cb2c29b1e77e23956768cd5e0c8468"+ sha256: f883dfc94d03b1a2a17441c8e8a8e1941558ed3322f2b586cd06486114e18048url: "https://pub.dev"source: hosted- version: "0.4.7"+ version: "0.4.10"webview_flutter_wkwebview:dependency: transitivedescription:name: webview_flutter_wkwebview- sha256: "9c62cc46fa4f2d41e10ab81014c1de470a6c6f26051a2de32111b2ee55287feb"+ sha256: "4adc14ea9a770cc9e2c8f1ac734536bd40e82615bd0fa6b94be10982de656cc7"url: "https://pub.dev"source: hosted- version: "3.14.0"+ version: "3.17.0"win32:dependency: transitivedescription:name: win32- sha256: "68d1e89a91ed61ad9c370f9f8b6effed9ae5e0ede22a270bdfa6daf79fc2290a"+ sha256: "154360849a56b7b67331c21f09a386562d88903f90a1099c5987afc1912e1f29"url: "https://pub.dev"source: hosted- version: "5.5.4"+ version: "5.10.0"win32_registry:dependency: transitivedescription:@@ -2382,10 +2484,10 @@ packages:dependency: "direct main"description:name: window_manager- sha256: "8699323b30da4cdbe2aa2e7c9de567a6abd8a97d9a5c850a3c86dcd0b34bbfbf"+ sha256: "732896e1416297c63c9e3fb95aea72d0355f61390263982a47fd519169dc5059"url: "https://pub.dev"source: hosted- version: "0.3.9"+ version: "0.4.3"xdg_directories:dependency: transitivedescription:@@ -2411,5 +2513,5 @@ packages:source: hostedversion: "3.1.3"sdks:- dart: ">=3.4.0 <4.0.0"- flutter: ">=3.22.0"+ dart: ">=3.6.0 <4.0.0"+ flutter: ">=3.27.4"diff --git a/frontend/appflowy_flutter/pubspec.yaml b/frontend/appflowy_flutter/pubspec.yamlindex ec11e4dca7..5390446e8f 100644--- a/frontend/appflowy_flutter/pubspec.yaml+++ b/frontend/appflowy_flutter/pubspec.yaml@@ -7,12 +7,12 @@ publish_to: "none"version: 0.8.2environment:- flutter: ">=3.22.0"+ flutter: ">=3.27.4"sdk: ">=3.3.0 <4.0.0"dependencies:any_date: ^1.0.4- app_links: ^3.5.0+ app_links: ^6.3.3appflowy_backend:path: packages/appflowy_backendappflowy_board:@@ -28,7 +28,7 @@ dependencies:archive: ^3.4.10auto_size_text_field: ^2.2.3- avatar_stack: ^1.2.0+ avatar_stack: ^3.0.0# BitsDojo Window for Windowsbitsdojo_window: ^0.1.6@@ -44,15 +44,15 @@ dependencies:# Desktop Drop uses Cross File (XFile) data typedefer_pointer: ^0.0.2- desktop_drop: ^0.4.4+ desktop_drop: ^0.5.0device_info_plus:diffutil_dart: ^4.0.1dotted_border: ^2.0.0+3easy_localization: ^3.0.2- envied: ^0.5.2+ envied: ^1.0.1equatable: ^2.0.5expandable: ^5.0.1- extended_text_field: ^15.0.0+ extended_text_field: ^16.0.2extended_text_library: ^12.0.0file: ^7.0.0fixnum: ^1.1.0@@ -68,8 +68,8 @@ dependencies:flutter_animate: ^4.5.0flutter_bloc: ^8.1.3flutter_cache_manager: ^3.3.1- flutter_chat_core: ^0.0.2- flutter_chat_ui: 2.0.0-dev.1+ flutter_chat_core: 0.0.2+ flutter_chat_ui: ^2.0.0-dev.1flutter_emoji_mart:git:url: https://github.com/LucasXu0/emoji_mart.git@@ -81,7 +81,7 @@ dependencies:flutter_tex: ^4.0.9fluttertoast: ^8.2.6freezed_annotation: ^2.2.0- get_it: ^7.6.0+ get_it: ^8.0.3go_router: ^14.2.0google_fonts: ^6.1.0highlight: ^0.7.0@@ -104,7 +104,7 @@ dependencies:local_notifier: ^0.1.5markdown:markdown_widget: ^2.3.2+6- mime: ^1.0.6+ mime: ^2.0.0nanoid: ^1.0.0numerus: ^2.1.2@@ -113,7 +113,7 @@ dependencies:package_info_plus: ^8.0.2path: ^1.8.3path_provider: ^2.0.15- percent_indicator: ^4.2.3+ percent_indicator: 4.2.3permission_handler: ^11.3.1protobuf: ^3.1.0provider: ^6.0.5@@ -142,13 +142,13 @@ dependencies:url_protocol:# Window Manager for MacOS and Linux- window_manager: ^0.3.9+ window_manager: ^0.4.3dev_dependencies:bloc_test: ^9.1.2build_runner: ^2.4.9- envied_generator: ^0.5.2- flutter_lints: ^4.0.0+ envied_generator: ^1.0.1+ flutter_lints: ^5.0.0flutter_test:sdk: flutter@@ -175,7 +175,7 @@ dependency_overrides:appflowy_editor:git:url: https://github.com/AppFlowy-IO/appflowy-editor.git- ref: "e4648cc"+ ref: "55c457f"appflowy_editor_plugins:git:@@ -197,6 +197,12 @@ dependency_overrides:commit: fbab857b1b1d209240a146d32f496379b9f62276path: flutter_cache_manager+ flutter_sticky_header: ^0.7.0++ reorderable_tabbar:+ git:+ url: https://github.com/LucasXu0/reorderable_tabbar+ ref: 93c4977# Don't upgrade file_picker until the issue is fixed# https://github.com/miguelpruivo/flutter_file_picker/issues/1652file_picker: 8.1.4diff --git a/frontend/scripts/docker-buildfiles/Dockerfile b/frontend/scripts/docker-buildfiles/Dockerfileindex 960c1ba625..9e422f80ca 100644--- a/frontend/scripts/docker-buildfiles/Dockerfile+++ b/frontend/scripts/docker-buildfiles/Dockerfile@@ -29,7 +29,7 @@ RUN source ~/.cargo/env && \RUN sudo pacman -S --noconfirm git tar gtk3RUN curl -sSfL \--output flutter.tar.xz \- https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.22.0-stable.tar.xz && \+ https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.27.4-stable.tar.xz && \tar -xf flutter.tar.xz && \rm flutter.tar.xzRUN flutter config --enable-linux-desktopdiff --git a/frontend/scripts/install_dev_env/install_ios.sh b/frontend/scripts/install_dev_env/install_ios.shindex 004fa6fc0b..1c31696f39 100644--- a/frontend/scripts/install_dev_env/install_ios.sh+++ b/frontend/scripts/install_dev_env/install_ios.sh@@ -44,9 +44,9 @@ printMessage "Setting up Flutter"# Get the current Flutter versionFLUTTER_VERSION=$(flutter --version | grep -oE 'Flutter [^ ]+' | grep -oE '[^ ]+$')-# Check if the current version is 3.22.0-if [ "$FLUTTER_VERSION" = "3.22.0" ]; then- echo "Flutter version is already 3.22.0"+# Check if the current version is 3.27.4+if [ "$FLUTTER_VERSION" = "3.27.4" ]; then+ echo "Flutter version is already 3.27.4"else# Get the path to the Flutter SDKFLUTTER_PATH=$(which flutter)@@ -55,12 +55,12 @@ elsecurrent_dir=$(pwd)cd $FLUTTER_PATH- # Use git to checkout version 3.22.0 of Flutter- git checkout 3.22.0+ # Use git to checkout version 3.27.4 of Flutter+ git checkout 3.27.4# Get back to current working directorycd "$current_dir"- echo "Switched to Flutter version 3.22.0"+ echo "Switched to Flutter version 3.27.4"fi# Enable linux desktop@@ -85,12 +85,16 @@ cd frontend || exit 1# Install cargo makeprintMessage "Installing cargo-make."-cargo install --force cargo-make+cargo install --force --locked cargo-make# Install duckscriptprintMessage "Installing duckscript."cargo install --force --locked duckscript_cli+# Install cargo-lipo+printMessage "Installing cargo-lipo."+cargo install --force --locked cargo-lipo+# Check prerequisitesprintMessage "Checking prerequisites."cargo make appflowy-flutter-deps-toolsdiff --git a/frontend/scripts/install_dev_env/install_linux.sh b/frontend/scripts/install_dev_env/install_linux.shindex 1028605da9..57db01a73d 100755--- a/frontend/scripts/install_dev_env/install_linux.sh+++ b/frontend/scripts/install_dev_env/install_linux.sh@@ -38,9 +38,9 @@ fiprintMessage "Setting up Flutter"# Get the current Flutter versionFLUTTER_VERSION=$(flutter --version | grep -oP 'Flutter \K\S+')-# Check if the current version is 3.22.0-if [ "$FLUTTER_VERSION" = "3.22.0" ]; then- echo "Flutter version is already 3.22.0"+# Check if the current version is 3.27.4+if [ "$FLUTTER_VERSION" = "3.27.4" ]; then+ echo "Flutter version is already 3.27.4"else# Get the path to the Flutter SDKFLUTTER_PATH=$(which flutter)@@ -49,12 +49,12 @@ elsecurrent_dir=$(pwd)cd $FLUTTER_PATH- # Use git to checkout version 3.22.0 of Flutter- git checkout 3.22.0+ # Use git to checkout version 3.27.4 of Flutter+ git checkout 3.27.4# Get back to current working directorycd "$current_dir"- echo "Switched to Flutter version 3.22.0"+ echo "Switched to Flutter version 3.27.4"fi# Enable linux desktopdiff --git a/frontend/scripts/install_dev_env/install_macos.sh b/frontend/scripts/install_dev_env/install_macos.shindex 27ac7ad9d1..463071e2af 100755--- a/frontend/scripts/install_dev_env/install_macos.sh+++ b/frontend/scripts/install_dev_env/install_macos.sh@@ -41,9 +41,9 @@ printMessage "Setting up Flutter"# Get the current Flutter versionFLUTTER_VERSION=$(flutter --version | grep -oE 'Flutter [^ ]+' | grep -oE '[^ ]+$')-# Check if the current version is 3.22.0-if [ "$FLUTTER_VERSION" = "3.22.0" ]; then- echo "Flutter version is already 3.22.0"+# Check if the current version is 3.27.4+if [ "$FLUTTER_VERSION" = "3.27.4" ]; then+ echo "Flutter version is already 3.27.4"else# Get the path to the Flutter SDKFLUTTER_PATH=$(which flutter)@@ -52,12 +52,12 @@ elsecurrent_dir=$(pwd)cd $FLUTTER_PATH- # Use git to checkout version 3.22.0 of Flutter- git checkout 3.22.0+ # Use git to checkout version 3.27.4 of Flutter+ git checkout 3.27.4# Get back to current working directorycd "$current_dir"- echo "Switched to Flutter version 3.22.0"+ echo "Switched to Flutter version 3.27.4"fi# Enable linux desktopdiff --git a/frontend/scripts/install_dev_env/install_windows.sh b/frontend/scripts/install_dev_env/install_windows.shindex 9ff586668c..3cceec5bb0 100644--- a/frontend/scripts/install_dev_env/install_windows.sh+++ b/frontend/scripts/install_dev_env/install_windows.sh@@ -48,9 +48,9 @@ fiprintMessage "Setting up Flutter"# Get the current Flutter versionFLUTTER_VERSION=$(flutter --version | grep -oP 'Flutter \K\S+')-# Check if the current version is 3.22.0-if [ "$FLUTTER_VERSION" = "3.22.0" ]; then- echo "Flutter version is already 3.22.0"+# Check if the current version is 3.27.4+if [ "$FLUTTER_VERSION" = "3.27.4" ]; then+ echo "Flutter version is already 3.27.4"else# Get the path to the Flutter SDKFLUTTER_PATH=$(which flutter)@@ -59,12 +59,12 @@ elsecurrent_dir=$(pwd)cd $FLUTTER_PATH- # Use git to checkout version 3.22.0 of Flutter- git checkout 3.22.0+ # Use git to checkout version 3.27.4 of Flutter+ git checkout 3.27.4# Get back to current working directorycd "$current_dir"- echo "Switched to Flutter version 3.22.0"+ echo "Switched to Flutter version 3.27.4"fi# Add pub cache and cargo to PATH