Skip to content

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.

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.dart
index 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.yaml
index 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/pubspec
diff --git a/frontend/app_flowy/packages/appflowy_board/pubspec.yaml b/frontend/app_flowy/packages/appflowy_board/pubspec.yaml
index 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/pubspec
diff --git a/frontend/app_flowy/packages/appflowy_editor/example/pubspec.yaml b/frontend/app_flowy/packages/appflowy_editor/example/pubspec.yaml
index 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/pubspec
diff --git a/frontend/app_flowy/packages/appflowy_editor/pubspec.yaml b/frontend/app_flowy/packages/appflowy_editor/pubspec.yaml
index 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.1
network_image_mock: ^2.1.1
# For information on the generic Dart part of this file, see the
diff --git a/frontend/app_flowy/packages/flowy_infra/lib/notifier.dart b/frontend/app_flowy/packages/flowy_infra/lib/notifier.dart
index 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.lock
index 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_lints
url: "https://pub.dartlang.org"
source: hosted
- version: "1.0.4"
+ version: "2.0.1"
flutter_svg:
dependency: "direct main"
description:
name: flutter_svg
url: "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: lints
url: "https://pub.dartlang.org"
source: hosted
- version: "1.0.1"
+ version: "2.0.0"
matcher:
dependency: transitive
description:
@@ -122,21 +122,21 @@ packages:
name: path_drawing
url: "https://pub.dartlang.org"
source: hosted
- version: "0.5.1"
+ version: "1.0.1"
path_parsing:
dependency: transitive
description:
name: path_parsing
url: "https://pub.dartlang.org"
source: hosted
- version: "0.2.1"
+ version: "1.0.1"
petitparser:
dependency: transitive
description:
name: petitparser
url: "https://pub.dartlang.org"
source: hosted
- version: "4.2.0"
+ version: "5.0.0"
sky_engine:
dependency: transitive
description: flutter
@@ -225,7 +225,7 @@ packages:
name: xml
url: "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.yaml
index 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/pubspec
diff --git a/frontend/app_flowy/packages/flowy_infra_ui/example/pubspec.lock b/frontend/app_flowy/packages/flowy_infra_ui/example/pubspec.lock
index 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_lints
url: "https://pub.dartlang.org"
source: hosted
- version: "1.0.4"
+ version: "2.0.1"
flutter_svg:
dependency: transitive
description:
name: flutter_svg
url: "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: lints
url: "https://pub.dartlang.org"
source: hosted
- version: "1.0.1"
+ version: "2.0.0"
loading_indicator:
dependency: transitive
description:
@@ -211,21 +211,21 @@ packages:
name: path_drawing
url: "https://pub.dartlang.org"
source: hosted
- version: "0.5.1+1"
+ version: "1.0.1"
path_parsing:
dependency: transitive
description:
name: path_parsing
url: "https://pub.dartlang.org"
source: hosted
- version: "0.2.1"
+ version: "1.0.1"
petitparser:
dependency: transitive
description:
name: petitparser
url: "https://pub.dartlang.org"
source: hosted
- version: "4.4.0"
+ version: "5.0.0"
plugin_platform_interface:
dependency: transitive
description:
@@ -335,7 +335,7 @@ packages:
name: xml
url: "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.yaml
index 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.1
flutter:
uses-material-design: true
diff --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.yaml
index 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.1
flutter:
\ No newline at end of file
diff --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.yaml
index 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.1
flutter:
plugin:
diff --git a/frontend/app_flowy/packages/flowy_infra_ui/pubspec.lock b/frontend/app_flowy/packages/flowy_infra_ui/pubspec.lock
index 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_lints
url: "https://pub.dartlang.org"
source: hosted
- version: "1.0.4"
+ version: "2.0.1"
flutter_svg:
dependency: transitive
description:
name: flutter_svg
url: "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: lints
url: "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_drawing
url: "https://pub.dartlang.org"
source: hosted
- version: "0.5.1+1"
+ version: "1.0.1"
path_parsing:
dependency: transitive
description:
name: path_parsing
url: "https://pub.dartlang.org"
source: hosted
- version: "0.2.1"
+ version: "1.0.1"
petitparser:
dependency: transitive
description:
name: petitparser
url: "https://pub.dartlang.org"
source: hosted
- version: "4.4.0"
+ version: "5.0.0"
plugin_platform_interface:
dependency: transitive
description:
@@ -321,7 +321,7 @@ packages:
name: xml
url: "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.yaml
index 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.1
flutter:
plugin:
diff --git a/frontend/app_flowy/packages/flowy_sdk/example/pubspec.yaml b/frontend/app_flowy/packages/flowy_sdk/example/pubspec.yaml
index 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: flutter
integration_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/pubspec
diff --git a/frontend/app_flowy/packages/flowy_sdk/pubspec.yaml b/frontend/app_flowy/packages/flowy_sdk/pubspec.yaml
index 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: flutter
build_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/pubspec
diff --git a/frontend/app_flowy/pubspec.lock b/frontend/app_flowy/pubspec.lock
index 1279bec74b..e2fef15056 100644
--- a/frontend/app_flowy/pubspec.lock
+++ b/frontend/app_flowy/pubspec.lock
@@ -51,12 +51,12 @@ packages:
source: hosted
version: "2.8.2"
bloc:
- dependency: transitive
+ dependency: "direct main"
description:
name: bloc
url: "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: hosted
version: "1.2.0"
charcode:
- dependency: transitive
+ dependency: "direct main"
description:
name: charcode
url: "https://pub.dartlang.org"
@@ -170,7 +170,7 @@ packages:
source: hosted
version: "4.1.0"
collection:
- dependency: transitive
+ dependency: "direct main"
description:
name: collection
url: "https://pub.dartlang.org"
@@ -380,7 +380,7 @@ packages:
source: hosted
version: "6.1.2"
fixnum:
- dependency: transitive
+ dependency: "direct main"
description:
name: fixnum
url: "https://pub.dartlang.org"
@@ -948,7 +948,7 @@ packages:
source: hosted
version: "4.2.4"
protobuf:
- dependency: transitive
+ dependency: "direct main"
description:
name: protobuf
url: "https://pub.dartlang.org"
@@ -1046,7 +1046,7 @@ packages:
source: hosted
version: "1.0.0"
shared_preferences:
- dependency: transitive
+ dependency: "direct main"
description:
name: shared_preferences
url: "https://pub.dartlang.org"
@@ -1268,7 +1268,7 @@ packages:
source: hosted
version: "2.0.0+1"
textstyle_extensions:
- dependency: transitive
+ dependency: "direct main"
description:
name: textstyle_extensions
url: "https://pub.dartlang.org"
@@ -1289,7 +1289,7 @@ packages:
source: hosted
version: "1.0.0"
tuple:
- dependency: transitive
+ dependency: "direct main"
description:
name: tuple
url: "https://pub.dartlang.org"
diff --git a/frontend/app_flowy/pubspec.yaml b/frontend/app_flowy/pubspec.yaml
index 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: flutter
build_runner: ^2.2.0