Skip to content

Commit 94e3b7b

Browse files
authored
feat: update dependencies and add dart_code_linter (#212)
1 parent 7ab0db9 commit 94e3b7b

29 files changed

+934
-907
lines changed

.fvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"flutter": "3.13.9"
2+
"flutter": "3.22.1"
33
}

analysis_options.yaml

+7-11
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ linter:
1414
- avoid_relative_lib_imports
1515
- avoid_renaming_method_parameters
1616
- avoid_return_types_on_setters
17-
- avoid_returning_null
18-
- avoid_returning_null_for_future
1917
- avoid_returning_null_for_void
2018
- avoid_returning_this
2119
- avoid_shadowing_type_parameters
@@ -85,7 +83,7 @@ linter:
8583
- use_key_in_widget_constructors
8684
- valid_regexps
8785

88-
dart_code_metrics:
86+
dart_code_linter:
8987
anti-patterns:
9088
- long-method
9189
- long-parameter-list
@@ -112,18 +110,16 @@ dart_code_metrics:
112110
allowed-duplicated-chains: 3
113111
- prefer-trailing-comma
114112

115-
116-
117113
# Additional information about this file can be found at
118114
# https://dart.dev/guides/language/analysis-options
119115
analyzer:
120116
exclude:
121-
- '**/*.freezed.dart'
122-
- '**/*.g.dart'
123-
- '**/*.gen.dart'
124-
- '**/*.gr.dart'
125-
- 'bricks'
126-
- 'lib/generated_plugin_registrant.dart'
117+
- "**/*.freezed.dart"
118+
- "**/*.g.dart"
119+
- "**/*.gen.dart"
120+
- "**/*.gr.dart"
121+
- "bricks"
122+
- "lib/generated_plugin_registrant.dart"
127123
errors:
128124
invalid_annotation_target: ignore
129125
unused_element: ignore # https://github.com/dart-lang/sdk/issues/49025

catalog/gallery/lib/catalog/catalog_scaffold_screen.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import 'package:auto_route/auto_route.dart';
2+
import 'package:catalog/catalog.dart';
23
import 'package:catalog/extensions/color_extensions.dart';
34
import 'package:flutter/material.dart';
4-
import 'package:catalog/catalog.dart';
55

66
class CatalogScaffold extends StatelessWidget {
77
final Widget child;
@@ -24,7 +24,7 @@ class CatalogScaffold extends StatelessWidget {
2424
Icons.chevron_left,
2525
color: context.theme.colorScheme.primary.getShade(100),
2626
),
27-
onPressed: () => context.router.pop(),
27+
onPressed: () => context.router.maybePop(),
2828
)
2929
: null,
3030
title: Text(title),

catalog/gallery/pubspec.lock

+58-34
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

catalog/gallery/pubspec.yaml

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: gallery
22
description: A new Flutter project.
3-
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
3+
publish_to: "none" # Remove this line if you wish to publish to pub.dev
44
version: 1.0.0+1
55

66
environment:
7-
sdk: '>=3.0.0 <4.0.0'
8-
flutter: 3.13.9
7+
sdk: ">=3.0.0 <4.0.0"
8+
flutter: 3.22.1
99

1010
# Dependencies specify other packages that your package needs in order to work.
1111
# To automatically upgrade your package dependencies to the latest versions
@@ -19,16 +19,16 @@ dependencies:
1919
catalog:
2020
path: ../
2121

22-
auto_route: 7.8.3
23-
flutter_screenutil: 5.9.0
22+
auto_route: 8.1.3
23+
flutter_screenutil: 5.9.3
2424
flutter_native_splash: 2.3.2
2525
material_color_generator: 1.1.0
26-
google_fonts: 5.1.0
26+
google_fonts: 6.2.1
2727

2828
dev_dependencies:
2929
flutter_test:
3030
sdk: flutter
31-
auto_route_generator: 7.3.1
31+
auto_route_generator: 8.0.0
3232
flutter_lints: 3.0.1
3333
flutter_gen_runner: 5.3.1
3434
flutter_flavorizr: 2.2.1
@@ -42,19 +42,19 @@ flutter:
4242
flutter_launcher_icons:
4343
android: true
4444
ios: true
45-
image_path: 'icons/ic_launcher.png'
46-
image_path_ios: 'icons/ic_launcher_ios.png' # Transparency not supported on IOS
47-
adaptive_icon_foreground: 'icons/ic_launcher_foreground.png'
48-
adaptive_icon_background: '#ee1a64'
45+
image_path: "icons/ic_launcher.png"
46+
image_path_ios: "icons/ic_launcher_ios.png" # Transparency not supported on IOS
47+
adaptive_icon_foreground: "icons/ic_launcher_foreground.png"
48+
adaptive_icon_background: "#ee1a64"
4949
remove_alpha_ios: true
5050
web:
5151
generate: false
5252
windows:
5353
generate: false
5454

5555
flutter_native_splash:
56-
color: '#ffffff'
57-
image: 'icons/splash_logo.png'
56+
color: "#ffffff"
57+
image: "icons/splash_logo.png"
5858
android_12:
59-
image: 'icons/splash_logo_android_12.png'
60-
branding: 'icons/splash_branding.png'
59+
image: "icons/splash_logo_android_12.png"
60+
branding: "icons/splash_branding.png"

0 commit comments

Comments
 (0)