diff --git a/flutter_mobx/lib/flutter_mobx.dart b/flutter_mobx/lib/flutter_mobx.dart index 51601bb6..9229a448 100644 --- a/flutter_mobx/lib/flutter_mobx.dart +++ b/flutter_mobx/lib/flutter_mobx.dart @@ -32,6 +32,7 @@ /// ); /// +// ignore: unnecessary_library_name library flutter_mobx; export 'package:flutter_mobx/src/multi_reaction_builder.dart'; diff --git a/flutter_mobx/pubspec.yaml b/flutter_mobx/pubspec.yaml index fbfc69b8..3ba7521f 100644 --- a/flutter_mobx/pubspec.yaml +++ b/flutter_mobx/pubspec.yaml @@ -10,7 +10,7 @@ homepage: https://mobx.netlify.app topics: - reactive-programming - state-management - - ui + - user-interface environment: sdk: ">=3.0.0 <4.0.0" @@ -24,7 +24,7 @@ dependencies: dev_dependencies: build_runner: ^2.4.9 - flutter_lints: ^4.0.0 + flutter_lints: ^5.0.0 flutter_test: sdk: flutter mocktail: ^1.0.3 diff --git a/mobx_codegen/analysis_options.yaml b/mobx_codegen/analysis_options.yaml index 998047e8..e28d8613 100644 --- a/mobx_codegen/analysis_options.yaml +++ b/mobx_codegen/analysis_options.yaml @@ -1,6 +1,8 @@ include: package:lints/recommended.yaml analyzer: + errors: + unused_element: ignore exclude: - test/data/**.dart - test/*.g.dart diff --git a/mobx_codegen/test/generator_usage_test.dart b/mobx_codegen/test/generator_usage_test.dart index 833aafc1..950adeea 100644 --- a/mobx_codegen/test/generator_usage_test.dart +++ b/mobx_codegen/test/generator_usage_test.dart @@ -9,7 +9,6 @@ class TestStore = _TestStore with _$TestStore; bool customEquals(String? oldValue, String? newValue) => oldValue != newValue; abstract class _TestStore with Store { - // ignore: unused_element _TestStore(this.field1, {this.field2}); @observable diff --git a/mobx_examples/lib/todos/todo_widgets.dart b/mobx_examples/lib/todos/todo_widgets.dart index 5ff0b503..4e65b4a0 100644 --- a/mobx_examples/lib/todos/todo_widgets.dart +++ b/mobx_examples/lib/todos/todo_widgets.dart @@ -121,7 +121,7 @@ class ActionBar extends StatelessWidget { }, ), Observer( - builder: (_) => ButtonBar( + builder: (_) => OverflowBar( children: [ ElevatedButton( onPressed: list.canRemoveAllCompleted