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: update packages's flutter_lint version
appflowyc19b7cf8564c
diff --git a/frontend/app_flowy/lib/startup/tasks/app_widget.dart b/frontend/app_flowy/lib/startup/tasks/app_widget.dartindex fede2e0fdb..dd9e1f0850 100644--- a/frontend/app_flowy/lib/startup/tasks/app_widget.dart+++ b/frontend/app_flowy/lib/startup/tasks/app_widget.dart@@ -23,36 +23,32 @@ class InitAppWidgetTask extends LaunchTask {settingModel: settingModel,child: widget,);- BlocOverrides.runZoned(- () {- runApp(- EasyLocalization(- supportedLocales: const [- // In alphabetical order- Locale('ca', 'ES'),- Locale('de', 'DE'),- Locale('en'),- Locale('es', 'VE'),- Locale('fr', 'FR'),- Locale('fr', 'CA'),- Locale('hu', 'HU'),- Locale('id', 'ID'),- Locale('it', 'IT'),- Locale('ja', 'JP'),- Locale('pl', 'PL'),- Locale('pt', 'BR'),- Locale('ru', 'RU'),- Locale('tr', 'TR'),- Locale('zh', 'CN'),- ],- path: 'assets/translations',- fallbackLocale: const Locale('en'),- saveLocale: false,- child: app,- ),- );- },- blocObserver: ApplicationBlocObserver(),+ Bloc.observer = ApplicationBlocObserver();+ runApp(+ EasyLocalization(+ supportedLocales: const [+ // In alphabetical order+ Locale('ca', 'ES'),+ Locale('de', 'DE'),+ Locale('en'),+ Locale('es', 'VE'),+ Locale('fr', 'FR'),+ Locale('fr', 'CA'),+ Locale('hu', 'HU'),+ Locale('id', 'ID'),+ Locale('it', 'IT'),+ Locale('ja', 'JP'),+ Locale('pl', 'PL'),+ Locale('pt', 'BR'),+ Locale('ru', 'RU'),+ Locale('tr', 'TR'),+ Locale('zh', 'CN'),+ ],+ path: 'assets/translations',+ fallbackLocale: const Locale('en'),+ saveLocale: false,+ child: app,+ ),);return Future(() => {});diff --git a/frontend/app_flowy/packages/appflowy_board/example/pubspec.yaml b/frontend/app_flowy/packages/appflowy_board/example/pubspec.yamlindex 1a90f3b84a..c9bd9ef0f9 100644--- a/frontend/app_flowy/packages/appflowy_board/example/pubspec.yaml+++ b/frontend/app_flowy/packages/appflowy_board/example/pubspec.yaml@@ -46,7 +46,7 @@ dev_dependencies:# activated in the `analysis_options.yaml` file located at the root of your# package. See that file for information about deactivating specific lint# rules and activating additional ones.- flutter_lints: ^2.0.0+ flutter_lints: ^2.0.1# For information on the generic Dart part of this file, see the# following page: https://dart.dev/tools/pub/pubspecdiff --git a/frontend/app_flowy/packages/appflowy_board/pubspec.yaml b/frontend/app_flowy/packages/appflowy_board/pubspec.yamlindex a9adf5007a..14dc501dcc 100644--- a/frontend/app_flowy/packages/appflowy_board/pubspec.yaml+++ b/frontend/app_flowy/packages/appflowy_board/pubspec.yaml@@ -17,7 +17,7 @@ dependencies:dev_dependencies:flutter_test:sdk: flutter- flutter_lints: ^2.0.0+ flutter_lints: ^2.0.1# For information on the generic Dart part of this file, see the# following page: https://dart.dev/tools/pub/pubspecdiff --git a/frontend/app_flowy/packages/appflowy_editor/example/pubspec.yaml b/frontend/app_flowy/packages/appflowy_editor/example/pubspec.yamlindex 5ba51433d6..482cad0875 100644--- a/frontend/app_flowy/packages/appflowy_editor/example/pubspec.yaml+++ b/frontend/app_flowy/packages/appflowy_editor/example/pubspec.yaml@@ -51,7 +51,7 @@ dev_dependencies:# activated in the `analysis_options.yaml` file located at the root of your# package. See that file for information about deactivating specific lint# rules and activating additional ones.- flutter_lints: ^2.0.0+ flutter_lints: ^2.0.1# For information on the generic Dart part of this file, see the# following page: https://dart.dev/tools/pub/pubspecdiff --git a/frontend/app_flowy/packages/appflowy_editor/pubspec.yaml b/frontend/app_flowy/packages/appflowy_editor/pubspec.yamlindex 6816037b9b..295a45ad8c 100644--- a/frontend/app_flowy/packages/appflowy_editor/pubspec.yaml+++ b/frontend/app_flowy/packages/appflowy_editor/pubspec.yaml@@ -21,7 +21,7 @@ dependencies:dev_dependencies:flutter_test:sdk: flutter- flutter_lints: ^2.0.0+ flutter_lints: ^2.0.1network_image_mock: ^2.1.1# For information on the generic Dart part of this file, see thediff --git a/frontend/app_flowy/packages/flowy_infra/lib/notifier.dart b/frontend/app_flowy/packages/flowy_infra/lib/notifier.dartindex ac225775d7..bbb55bf885 100644--- a/frontend/app_flowy/packages/flowy_infra/lib/notifier.dart+++ b/frontend/app_flowy/packages/flowy_infra/lib/notifier.dart@@ -37,13 +37,13 @@ class PublishNotifier<T> extends ChangeNotifier {() {if (_value == null) {return;- }+ } else {}if (listenWhen != null && listenWhen() == false) {return;}- callback(_value!);+ callback(_value as T);},);}diff --git a/frontend/app_flowy/packages/flowy_infra/pubspec.lock b/frontend/app_flowy/packages/flowy_infra/pubspec.lockindex fc492e7344..23fd739d68 100644--- a/frontend/app_flowy/packages/flowy_infra/pubspec.lock+++ b/frontend/app_flowy/packages/flowy_infra/pubspec.lock@@ -68,14 +68,14 @@ packages:name: flutter_lintsurl: "https://pub.dartlang.org"source: hosted- version: "1.0.4"+ version: "2.0.1"flutter_svg:dependency: "direct main"description:name: flutter_svgurl: "https://pub.dartlang.org"source: hosted- version: "0.22.0"+ version: "1.1.4"flutter_test:dependency: "direct dev"description: flutter@@ -87,7 +87,7 @@ packages:name: lintsurl: "https://pub.dartlang.org"source: hosted- version: "1.0.1"+ version: "2.0.0"matcher:dependency: transitivedescription:@@ -122,21 +122,21 @@ packages:name: path_drawingurl: "https://pub.dartlang.org"source: hosted- version: "0.5.1"+ version: "1.0.1"path_parsing:dependency: transitivedescription:name: path_parsingurl: "https://pub.dartlang.org"source: hosted- version: "0.2.1"+ version: "1.0.1"petitparser:dependency: transitivedescription:name: petitparserurl: "https://pub.dartlang.org"source: hosted- version: "4.2.0"+ version: "5.0.0"sky_engine:dependency: transitivedescription: flutter@@ -225,7 +225,7 @@ packages:name: xmlurl: "https://pub.dartlang.org"source: hosted- version: "5.2.0"+ version: "6.1.0"sdks:- dart: ">=2.17.0-0 <3.0.0"- flutter: ">=1.24.0-7.0"+ dart: ">=2.17.0 <3.0.0"+ flutter: ">=2.11.0-0.1.pre"diff --git a/frontend/app_flowy/packages/flowy_infra/pubspec.yaml b/frontend/app_flowy/packages/flowy_infra/pubspec.yamlindex ebd7656af9..63f1b66b4e 100644--- a/frontend/app_flowy/packages/flowy_infra/pubspec.yaml+++ b/frontend/app_flowy/packages/flowy_infra/pubspec.yaml@@ -18,7 +18,7 @@ dependencies:dev_dependencies:flutter_test:sdk: flutter- flutter_lints: ^1.0.0+ flutter_lints: ^2.0.1# For information on the generic Dart part of this file, see the# following page: https://dart.dev/tools/pub/pubspecdiff --git a/frontend/app_flowy/packages/flowy_infra_ui/example/pubspec.lock b/frontend/app_flowy/packages/flowy_infra_ui/example/pubspec.lockindex eaaa5db680..8ddcc99719 100644--- a/frontend/app_flowy/packages/flowy_infra_ui/example/pubspec.lock+++ b/frontend/app_flowy/packages/flowy_infra_ui/example/pubspec.lock@@ -124,14 +124,14 @@ packages:name: flutter_lintsurl: "https://pub.dartlang.org"source: hosted- version: "1.0.4"+ version: "2.0.1"flutter_svg:dependency: transitivedescription:name: flutter_svgurl: "https://pub.dartlang.org"source: hosted- version: "0.22.0"+ version: "1.1.4"flutter_test:dependency: "direct dev"description: flutter@@ -162,7 +162,7 @@ packages:name: lintsurl: "https://pub.dartlang.org"source: hosted- version: "1.0.1"+ version: "2.0.0"loading_indicator:dependency: transitivedescription:@@ -211,21 +211,21 @@ packages:name: path_drawingurl: "https://pub.dartlang.org"source: hosted- version: "0.5.1+1"+ version: "1.0.1"path_parsing:dependency: transitivedescription:name: path_parsingurl: "https://pub.dartlang.org"source: hosted- version: "0.2.1"+ version: "1.0.1"petitparser:dependency: transitivedescription:name: petitparserurl: "https://pub.dartlang.org"source: hosted- version: "4.4.0"+ version: "5.0.0"plugin_platform_interface:dependency: transitivedescription:@@ -335,7 +335,7 @@ packages:name: xmlurl: "https://pub.dartlang.org"source: hosted- version: "5.3.1"+ version: "6.1.0"sdks:- dart: ">=2.17.0-0 <3.0.0"- flutter: ">=2.0.0"+ dart: ">=2.17.0 <3.0.0"+ flutter: ">=2.11.0-0.1.pre"diff --git a/frontend/app_flowy/packages/flowy_infra_ui/example/pubspec.yaml b/frontend/app_flowy/packages/flowy_infra_ui/example/pubspec.yamlindex a747d1dc18..1f7a31fa6a 100644--- a/frontend/app_flowy/packages/flowy_infra_ui/example/pubspec.yaml+++ b/frontend/app_flowy/packages/flowy_infra_ui/example/pubspec.yaml@@ -19,7 +19,7 @@ dev_dependencies:flutter_test:sdk: flutter- flutter_lints: ^1.0.0+ flutter_lints: ^2.0.1flutter:uses-material-design: truediff --git a/frontend/app_flowy/packages/flowy_infra_ui/flowy_infra_ui_platform_interface/pubspec.yaml b/frontend/app_flowy/packages/flowy_infra_ui/flowy_infra_ui_platform_interface/pubspec.yamlindex 0b5f8eb74b..2f375be367 100644--- a/frontend/app_flowy/packages/flowy_infra_ui/flowy_infra_ui_platform_interface/pubspec.yaml+++ b/frontend/app_flowy/packages/flowy_infra_ui/flowy_infra_ui_platform_interface/pubspec.yaml@@ -16,6 +16,6 @@ dependencies:dev_dependencies:flutter_test:sdk: flutter- flutter_lints: ^1.0.0+ flutter_lints: ^2.0.1flutter:\ No newline at end of filediff --git a/frontend/app_flowy/packages/flowy_infra_ui/flowy_infra_ui_web/pubspec.yaml b/frontend/app_flowy/packages/flowy_infra_ui/flowy_infra_ui_web/pubspec.yamlindex 03600f2e5a..224d7bf47f 100644--- a/frontend/app_flowy/packages/flowy_infra_ui/flowy_infra_ui_web/pubspec.yaml+++ b/frontend/app_flowy/packages/flowy_infra_ui/flowy_infra_ui_web/pubspec.yaml@@ -18,7 +18,7 @@ dependencies:dev_dependencies:flutter_test:sdk: flutter- flutter_lints: ^1.0.0+ flutter_lints: ^2.0.1flutter:plugin:diff --git a/frontend/app_flowy/packages/flowy_infra_ui/pubspec.lock b/frontend/app_flowy/packages/flowy_infra_ui/pubspec.lockindex c24e86d22d..143279950d 100644--- a/frontend/app_flowy/packages/flowy_infra_ui/pubspec.lock+++ b/frontend/app_flowy/packages/flowy_infra_ui/pubspec.lock@@ -110,14 +110,14 @@ packages:name: flutter_lintsurl: "https://pub.dartlang.org"source: hosted- version: "1.0.4"+ version: "2.0.1"flutter_svg:dependency: transitivedescription:name: flutter_svgurl: "https://pub.dartlang.org"source: hosted- version: "0.22.0"+ version: "1.1.4"flutter_test:dependency: "direct dev"description: flutter@@ -148,7 +148,7 @@ packages:name: lintsurl: "https://pub.dartlang.org"source: hosted- version: "1.0.1"+ version: "2.0.0"loading_indicator:dependency: "direct main"description:@@ -197,21 +197,21 @@ packages:name: path_drawingurl: "https://pub.dartlang.org"source: hosted- version: "0.5.1+1"+ version: "1.0.1"path_parsing:dependency: transitivedescription:name: path_parsingurl: "https://pub.dartlang.org"source: hosted- version: "0.2.1"+ version: "1.0.1"petitparser:dependency: transitivedescription:name: petitparserurl: "https://pub.dartlang.org"source: hosted- version: "4.4.0"+ version: "5.0.0"plugin_platform_interface:dependency: transitivedescription:@@ -321,7 +321,7 @@ packages:name: xmlurl: "https://pub.dartlang.org"source: hosted- version: "5.3.1"+ version: "6.1.0"sdks:- dart: ">=2.17.0-0 <3.0.0"- flutter: ">=2.0.0"+ dart: ">=2.17.0 <3.0.0"+ flutter: ">=2.11.0-0.1.pre"diff --git a/frontend/app_flowy/packages/flowy_infra_ui/pubspec.yaml b/frontend/app_flowy/packages/flowy_infra_ui/pubspec.yamlindex 36a247411b..a7c01e78ba 100644--- a/frontend/app_flowy/packages/flowy_infra_ui/pubspec.yaml+++ b/frontend/app_flowy/packages/flowy_infra_ui/pubspec.yaml@@ -34,7 +34,7 @@ dependencies:dev_dependencies:flutter_test:sdk: flutter- flutter_lints: ^1.0.0+ flutter_lints: ^2.0.1flutter:plugin:diff --git a/frontend/app_flowy/packages/flowy_sdk/example/pubspec.yaml b/frontend/app_flowy/packages/flowy_sdk/example/pubspec.yamlindex dbee825038..954a50e831 100644--- a/frontend/app_flowy/packages/flowy_sdk/example/pubspec.yaml+++ b/frontend/app_flowy/packages/flowy_sdk/example/pubspec.yaml@@ -29,7 +29,7 @@ dev_dependencies:sdk: flutterintegration_test:sdk: flutter- flutter_lints: ^1.0.0+ flutter_lints: ^2.0.1# For information on the generic Dart part of this file, see the# following page: https://dart.dev/tools/pub/pubspecdiff --git a/frontend/app_flowy/packages/flowy_sdk/pubspec.yaml b/frontend/app_flowy/packages/flowy_sdk/pubspec.yamlindex ced9b97167..186381d848 100644--- a/frontend/app_flowy/packages/flowy_sdk/pubspec.yaml+++ b/frontend/app_flowy/packages/flowy_sdk/pubspec.yaml@@ -23,7 +23,7 @@ dev_dependencies:sdk: flutterbuild_runner:freezed:- flutter_lints: ^1.0.0+ flutter_lints: ^2.0.1# For information on the generic Dart part of this file, see the# following page: https://dart.dev/tools/pub/pubspecdiff --git a/frontend/app_flowy/pubspec.lock b/frontend/app_flowy/pubspec.lockindex 1279bec74b..e2fef15056 100644--- a/frontend/app_flowy/pubspec.lock+++ b/frontend/app_flowy/pubspec.lock@@ -51,12 +51,12 @@ packages:source: hostedversion: "2.8.2"bloc:- dependency: transitive+ dependency: "direct main"description:name: blocurl: "https://pub.dartlang.org"source: hosted- version: "8.0.3"+ version: "8.1.0"bloc_test:dependency: "direct dev"description:@@ -135,7 +135,7 @@ packages:source: hostedversion: "1.2.0"charcode:- dependency: transitive+ dependency: "direct main"description:name: charcodeurl: "https://pub.dartlang.org"@@ -170,7 +170,7 @@ packages:source: hostedversion: "4.1.0"collection:- dependency: transitive+ dependency: "direct main"description:name: collectionurl: "https://pub.dartlang.org"@@ -380,7 +380,7 @@ packages:source: hostedversion: "6.1.2"fixnum:- dependency: transitive+ dependency: "direct main"description:name: fixnumurl: "https://pub.dartlang.org"@@ -948,7 +948,7 @@ packages:source: hostedversion: "4.2.4"protobuf:- dependency: transitive+ dependency: "direct main"description:name: protobufurl: "https://pub.dartlang.org"@@ -1046,7 +1046,7 @@ packages:source: hostedversion: "1.0.0"shared_preferences:- dependency: transitive+ dependency: "direct main"description:name: shared_preferencesurl: "https://pub.dartlang.org"@@ -1268,7 +1268,7 @@ packages:source: hostedversion: "2.0.0+1"textstyle_extensions:- dependency: transitive+ dependency: "direct main"description:name: textstyle_extensionsurl: "https://pub.dartlang.org"@@ -1289,7 +1289,7 @@ packages:source: hostedversion: "1.0.0"tuple:- dependency: transitive+ dependency: "direct main"description:name: tupleurl: "https://pub.dartlang.org"diff --git a/frontend/app_flowy/pubspec.yaml b/frontend/app_flowy/pubspec.yamlindex 18f7d2f2a7..41fa98d7ea 100644--- a/frontend/app_flowy/pubspec.yaml+++ b/frontend/app_flowy/pubspec.yaml@@ -92,6 +92,7 @@ dependencies:dev_dependencies:flutter_lints: ^2.0.1+flutter_test:sdk: flutterbuild_runner: ^2.2.0