From b5fcb4f5d9b3e79c520e1c4c8fbe4f8ee7d24562 Mon Sep 17 00:00:00 2001 From: Marcos Sevilla <31174242+marcossevilla@users.noreply.github.com> Date: Sat, 14 May 2022 21:05:48 -0600 Subject: [PATCH] chore: upgrade to flutter and very_good_analysis 3.0.0 (#32) * ci: upgrade flutter version to 3.0.0 * deps(cli): upgrade to flutter 3.0.0 and very_good_analysis 3.0.0 * deps(form_flow): upgrade to flutter 3.0.0 and very_good_analysis 3.0.0 * deps(launch_analytics): upgrade to flutter 3.0.0 and very_good_analysis 3.0.0 * deps(form_flow): upgrade missing packages * deps(preference_navigation): upgrade to flutter 3.0.0 and very_good_analysis 3.0.0 * deps(profile_accounts): upgrade to flutter 3.0.0 and very_good_analysis 3.0.0 * deps(form_flow): upgrade flow_builder to 0.0.8 --- .github/workflows/examples.yaml | 2 +- cli/analysis_options.yaml | 2 +- cli/lib/commands/rm/command.dart | 2 +- cli/pubspec.yaml | 4 +- examples/form_flow/analysis_options.yaml | 2 +- examples/form_flow/lib/app/view/app.dart | 12 ++++-- .../lib/profile/view/profile_page.dart | 9 +++-- .../signup/biography/view/biography_page.dart | 8 ++-- .../credentials/view/credentials_form.dart | 6 +-- .../credentials/view/credentials_page.dart | 6 +-- .../lib/signup/pin/view/pin_page.dart | 8 ++-- .../lib/signup/view/signup_page.dart | 4 +- .../formz_inputs/analysis_options.yaml | 2 +- .../formz_inputs/lib/src/biography.dart | 2 +- .../packages/formz_inputs/lib/src/email.dart | 2 +- .../packages/formz_inputs/lib/src/name.dart | 2 +- .../packages/formz_inputs/lib/src/pin.dart | 2 +- .../packages/formz_inputs/pubspec.yaml | 10 ++--- .../packages/profile/analysis_options.yaml | 2 +- .../form_flow/packages/profile/pubspec.yaml | 4 +- examples/form_flow/pubspec.lock | 37 ++++++++----------- examples/form_flow/pubspec.yaml | 8 ++-- .../launch_analytics/analysis_options.yaml | 2 +- examples/launch_analytics/lib/app/app.dart | 7 ++-- .../analysis_options.yaml | 2 +- .../analytics_repository/pubspec.yaml | 4 +- .../local_analytics_api/analysis_options.yaml | 2 +- .../packages/local_analytics_api/pubspec.yaml | 4 +- examples/launch_analytics/pubspec.yaml | 6 +-- .../analysis_options.yaml | 2 +- .../preference_navigation/lib/app/app.dart | 7 ++-- .../lib/home/view/home_page.dart | 8 ++-- .../preferences/view/preferences_form.dart | 2 +- .../preferences/view/preferences_page.dart | 2 +- .../lib/start/view/start_page.dart | 6 +-- .../analysis_options.yaml | 1 - .../analysis_options.yaml | 1 - .../analysis_options.yaml | 1 - .../hive_preferences_repository/.gitignore | 0 .../hive_preferences_repository/README.md | 0 .../analysis_options.yaml | 1 + .../lib/hive_preferences_repository.dart | 0 .../lib/src/hive_preferences_repository.dart | 0 .../hive_preferences_repository/pubspec.yaml | 4 +- .../hive_preferences_repository_test.dart | 0 .../preferences_repository/.gitignore | 0 .../preferences_repository/README.md | 0 .../analysis_options.yaml | 1 + .../lib/preferences_repository.dart | 0 .../lib/src/preferences_failure.dart | 0 .../lib/src/preferences_repository.dart | 0 .../preferences_repository/pubspec.yaml | 4 +- .../shared_preferences_repository/.gitignore | 0 .../shared_preferences_repository/README.md | 0 .../analysis_options.yaml | 1 + .../lib/shared_preferences_repository.dart | 0 .../src/shared_preferences_repository.dart | 0 .../pubspec.yaml | 4 +- .../shared_preferences_repository_test.dart | 0 examples/preference_navigation/pubspec.yaml | 12 +++--- .../profile_accounts/analysis_options.yaml | 2 +- examples/profile_accounts/lib/app/app.dart | 2 +- .../lib/profile/view/profile_card.dart | 2 +- .../lib/profile/view/profile_drawer.dart | 6 +-- .../lib/profile/view/profile_form.dart | 2 +- .../lib/profile/view/profile_page.dart | 6 +-- .../profile_core/analysis_options.yaml | 2 +- .../packages/profile_core/pubspec.yaml | 4 +- examples/profile_accounts/pubspec.yaml | 6 +-- 69 files changed, 124 insertions(+), 128 deletions(-) delete mode 100644 examples/preference_navigation/packages/preferences/hive_preferences_repository/analysis_options.yaml delete mode 100644 examples/preference_navigation/packages/preferences/preferences_repository/analysis_options.yaml delete mode 100644 examples/preference_navigation/packages/preferences/shared_preferences_repository/analysis_options.yaml rename examples/preference_navigation/packages/{preferences => preferences_repository}/hive_preferences_repository/.gitignore (100%) rename examples/preference_navigation/packages/{preferences => preferences_repository}/hive_preferences_repository/README.md (100%) create mode 100644 examples/preference_navigation/packages/preferences_repository/hive_preferences_repository/analysis_options.yaml rename examples/preference_navigation/packages/{preferences => preferences_repository}/hive_preferences_repository/lib/hive_preferences_repository.dart (100%) rename examples/preference_navigation/packages/{preferences => preferences_repository}/hive_preferences_repository/lib/src/hive_preferences_repository.dart (100%) rename examples/preference_navigation/packages/{preferences => preferences_repository}/hive_preferences_repository/pubspec.yaml (84%) rename examples/preference_navigation/packages/{preferences => preferences_repository}/hive_preferences_repository/test/hive_preferences_repository_test.dart (100%) rename examples/preference_navigation/packages/{preferences => preferences_repository}/preferences_repository/.gitignore (100%) rename examples/preference_navigation/packages/{preferences => preferences_repository}/preferences_repository/README.md (100%) create mode 100644 examples/preference_navigation/packages/preferences_repository/preferences_repository/analysis_options.yaml rename examples/preference_navigation/packages/{preferences => preferences_repository}/preferences_repository/lib/preferences_repository.dart (100%) rename examples/preference_navigation/packages/{preferences => preferences_repository}/preferences_repository/lib/src/preferences_failure.dart (100%) rename examples/preference_navigation/packages/{preferences => preferences_repository}/preferences_repository/lib/src/preferences_repository.dart (100%) rename examples/preference_navigation/packages/{preferences => preferences_repository}/preferences_repository/pubspec.yaml (77%) rename examples/preference_navigation/packages/{preferences => preferences_repository}/shared_preferences_repository/.gitignore (100%) rename examples/preference_navigation/packages/{preferences => preferences_repository}/shared_preferences_repository/README.md (100%) create mode 100644 examples/preference_navigation/packages/preferences_repository/shared_preferences_repository/analysis_options.yaml rename examples/preference_navigation/packages/{preferences => preferences_repository}/shared_preferences_repository/lib/shared_preferences_repository.dart (100%) rename examples/preference_navigation/packages/{preferences => preferences_repository}/shared_preferences_repository/lib/src/shared_preferences_repository.dart (100%) rename examples/preference_navigation/packages/{preferences => preferences_repository}/shared_preferences_repository/pubspec.yaml (87%) rename examples/preference_navigation/packages/{preferences => preferences_repository}/shared_preferences_repository/test/shared_preferences_repository_test.dart (100%) diff --git a/.github/workflows/examples.yaml b/.github/workflows/examples.yaml index f4d28e4..b23b330 100644 --- a/.github/workflows/examples.yaml +++ b/.github/workflows/examples.yaml @@ -9,7 +9,7 @@ jobs: - uses: actions/checkout@v3 - uses: subosito/flutter-action@v2 with: - flutter-version: '2.10.5' + flutter-version: '3.0.0' channel: 'stable' - name: Install Tools diff --git a/cli/analysis_options.yaml b/cli/analysis_options.yaml index 2040f37..1570b87 100644 --- a/cli/analysis_options.yaml +++ b/cli/analysis_options.yaml @@ -1,4 +1,4 @@ -include: package:very_good_analysis/analysis_options.2.3.0.yaml +include: package:very_good_analysis/analysis_options.3.0.0.yaml linter: rules: diff --git a/cli/lib/commands/rm/command.dart b/cli/lib/commands/rm/command.dart index 45dde80..4e22de7 100644 --- a/cli/lib/commands/rm/command.dart +++ b/cli/lib/commands/rm/command.dart @@ -20,7 +20,7 @@ Future run(List args) async { case FileSystemEntityType.notFound: print('The element <$elementPath> does not exist'); break; - default: + case FileSystemEntityType.link: throw UnsupportedError('Unsupported element type'); } } catch (e) { diff --git a/cli/pubspec.yaml b/cli/pubspec.yaml index d117b99..e63d77a 100644 --- a/cli/pubspec.yaml +++ b/cli/pubspec.yaml @@ -3,11 +3,11 @@ description: A set of utility commands. version: 0.1.0+1 environment: - sdk: ">=2.16.2 <3.0.0" + sdk: ">=2.17.0 <3.0.0" dependencies: path: ^1.8.0 dev_dependencies: test: ^1.17.12 - very_good_analysis: ^2.4.0 + very_good_analysis: ^3.0.0 diff --git a/examples/form_flow/analysis_options.yaml b/examples/form_flow/analysis_options.yaml index 07aa1da..b4d573c 100644 --- a/examples/form_flow/analysis_options.yaml +++ b/examples/form_flow/analysis_options.yaml @@ -1,4 +1,4 @@ -include: package:very_good_analysis/analysis_options.2.4.0.yaml +include: package:very_good_analysis/analysis_options.3.0.0.yaml linter: rules: public_member_api_docs: false diff --git a/examples/form_flow/lib/app/view/app.dart b/examples/form_flow/lib/app/view/app.dart index 9c24512..34bd38a 100644 --- a/examples/form_flow/lib/app/view/app.dart +++ b/examples/form_flow/lib/app/view/app.dart @@ -13,7 +13,7 @@ import 'package:form_flow/app/app.dart'; import 'package:form_flow/l10n/l10n.dart'; class App extends StatelessWidget { - const App({Key? key}) : super(key: key); + const App({super.key}); @override Widget build(BuildContext context) { @@ -25,15 +25,19 @@ class App extends StatelessWidget { } class AppView extends StatelessWidget { - const AppView({Key? key}) : super(key: key); + const AppView({super.key}); @override Widget build(BuildContext context) { return MaterialApp( debugShowCheckedModeBanner: false, theme: ThemeData( - appBarTheme: const AppBarTheme(color: Color(0xFF13B9FF)), - colorScheme: const ColorScheme.light(secondary: Color(0xFF13B9FF)), + appBarTheme: const AppBarTheme( + color: Color(0xFF13B9FF), + ), + colorScheme: const ColorScheme.light( + secondary: Color(0xFF13B9FF), + ), ), localizationsDelegates: const [ AppLocalizations.delegate, diff --git a/examples/form_flow/lib/profile/view/profile_page.dart b/examples/form_flow/lib/profile/view/profile_page.dart index c038d3f..2f35508 100644 --- a/examples/form_flow/lib/profile/view/profile_page.dart +++ b/examples/form_flow/lib/profile/view/profile_page.dart @@ -5,9 +5,9 @@ import 'package:profile/profile.dart'; class ProfilePage extends StatelessWidget { const ProfilePage({ - Key? key, + super.key, required this.user, - }) : super(key: key); + }); static Page page(User user) { return MaterialPage( @@ -36,7 +36,10 @@ class ProfilePage extends StatelessWidget { mainAxisSize: MainAxisSize.min, mainAxisAlignment: MainAxisAlignment.center, children: [ - Text(user.email), + Text( + user.email, + style: const TextStyle(fontSize: 10), + ), Text(user.biography), ], ), diff --git a/examples/form_flow/lib/signup/biography/view/biography_page.dart b/examples/form_flow/lib/signup/biography/view/biography_page.dart index bbaabe0..d7852c3 100644 --- a/examples/form_flow/lib/signup/biography/view/biography_page.dart +++ b/examples/form_flow/lib/signup/biography/view/biography_page.dart @@ -5,7 +5,7 @@ import 'package:form_flow/signup/signup.dart'; import 'package:formz_inputs/formz_inputs.dart'; class BiographyPage extends StatelessWidget { - const BiographyPage({Key? key}) : super(key: key); + const BiographyPage({super.key}); static Page page() => const MaterialPage(child: BiographyPage()); @@ -19,7 +19,7 @@ class BiographyPage extends StatelessWidget { } class BiographyView extends StatelessWidget { - const BiographyView({Key? key}) : super(key: key); + const BiographyView({super.key}); @override Widget build(BuildContext context) { @@ -36,7 +36,7 @@ class BiographyView extends StatelessWidget { } class _BiographyInput extends StatelessWidget { - const _BiographyInput({Key? key}) : super(key: key); + const _BiographyInput(); @override Widget build(BuildContext context) { @@ -70,7 +70,7 @@ class _BiographyInput extends StatelessWidget { } class _SubmitButton extends StatelessWidget { - const _SubmitButton({Key? key}) : super(key: key); + const _SubmitButton(); @override Widget build(BuildContext context) { diff --git a/examples/form_flow/lib/signup/credentials/view/credentials_form.dart b/examples/form_flow/lib/signup/credentials/view/credentials_form.dart index 741debf..b3f79c5 100644 --- a/examples/form_flow/lib/signup/credentials/view/credentials_form.dart +++ b/examples/form_flow/lib/signup/credentials/view/credentials_form.dart @@ -5,7 +5,7 @@ import 'package:form_flow/signup/signup.dart'; import 'package:formz_inputs/formz_inputs.dart'; class CredentialsForm extends StatelessWidget { - const CredentialsForm({Key? key}) : super(key: key); + const CredentialsForm({super.key}); @override Widget build(BuildContext context) { @@ -20,7 +20,7 @@ class CredentialsForm extends StatelessWidget { } class _EmailInput extends StatelessWidget { - const _EmailInput({Key? key}) : super(key: key); + const _EmailInput(); @override Widget build(BuildContext context) { @@ -45,7 +45,7 @@ class _EmailInput extends StatelessWidget { } class _NameInput extends StatelessWidget { - const _NameInput({Key? key}) : super(key: key); + const _NameInput(); @override Widget build(BuildContext context) { diff --git a/examples/form_flow/lib/signup/credentials/view/credentials_page.dart b/examples/form_flow/lib/signup/credentials/view/credentials_page.dart index baf49e7..24ef8c6 100644 --- a/examples/form_flow/lib/signup/credentials/view/credentials_page.dart +++ b/examples/form_flow/lib/signup/credentials/view/credentials_page.dart @@ -5,7 +5,7 @@ import 'package:form_flow/signup/signup.dart'; import 'package:formz_inputs/formz_inputs.dart'; class CredentialsPage extends StatelessWidget { - const CredentialsPage({Key? key}) : super(key: key); + const CredentialsPage({super.key}); static Page page() => const MaterialPage(child: CredentialsPage()); @@ -19,7 +19,7 @@ class CredentialsPage extends StatelessWidget { } class CredentialsView extends StatelessWidget { - const CredentialsView({Key? key}) : super(key: key); + const CredentialsView({super.key}); @override Widget build(BuildContext context) { @@ -36,7 +36,7 @@ class CredentialsView extends StatelessWidget { } class _SubmitButton extends StatelessWidget { - const _SubmitButton({Key? key}) : super(key: key); + const _SubmitButton(); @override Widget build(BuildContext context) { diff --git a/examples/form_flow/lib/signup/pin/view/pin_page.dart b/examples/form_flow/lib/signup/pin/view/pin_page.dart index d2d20fe..b85a86f 100644 --- a/examples/form_flow/lib/signup/pin/view/pin_page.dart +++ b/examples/form_flow/lib/signup/pin/view/pin_page.dart @@ -6,7 +6,7 @@ import 'package:form_flow/signup/signup.dart'; import 'package:formz_inputs/formz_inputs.dart'; class PinPage extends StatelessWidget { - const PinPage({Key? key}) : super(key: key); + const PinPage({super.key}); static Page page() => const MaterialPage(child: PinPage()); @@ -20,7 +20,7 @@ class PinPage extends StatelessWidget { } class PinView extends StatelessWidget { - const PinView({Key? key}) : super(key: key); + const PinView({super.key}); @override Widget build(BuildContext context) { @@ -37,7 +37,7 @@ class PinView extends StatelessWidget { } class _PinInput extends StatelessWidget { - const _PinInput({Key? key}) : super(key: key); + const _PinInput(); @override Widget build(BuildContext context) { @@ -64,7 +64,7 @@ class _PinInput extends StatelessWidget { } class _SubmitButton extends StatelessWidget { - const _SubmitButton({Key? key}) : super(key: key); + const _SubmitButton(); @override Widget build(BuildContext context) { diff --git a/examples/form_flow/lib/signup/view/signup_page.dart b/examples/form_flow/lib/signup/view/signup_page.dart index 91074ad..e4c04fc 100644 --- a/examples/form_flow/lib/signup/view/signup_page.dart +++ b/examples/form_flow/lib/signup/view/signup_page.dart @@ -5,7 +5,7 @@ import 'package:form_flow/app/app.dart'; import 'package:form_flow/signup/signup.dart'; class SignUpPage extends StatelessWidget { - const SignUpPage({Key? key}) : super(key: key); + const SignUpPage({super.key}); static Page page() => const MaterialPage(child: SignUpPage()); @@ -19,7 +19,7 @@ class SignUpPage extends StatelessWidget { } class SignUpView extends StatelessWidget { - const SignUpView({Key? key}) : super(key: key); + const SignUpView({super.key}); @override Widget build(BuildContext context) { diff --git a/examples/form_flow/packages/formz_inputs/analysis_options.yaml b/examples/form_flow/packages/formz_inputs/analysis_options.yaml index 3742fc3..c30d549 100644 --- a/examples/form_flow/packages/formz_inputs/analysis_options.yaml +++ b/examples/form_flow/packages/formz_inputs/analysis_options.yaml @@ -1 +1 @@ -include: package:very_good_analysis/analysis_options.2.4.0.yaml \ No newline at end of file +include: package:very_good_analysis/analysis_options.3.0.0.yaml \ No newline at end of file diff --git a/examples/form_flow/packages/formz_inputs/lib/src/biography.dart b/examples/form_flow/packages/formz_inputs/lib/src/biography.dart index a101787..980a503 100644 --- a/examples/form_flow/packages/formz_inputs/lib/src/biography.dart +++ b/examples/form_flow/packages/formz_inputs/lib/src/biography.dart @@ -17,7 +17,7 @@ class BiographyFormInput extends FormzInput { const BiographyFormInput.pure() : super.pure(''); /// {@macro Biography_form_input} - const BiographyFormInput.dirty([String value = '']) : super.dirty(value); + const BiographyFormInput.dirty([super.value = '']) : super.dirty(); @override BiographyValidationError? validator(String value) { diff --git a/examples/form_flow/packages/formz_inputs/lib/src/email.dart b/examples/form_flow/packages/formz_inputs/lib/src/email.dart index e0eab1c..1c8666e 100644 --- a/examples/form_flow/packages/formz_inputs/lib/src/email.dart +++ b/examples/form_flow/packages/formz_inputs/lib/src/email.dart @@ -14,7 +14,7 @@ class EmailFormInput extends FormzInput { const EmailFormInput.pure() : super.pure(''); /// {@macro email_form_input} - const EmailFormInput.dirty([String value = '']) : super.dirty(value); + const EmailFormInput.dirty([super.value = '']) : super.dirty(); static final RegExp _emailRegExp = RegExp( r'^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$', diff --git a/examples/form_flow/packages/formz_inputs/lib/src/name.dart b/examples/form_flow/packages/formz_inputs/lib/src/name.dart index 503f2c8..5617fd3 100644 --- a/examples/form_flow/packages/formz_inputs/lib/src/name.dart +++ b/examples/form_flow/packages/formz_inputs/lib/src/name.dart @@ -14,7 +14,7 @@ class NameFormInput extends FormzInput { const NameFormInput.pure() : super.pure(''); /// {@macro name_form_input} - const NameFormInput.dirty([String value = '']) : super.dirty(value); + const NameFormInput.dirty([super.value = '']) : super.dirty(); @override NameValidationError? validator(String value) { diff --git a/examples/form_flow/packages/formz_inputs/lib/src/pin.dart b/examples/form_flow/packages/formz_inputs/lib/src/pin.dart index b3988ad..b010744 100644 --- a/examples/form_flow/packages/formz_inputs/lib/src/pin.dart +++ b/examples/form_flow/packages/formz_inputs/lib/src/pin.dart @@ -14,7 +14,7 @@ class PinFormInput extends FormzInput { const PinFormInput.pure() : super.pure(''); /// {@macro pin_form_input} - const PinFormInput.dirty([String value = '']) : super.dirty(value); + const PinFormInput.dirty([super.value = '']) : super.dirty(); /// {@template max_length} /// Maximum length the pin requires to be valid. diff --git a/examples/form_flow/packages/formz_inputs/pubspec.yaml b/examples/form_flow/packages/formz_inputs/pubspec.yaml index fa2deb9..e8d25c0 100644 --- a/examples/form_flow/packages/formz_inputs/pubspec.yaml +++ b/examples/form_flow/packages/formz_inputs/pubspec.yaml @@ -4,11 +4,11 @@ version: 1.0.0+1 publish_to: none environment: - sdk: ">=2.16.2 <3.0.0" - -dependencies: - formz: ^0.4.0 + sdk: ">=2.17.0 <3.0.0" + +dependencies: + formz: ^0.4.1 dev_dependencies: test: ^1.17.0 - very_good_analysis: ^2.4.0 + very_good_analysis: ^3.0.0 diff --git a/examples/form_flow/packages/profile/analysis_options.yaml b/examples/form_flow/packages/profile/analysis_options.yaml index 3742fc3..c30d549 100644 --- a/examples/form_flow/packages/profile/analysis_options.yaml +++ b/examples/form_flow/packages/profile/analysis_options.yaml @@ -1 +1 @@ -include: package:very_good_analysis/analysis_options.2.4.0.yaml \ No newline at end of file +include: package:very_good_analysis/analysis_options.3.0.0.yaml \ No newline at end of file diff --git a/examples/form_flow/packages/profile/pubspec.yaml b/examples/form_flow/packages/profile/pubspec.yaml index 7f7b471..9bfdb2c 100644 --- a/examples/form_flow/packages/profile/pubspec.yaml +++ b/examples/form_flow/packages/profile/pubspec.yaml @@ -4,11 +4,11 @@ version: 1.0.0+1 publish_to: none environment: - sdk: ">=2.16.2 <3.0.0" + sdk: ">=2.17.0 <3.0.0" dependencies: equatable: ^2.0.3 dev_dependencies: test: ^1.17.12 - very_good_analysis: ^2.4.0 + very_good_analysis: ^3.0.0 diff --git a/examples/form_flow/pubspec.lock b/examples/form_flow/pubspec.lock index 835b4d6..26cb077 100644 --- a/examples/form_flow/pubspec.lock +++ b/examples/form_flow/pubspec.lock @@ -7,14 +7,14 @@ packages: name: _fe_analyzer_shared url: "https://pub.dartlang.org" source: hosted - version: "31.0.0" + version: "39.0.0" analyzer: dependency: transitive description: name: analyzer url: "https://pub.dartlang.org" source: hosted - version: "2.8.0" + version: "4.0.0" args: dependency: transitive description: @@ -64,13 +64,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.3.1" - cli_util: - dependency: transitive - description: - name: cli_util - url: "https://pub.dartlang.org" - source: hosted - version: "0.3.5" clock: dependency: transitive description: @@ -84,7 +77,7 @@ packages: name: collection url: "https://pub.dartlang.org" source: hosted - version: "1.15.0" + version: "1.16.0" convert: dependency: transitive description: @@ -126,7 +119,7 @@ packages: name: fake_async url: "https://pub.dartlang.org" source: hosted - version: "1.2.0" + version: "1.3.0" file: dependency: transitive description: @@ -140,7 +133,7 @@ packages: name: flow_builder url: "https://pub.dartlang.org" source: hosted - version: "0.0.6" + version: "0.0.8" flutter: dependency: "direct main" description: flutter @@ -246,7 +239,7 @@ packages: name: material_color_utilities url: "https://pub.dartlang.org" source: hosted - version: "0.1.3" + version: "0.1.4" meta: dependency: transitive description: @@ -295,7 +288,7 @@ packages: name: path url: "https://pub.dartlang.org" source: hosted - version: "1.8.0" + version: "1.8.1" pool: dependency: transitive description: @@ -377,7 +370,7 @@ packages: name: source_span url: "https://pub.dartlang.org" source: hosted - version: "1.8.1" + version: "1.8.2" stack_trace: dependency: transitive description: @@ -412,21 +405,21 @@ packages: name: test url: "https://pub.dartlang.org" source: hosted - version: "1.19.5" + version: "1.21.1" test_api: dependency: transitive description: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.4.8" + version: "0.4.9" test_core: dependency: transitive description: name: test_core url: "https://pub.dartlang.org" source: hosted - version: "0.4.9" + version: "0.4.13" typed_data: dependency: transitive description: @@ -440,14 +433,14 @@ packages: name: vector_math url: "https://pub.dartlang.org" source: hosted - version: "2.1.1" + version: "2.1.2" very_good_analysis: dependency: "direct dev" description: name: very_good_analysis url: "https://pub.dartlang.org" source: hosted - version: "2.4.0" + version: "3.0.0" vm_service: dependency: transitive description: @@ -484,5 +477,5 @@ packages: source: hosted version: "3.1.0" sdks: - dart: ">=2.16.2 <3.0.0" - flutter: ">=2.10.5" + dart: ">=2.17.0 <3.0.0" + flutter: ">=3.0.0" diff --git a/examples/form_flow/pubspec.yaml b/examples/form_flow/pubspec.yaml index e6583c1..de0a460 100644 --- a/examples/form_flow/pubspec.yaml +++ b/examples/form_flow/pubspec.yaml @@ -4,13 +4,13 @@ version: 1.0.0+1 publish_to: none environment: - sdk: ">=2.16.2 <3.0.0" - flutter: "2.10.5" + sdk: ">=2.17.0 <3.0.0" + flutter: "3.0.0" dependencies: bloc: ^8.0.3 equatable: ^2.0.3 - flow_builder: ^0.0.6 + flow_builder: ^0.0.8 flutter: sdk: flutter flutter_bloc: ^8.0.1 @@ -27,7 +27,7 @@ dev_dependencies: flutter_test: sdk: flutter mocktail: ^0.3.0 - very_good_analysis: ^2.4.0 + very_good_analysis: ^3.0.0 flutter: uses-material-design: true diff --git a/examples/launch_analytics/analysis_options.yaml b/examples/launch_analytics/analysis_options.yaml index e44f8ee..2f0ea72 100644 --- a/examples/launch_analytics/analysis_options.yaml +++ b/examples/launch_analytics/analysis_options.yaml @@ -1,4 +1,4 @@ -include: package:very_good_analysis/analysis_options.2.4.0.yaml +include: package:very_good_analysis/analysis_options.3.0.0.yaml linter: rules: public_member_api_docs: false \ No newline at end of file diff --git a/examples/launch_analytics/lib/app/app.dart b/examples/launch_analytics/lib/app/app.dart index 3880483..077c838 100644 --- a/examples/launch_analytics/lib/app/app.dart +++ b/examples/launch_analytics/lib/app/app.dart @@ -5,10 +5,9 @@ import 'package:launch_analytics/app/bloc/app_bloc.dart'; class App extends StatelessWidget { const App({ - Key? key, + super.key, required AnalyticsRepository localAnalyticsRepository, - }) : _localAnalyticsRepository = localAnalyticsRepository, - super(key: key); + }) : _localAnalyticsRepository = localAnalyticsRepository; final AnalyticsRepository _localAnalyticsRepository; @@ -29,7 +28,7 @@ class App extends StatelessWidget { } class AppView extends StatelessWidget { - const AppView({Key? key}) : super(key: key); + const AppView({super.key}); @override Widget build(BuildContext context) { diff --git a/examples/launch_analytics/packages/analytics_repository/analysis_options.yaml b/examples/launch_analytics/packages/analytics_repository/analysis_options.yaml index e44f8ee..2f0ea72 100644 --- a/examples/launch_analytics/packages/analytics_repository/analysis_options.yaml +++ b/examples/launch_analytics/packages/analytics_repository/analysis_options.yaml @@ -1,4 +1,4 @@ -include: package:very_good_analysis/analysis_options.2.4.0.yaml +include: package:very_good_analysis/analysis_options.3.0.0.yaml linter: rules: public_member_api_docs: false \ No newline at end of file diff --git a/examples/launch_analytics/packages/analytics_repository/pubspec.yaml b/examples/launch_analytics/packages/analytics_repository/pubspec.yaml index 7e1a634..ad47b71 100644 --- a/examples/launch_analytics/packages/analytics_repository/pubspec.yaml +++ b/examples/launch_analytics/packages/analytics_repository/pubspec.yaml @@ -4,7 +4,7 @@ version: 1.0.0+1 publish_to: none environment: - sdk: ">=2.16.2 <3.0.0" + sdk: ">=2.17.0 <3.0.0" dependencies: local_analytics_api: @@ -13,4 +13,4 @@ dependencies: dev_dependencies: mocktail: ^0.3.0 test: ^1.17.0 - very_good_analysis: ^2.4.0 + very_good_analysis: ^3.0.0 diff --git a/examples/launch_analytics/packages/local_analytics_api/analysis_options.yaml b/examples/launch_analytics/packages/local_analytics_api/analysis_options.yaml index a30c013..2e4c447 100644 --- a/examples/launch_analytics/packages/local_analytics_api/analysis_options.yaml +++ b/examples/launch_analytics/packages/local_analytics_api/analysis_options.yaml @@ -1,4 +1,4 @@ -include: package:very_good_analysis/analysis_options.2.4.0.yaml +include: package:very_good_analysis/analysis_options.3.0.0.yaml linter: rules: diff --git a/examples/launch_analytics/packages/local_analytics_api/pubspec.yaml b/examples/launch_analytics/packages/local_analytics_api/pubspec.yaml index a898547..bb33354 100644 --- a/examples/launch_analytics/packages/local_analytics_api/pubspec.yaml +++ b/examples/launch_analytics/packages/local_analytics_api/pubspec.yaml @@ -4,7 +4,7 @@ version: 1.0.0+1 publish_to: none environment: - sdk: ">=2.16.2 <3.0.0" + sdk: ">=2.17.0 <3.0.0" dependencies: hive: ^2.0.4 @@ -12,4 +12,4 @@ dependencies: dev_dependencies: mocktail: ^0.3.0 test: ^1.17.0 - very_good_analysis: ^2.4.0 + very_good_analysis: ^3.0.0 diff --git a/examples/launch_analytics/pubspec.yaml b/examples/launch_analytics/pubspec.yaml index 5f130e1..22ecde0 100644 --- a/examples/launch_analytics/pubspec.yaml +++ b/examples/launch_analytics/pubspec.yaml @@ -6,8 +6,8 @@ publish_to: "none" version: 1.0.0+1 environment: - sdk: ">=2.16.2 <3.0.0" - flutter: "2.10.5" + sdk: ">=2.17.0 <3.0.0" + flutter: "3.0.0" dependencies: analytics_repository: @@ -31,7 +31,7 @@ dev_dependencies: flutter_test: sdk: flutter mocktail: ^0.3.0 - very_good_analysis: ^2.4.0 + very_good_analysis: ^3.0.0 flutter: uses-material-design: true diff --git a/examples/preference_navigation/analysis_options.yaml b/examples/preference_navigation/analysis_options.yaml index 3742fc3..c30d549 100644 --- a/examples/preference_navigation/analysis_options.yaml +++ b/examples/preference_navigation/analysis_options.yaml @@ -1 +1 @@ -include: package:very_good_analysis/analysis_options.2.4.0.yaml \ No newline at end of file +include: package:very_good_analysis/analysis_options.3.0.0.yaml \ No newline at end of file diff --git a/examples/preference_navigation/lib/app/app.dart b/examples/preference_navigation/lib/app/app.dart index 8065413..f934b05 100644 --- a/examples/preference_navigation/lib/app/app.dart +++ b/examples/preference_navigation/lib/app/app.dart @@ -10,10 +10,9 @@ import 'package:shared_preferences_repository/shared_preferences_repository.dart class App extends StatelessWidget { /// {@macro app} const App({ - Key? key, + super.key, required SharedPreferencesRepository preferencesRepository, - }) : _preferencesRepository = preferencesRepository, - super(key: key); + }) : _preferencesRepository = preferencesRepository; final SharedPreferencesRepository _preferencesRepository; @@ -38,7 +37,7 @@ class App extends StatelessWidget { /// {@endtemplate} class AppView extends StatelessWidget { /// {@macro app_view} - const AppView({Key? key}) : super(key: key); + const AppView({super.key}); @override Widget build(BuildContext context) { diff --git a/examples/preference_navigation/lib/home/view/home_page.dart b/examples/preference_navigation/lib/home/view/home_page.dart index d74e2e9..3032e6d 100644 --- a/examples/preference_navigation/lib/home/view/home_page.dart +++ b/examples/preference_navigation/lib/home/view/home_page.dart @@ -8,7 +8,7 @@ import 'package:preference_navigation/start/start.dart'; /// {@endtemplate} class HomePage extends StatelessWidget { /// {@macro home_page} - const HomePage({Key? key}) : super(key: key); + const HomePage({super.key}); /// Returns a [MaterialPageRoute] to navigate to `this` widget. static Route go() { @@ -24,7 +24,7 @@ class HomePage extends StatelessWidget { /// {@endtemplate} class HomeView extends StatelessWidget { /// {@macro home_view} - const HomeView({Key? key}) : super(key: key); + const HomeView({super.key}); @override Widget build(BuildContext context) { @@ -65,9 +65,9 @@ class HomeView extends StatelessWidget { class PreferencesList extends StatelessWidget { /// {@macro preferences_list} const PreferencesList({ - Key? key, + super.key, required this.preferences, - }) : super(key: key); + }); /// Current preferences stored on device. final Map preferences; diff --git a/examples/preference_navigation/lib/preferences/view/preferences_form.dart b/examples/preference_navigation/lib/preferences/view/preferences_form.dart index 35a0d2e..6854972 100644 --- a/examples/preference_navigation/lib/preferences/view/preferences_form.dart +++ b/examples/preference_navigation/lib/preferences/view/preferences_form.dart @@ -7,7 +7,7 @@ import 'package:preference_navigation/preferences/preferences.dart'; /// {@endtemplate} class PreferencesForm extends StatefulWidget { /// {@macro preferences_form} - const PreferencesForm({Key? key}) : super(key: key); + const PreferencesForm({super.key}); @override State createState() => _PreferencesFormState(); diff --git a/examples/preference_navigation/lib/preferences/view/preferences_page.dart b/examples/preference_navigation/lib/preferences/view/preferences_page.dart index 505328b..c931050 100644 --- a/examples/preference_navigation/lib/preferences/view/preferences_page.dart +++ b/examples/preference_navigation/lib/preferences/view/preferences_page.dart @@ -9,7 +9,7 @@ import 'package:preference_navigation/start/start.dart'; /// {@endtemplate} class PreferencesPage extends StatelessWidget { /// {@macro preferences_page} - const PreferencesPage({Key? key}) : super(key: key); + const PreferencesPage({super.key}); /// Returns a [MaterialPageRoute] to navigate to `this` widget. static Route go() { diff --git a/examples/preference_navigation/lib/start/view/start_page.dart b/examples/preference_navigation/lib/start/view/start_page.dart index 5e88045..5b88ad0 100644 --- a/examples/preference_navigation/lib/start/view/start_page.dart +++ b/examples/preference_navigation/lib/start/view/start_page.dart @@ -8,7 +8,7 @@ import 'package:preference_navigation/preferences/preferences.dart'; /// {@endtemplate} class StartPage extends StatelessWidget { /// {@macro start_page} - const StartPage({Key? key}) : super(key: key); + const StartPage({super.key}); /// Returns a [MaterialPageRoute] to navigate to `this` widget. static Route go() { @@ -26,7 +26,7 @@ class StartPage extends StatelessWidget { /// {@endtemplate} class StartView extends StatelessWidget { /// {@macro start_view} - const StartView({Key? key}) : super(key: key); + const StartView({super.key}); @override Widget build(BuildContext context) { @@ -64,7 +64,7 @@ class StartView extends StatelessWidget { /// {@endtemplate} class NoPreferences extends StatelessWidget { /// {@macro no_preferences} - const NoPreferences({Key? key}) : super(key: key); + const NoPreferences({super.key}); @override Widget build(BuildContext context) { diff --git a/examples/preference_navigation/packages/preferences/hive_preferences_repository/analysis_options.yaml b/examples/preference_navigation/packages/preferences/hive_preferences_repository/analysis_options.yaml deleted file mode 100644 index 3742fc3..0000000 --- a/examples/preference_navigation/packages/preferences/hive_preferences_repository/analysis_options.yaml +++ /dev/null @@ -1 +0,0 @@ -include: package:very_good_analysis/analysis_options.2.4.0.yaml \ No newline at end of file diff --git a/examples/preference_navigation/packages/preferences/preferences_repository/analysis_options.yaml b/examples/preference_navigation/packages/preferences/preferences_repository/analysis_options.yaml deleted file mode 100644 index 3742fc3..0000000 --- a/examples/preference_navigation/packages/preferences/preferences_repository/analysis_options.yaml +++ /dev/null @@ -1 +0,0 @@ -include: package:very_good_analysis/analysis_options.2.4.0.yaml \ No newline at end of file diff --git a/examples/preference_navigation/packages/preferences/shared_preferences_repository/analysis_options.yaml b/examples/preference_navigation/packages/preferences/shared_preferences_repository/analysis_options.yaml deleted file mode 100644 index 3742fc3..0000000 --- a/examples/preference_navigation/packages/preferences/shared_preferences_repository/analysis_options.yaml +++ /dev/null @@ -1 +0,0 @@ -include: package:very_good_analysis/analysis_options.2.4.0.yaml \ No newline at end of file diff --git a/examples/preference_navigation/packages/preferences/hive_preferences_repository/.gitignore b/examples/preference_navigation/packages/preferences_repository/hive_preferences_repository/.gitignore similarity index 100% rename from examples/preference_navigation/packages/preferences/hive_preferences_repository/.gitignore rename to examples/preference_navigation/packages/preferences_repository/hive_preferences_repository/.gitignore diff --git a/examples/preference_navigation/packages/preferences/hive_preferences_repository/README.md b/examples/preference_navigation/packages/preferences_repository/hive_preferences_repository/README.md similarity index 100% rename from examples/preference_navigation/packages/preferences/hive_preferences_repository/README.md rename to examples/preference_navigation/packages/preferences_repository/hive_preferences_repository/README.md diff --git a/examples/preference_navigation/packages/preferences_repository/hive_preferences_repository/analysis_options.yaml b/examples/preference_navigation/packages/preferences_repository/hive_preferences_repository/analysis_options.yaml new file mode 100644 index 0000000..c30d549 --- /dev/null +++ b/examples/preference_navigation/packages/preferences_repository/hive_preferences_repository/analysis_options.yaml @@ -0,0 +1 @@ +include: package:very_good_analysis/analysis_options.3.0.0.yaml \ No newline at end of file diff --git a/examples/preference_navigation/packages/preferences/hive_preferences_repository/lib/hive_preferences_repository.dart b/examples/preference_navigation/packages/preferences_repository/hive_preferences_repository/lib/hive_preferences_repository.dart similarity index 100% rename from examples/preference_navigation/packages/preferences/hive_preferences_repository/lib/hive_preferences_repository.dart rename to examples/preference_navigation/packages/preferences_repository/hive_preferences_repository/lib/hive_preferences_repository.dart diff --git a/examples/preference_navigation/packages/preferences/hive_preferences_repository/lib/src/hive_preferences_repository.dart b/examples/preference_navigation/packages/preferences_repository/hive_preferences_repository/lib/src/hive_preferences_repository.dart similarity index 100% rename from examples/preference_navigation/packages/preferences/hive_preferences_repository/lib/src/hive_preferences_repository.dart rename to examples/preference_navigation/packages/preferences_repository/hive_preferences_repository/lib/src/hive_preferences_repository.dart diff --git a/examples/preference_navigation/packages/preferences/hive_preferences_repository/pubspec.yaml b/examples/preference_navigation/packages/preferences_repository/hive_preferences_repository/pubspec.yaml similarity index 84% rename from examples/preference_navigation/packages/preferences/hive_preferences_repository/pubspec.yaml rename to examples/preference_navigation/packages/preferences_repository/hive_preferences_repository/pubspec.yaml index a2ef5dd..5f11849 100644 --- a/examples/preference_navigation/packages/preferences/hive_preferences_repository/pubspec.yaml +++ b/examples/preference_navigation/packages/preferences_repository/hive_preferences_repository/pubspec.yaml @@ -4,7 +4,7 @@ version: 1.0.0+1 publish_to: none environment: - sdk: ">=2.16.2 <3.0.0" + sdk: ">=2.17.0 <3.0.0" dependencies: hive: ^2.0.4 @@ -14,4 +14,4 @@ dependencies: dev_dependencies: mocktail: ^0.3.0 test: ^1.17.0 - very_good_analysis: ^2.4.0 + very_good_analysis: ^3.0.0 diff --git a/examples/preference_navigation/packages/preferences/hive_preferences_repository/test/hive_preferences_repository_test.dart b/examples/preference_navigation/packages/preferences_repository/hive_preferences_repository/test/hive_preferences_repository_test.dart similarity index 100% rename from examples/preference_navigation/packages/preferences/hive_preferences_repository/test/hive_preferences_repository_test.dart rename to examples/preference_navigation/packages/preferences_repository/hive_preferences_repository/test/hive_preferences_repository_test.dart diff --git a/examples/preference_navigation/packages/preferences/preferences_repository/.gitignore b/examples/preference_navigation/packages/preferences_repository/preferences_repository/.gitignore similarity index 100% rename from examples/preference_navigation/packages/preferences/preferences_repository/.gitignore rename to examples/preference_navigation/packages/preferences_repository/preferences_repository/.gitignore diff --git a/examples/preference_navigation/packages/preferences/preferences_repository/README.md b/examples/preference_navigation/packages/preferences_repository/preferences_repository/README.md similarity index 100% rename from examples/preference_navigation/packages/preferences/preferences_repository/README.md rename to examples/preference_navigation/packages/preferences_repository/preferences_repository/README.md diff --git a/examples/preference_navigation/packages/preferences_repository/preferences_repository/analysis_options.yaml b/examples/preference_navigation/packages/preferences_repository/preferences_repository/analysis_options.yaml new file mode 100644 index 0000000..c30d549 --- /dev/null +++ b/examples/preference_navigation/packages/preferences_repository/preferences_repository/analysis_options.yaml @@ -0,0 +1 @@ +include: package:very_good_analysis/analysis_options.3.0.0.yaml \ No newline at end of file diff --git a/examples/preference_navigation/packages/preferences/preferences_repository/lib/preferences_repository.dart b/examples/preference_navigation/packages/preferences_repository/preferences_repository/lib/preferences_repository.dart similarity index 100% rename from examples/preference_navigation/packages/preferences/preferences_repository/lib/preferences_repository.dart rename to examples/preference_navigation/packages/preferences_repository/preferences_repository/lib/preferences_repository.dart diff --git a/examples/preference_navigation/packages/preferences/preferences_repository/lib/src/preferences_failure.dart b/examples/preference_navigation/packages/preferences_repository/preferences_repository/lib/src/preferences_failure.dart similarity index 100% rename from examples/preference_navigation/packages/preferences/preferences_repository/lib/src/preferences_failure.dart rename to examples/preference_navigation/packages/preferences_repository/preferences_repository/lib/src/preferences_failure.dart diff --git a/examples/preference_navigation/packages/preferences/preferences_repository/lib/src/preferences_repository.dart b/examples/preference_navigation/packages/preferences_repository/preferences_repository/lib/src/preferences_repository.dart similarity index 100% rename from examples/preference_navigation/packages/preferences/preferences_repository/lib/src/preferences_repository.dart rename to examples/preference_navigation/packages/preferences_repository/preferences_repository/lib/src/preferences_repository.dart diff --git a/examples/preference_navigation/packages/preferences/preferences_repository/pubspec.yaml b/examples/preference_navigation/packages/preferences_repository/preferences_repository/pubspec.yaml similarity index 77% rename from examples/preference_navigation/packages/preferences/preferences_repository/pubspec.yaml rename to examples/preference_navigation/packages/preferences_repository/preferences_repository/pubspec.yaml index 77b65af..3cfa570 100644 --- a/examples/preference_navigation/packages/preferences/preferences_repository/pubspec.yaml +++ b/examples/preference_navigation/packages/preferences_repository/preferences_repository/pubspec.yaml @@ -4,8 +4,8 @@ version: 1.0.0+1 publish_to: none environment: - sdk: ">=2.16.2 <3.0.0" + sdk: ">=2.17.0 <3.0.0" dev_dependencies: test: ^1.17.0 - very_good_analysis: ^2.4.0 + very_good_analysis: ^3.0.0 diff --git a/examples/preference_navigation/packages/preferences/shared_preferences_repository/.gitignore b/examples/preference_navigation/packages/preferences_repository/shared_preferences_repository/.gitignore similarity index 100% rename from examples/preference_navigation/packages/preferences/shared_preferences_repository/.gitignore rename to examples/preference_navigation/packages/preferences_repository/shared_preferences_repository/.gitignore diff --git a/examples/preference_navigation/packages/preferences/shared_preferences_repository/README.md b/examples/preference_navigation/packages/preferences_repository/shared_preferences_repository/README.md similarity index 100% rename from examples/preference_navigation/packages/preferences/shared_preferences_repository/README.md rename to examples/preference_navigation/packages/preferences_repository/shared_preferences_repository/README.md diff --git a/examples/preference_navigation/packages/preferences_repository/shared_preferences_repository/analysis_options.yaml b/examples/preference_navigation/packages/preferences_repository/shared_preferences_repository/analysis_options.yaml new file mode 100644 index 0000000..c30d549 --- /dev/null +++ b/examples/preference_navigation/packages/preferences_repository/shared_preferences_repository/analysis_options.yaml @@ -0,0 +1 @@ +include: package:very_good_analysis/analysis_options.3.0.0.yaml \ No newline at end of file diff --git a/examples/preference_navigation/packages/preferences/shared_preferences_repository/lib/shared_preferences_repository.dart b/examples/preference_navigation/packages/preferences_repository/shared_preferences_repository/lib/shared_preferences_repository.dart similarity index 100% rename from examples/preference_navigation/packages/preferences/shared_preferences_repository/lib/shared_preferences_repository.dart rename to examples/preference_navigation/packages/preferences_repository/shared_preferences_repository/lib/shared_preferences_repository.dart diff --git a/examples/preference_navigation/packages/preferences/shared_preferences_repository/lib/src/shared_preferences_repository.dart b/examples/preference_navigation/packages/preferences_repository/shared_preferences_repository/lib/src/shared_preferences_repository.dart similarity index 100% rename from examples/preference_navigation/packages/preferences/shared_preferences_repository/lib/src/shared_preferences_repository.dart rename to examples/preference_navigation/packages/preferences_repository/shared_preferences_repository/lib/src/shared_preferences_repository.dart diff --git a/examples/preference_navigation/packages/preferences/shared_preferences_repository/pubspec.yaml b/examples/preference_navigation/packages/preferences_repository/shared_preferences_repository/pubspec.yaml similarity index 87% rename from examples/preference_navigation/packages/preferences/shared_preferences_repository/pubspec.yaml rename to examples/preference_navigation/packages/preferences_repository/shared_preferences_repository/pubspec.yaml index d76a2ac..6db8b74 100644 --- a/examples/preference_navigation/packages/preferences/shared_preferences_repository/pubspec.yaml +++ b/examples/preference_navigation/packages/preferences_repository/shared_preferences_repository/pubspec.yaml @@ -4,7 +4,7 @@ version: 1.0.0+1 publish_to: none environment: - sdk: ">=2.16.2 <3.0.0" + sdk: ">=2.17.0 <3.0.0" dependencies: flutter: @@ -17,4 +17,4 @@ dev_dependencies: flutter_test: sdk: flutter mocktail: ^0.3.0 - very_good_analysis: ^2.4.0 + very_good_analysis: ^3.0.0 diff --git a/examples/preference_navigation/packages/preferences/shared_preferences_repository/test/shared_preferences_repository_test.dart b/examples/preference_navigation/packages/preferences_repository/shared_preferences_repository/test/shared_preferences_repository_test.dart similarity index 100% rename from examples/preference_navigation/packages/preferences/shared_preferences_repository/test/shared_preferences_repository_test.dart rename to examples/preference_navigation/packages/preferences_repository/shared_preferences_repository/test/shared_preferences_repository_test.dart diff --git a/examples/preference_navigation/pubspec.yaml b/examples/preference_navigation/pubspec.yaml index 544d9f2..1cb175a 100644 --- a/examples/preference_navigation/pubspec.yaml +++ b/examples/preference_navigation/pubspec.yaml @@ -4,8 +4,8 @@ publish_to: "none" version: 1.0.0+1 environment: - sdk: ">=2.16.2 <3.0.0" - flutter: "2.10.5" + sdk: ">=2.17.0 <3.0.0" + flutter: "3.0.0" dependencies: bloc: ^8.0.3 @@ -18,13 +18,11 @@ dependencies: flutter_services_binding: ^0.1.0 hive: ^2.0.4 hive_preferences_repository: - path: packages/preferences/hive_preferences_repository + path: packages/preferences_repository/hive_preferences_repository path_provider: ^2.0.2 - preferences_repository: - path: packages/preferences/preferences_repository shared_preferences: ^2.0.6 shared_preferences_repository: - path: packages/preferences/shared_preferences_repository + path: packages/preferences_repository/shared_preferences_repository dev_dependencies: bloc_test: ^9.0.3 @@ -32,7 +30,7 @@ dev_dependencies: sdk: flutter mockingjay: ^0.3.0 mocktail: ^0.3.0 - very_good_analysis: ^2.4.0 + very_good_analysis: ^3.0.0 flutter: uses-material-design: true diff --git a/examples/profile_accounts/analysis_options.yaml b/examples/profile_accounts/analysis_options.yaml index e44f8ee..2f0ea72 100644 --- a/examples/profile_accounts/analysis_options.yaml +++ b/examples/profile_accounts/analysis_options.yaml @@ -1,4 +1,4 @@ -include: package:very_good_analysis/analysis_options.2.4.0.yaml +include: package:very_good_analysis/analysis_options.3.0.0.yaml linter: rules: public_member_api_docs: false \ No newline at end of file diff --git a/examples/profile_accounts/lib/app/app.dart b/examples/profile_accounts/lib/app/app.dart index aef2967..0bbcb2d 100644 --- a/examples/profile_accounts/lib/app/app.dart +++ b/examples/profile_accounts/lib/app/app.dart @@ -2,7 +2,7 @@ import 'package:flutter/material.dart'; import 'package:profile_accounts/profile/profile.dart'; class App extends StatelessWidget { - const App({Key? key}) : super(key: key); + const App({super.key}); @override Widget build(BuildContext context) { diff --git a/examples/profile_accounts/lib/profile/view/profile_card.dart b/examples/profile_accounts/lib/profile/view/profile_card.dart index 19539f4..e472954 100644 --- a/examples/profile_accounts/lib/profile/view/profile_card.dart +++ b/examples/profile_accounts/lib/profile/view/profile_card.dart @@ -2,7 +2,7 @@ import 'package:flutter/material.dart'; import 'package:profile_accounts/profile/profile.dart'; class ProfileCard extends StatelessWidget { - const ProfileCard({Key? key}) : super(key: key); + const ProfileCard({super.key}); @override Widget build(BuildContext context) { diff --git a/examples/profile_accounts/lib/profile/view/profile_drawer.dart b/examples/profile_accounts/lib/profile/view/profile_drawer.dart index 95a5b22..803074e 100644 --- a/examples/profile_accounts/lib/profile/view/profile_drawer.dart +++ b/examples/profile_accounts/lib/profile/view/profile_drawer.dart @@ -5,7 +5,7 @@ import 'package:profile_accounts/profile/profile.dart'; import 'package:profile_core/profile_core.dart'; class ProfileDrawer extends StatelessWidget { - const ProfileDrawer({Key? key}) : super(key: key); + const ProfileDrawer({super.key}); @override Widget build(BuildContext context) { @@ -30,7 +30,7 @@ class ProfileDrawer extends StatelessWidget { } class ProfileHeader extends StatelessWidget { - const ProfileHeader({Key? key}) : super(key: key); + const ProfileHeader({super.key}); @override Widget build(BuildContext context) { @@ -48,7 +48,7 @@ class ProfileHeader extends StatelessWidget { } class ProfileAccountList extends StatelessWidget { - const ProfileAccountList({Key? key}) : super(key: key); + const ProfileAccountList({super.key}); @override Widget build(BuildContext context) { diff --git a/examples/profile_accounts/lib/profile/view/profile_form.dart b/examples/profile_accounts/lib/profile/view/profile_form.dart index 7616c2f..de26060 100644 --- a/examples/profile_accounts/lib/profile/view/profile_form.dart +++ b/examples/profile_accounts/lib/profile/view/profile_form.dart @@ -4,7 +4,7 @@ import 'package:profile_accounts/profile/profile.dart'; import 'package:profile_core/profile_core.dart'; class ProfileForm extends StatefulWidget { - const ProfileForm({Key? key}) : super(key: key); + const ProfileForm({super.key}); @override State createState() => _ProfileFormState(); diff --git a/examples/profile_accounts/lib/profile/view/profile_page.dart b/examples/profile_accounts/lib/profile/view/profile_page.dart index 660597d..00c8848 100644 --- a/examples/profile_accounts/lib/profile/view/profile_page.dart +++ b/examples/profile_accounts/lib/profile/view/profile_page.dart @@ -3,7 +3,7 @@ import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:profile_accounts/profile/profile.dart'; class ProfilePage extends StatelessWidget { - const ProfilePage({Key? key}) : super(key: key); + const ProfilePage({super.key}); @override Widget build(BuildContext context) { @@ -15,7 +15,7 @@ class ProfilePage extends StatelessWidget { } class ProfileView extends StatelessWidget { - const ProfileView({Key? key}) : super(key: key); + const ProfileView({super.key}); @override Widget build(BuildContext context) { @@ -39,7 +39,7 @@ class ProfileView extends StatelessWidget { } class ProfileAddAccountButton extends StatelessWidget { - const ProfileAddAccountButton({Key? key}) : super(key: key); + const ProfileAddAccountButton({super.key}); @override Widget build(BuildContext context) { diff --git a/examples/profile_accounts/packages/profile_core/analysis_options.yaml b/examples/profile_accounts/packages/profile_core/analysis_options.yaml index e44f8ee..2f0ea72 100644 --- a/examples/profile_accounts/packages/profile_core/analysis_options.yaml +++ b/examples/profile_accounts/packages/profile_core/analysis_options.yaml @@ -1,4 +1,4 @@ -include: package:very_good_analysis/analysis_options.2.4.0.yaml +include: package:very_good_analysis/analysis_options.3.0.0.yaml linter: rules: public_member_api_docs: false \ No newline at end of file diff --git a/examples/profile_accounts/packages/profile_core/pubspec.yaml b/examples/profile_accounts/packages/profile_core/pubspec.yaml index e6c3b13..92f537c 100644 --- a/examples/profile_accounts/packages/profile_core/pubspec.yaml +++ b/examples/profile_accounts/packages/profile_core/pubspec.yaml @@ -4,7 +4,7 @@ version: 1.0.0+1 publish_to: none environment: - sdk: ">=2.16.2 <3.0.0" + sdk: ">=2.17.0 <3.0.0" dependencies: equatable: ^2.0.3 @@ -12,4 +12,4 @@ dependencies: dev_dependencies: test: ^1.17.0 - very_good_analysis: ^2.4.0 + very_good_analysis: ^3.0.0 diff --git a/examples/profile_accounts/pubspec.yaml b/examples/profile_accounts/pubspec.yaml index f787f98..b4108f8 100644 --- a/examples/profile_accounts/pubspec.yaml +++ b/examples/profile_accounts/pubspec.yaml @@ -4,8 +4,8 @@ publish_to: "none" version: 1.0.0+1 environment: - sdk: ">=2.16.2 <3.0.0" - flutter: "2.10.5" + sdk: ">=2.17.0 <3.0.0" + flutter: "3.0.0" dependencies: bloc: ^8.0.3 @@ -22,7 +22,7 @@ dev_dependencies: flutter_test: sdk: flutter mocktail: ^0.3.0 - very_good_analysis: ^2.4.0 + very_good_analysis: ^3.0.0 flutter: uses-material-design: true