Skip to content

Commit

Permalink
Upgrade dependencies, the analysis_options.yaml file and fix linter e…
Browse files Browse the repository at this point in the history
…rrors
  • Loading branch information
sunderee committed Jan 25, 2025
1 parent f89cf01 commit cbd63fd
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
12 changes: 6 additions & 6 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ analyzer:
# prefer_asserts_with_message: error
prefer_collection_literals: error
prefer_conditional_assignment: error
# prefer_const_constructors: error
prefer_const_constructors: error
prefer_const_constructors_in_immutables: error
# prefer_const_declarations: error
# prefer_const_literals_to_create_immutables: error
prefer_const_declarations: error
prefer_const_literals_to_create_immutables: error
# prefer_constructors_over_static_methods: error
prefer_contains: error
# prefer_double_quotes: error
Expand Down Expand Up @@ -599,16 +599,16 @@ linter:
- prefer_conditional_assignment

# Prefer `const` with constant constructors.
# - prefer_const_constructors
- prefer_const_constructors

# Prefer declaring `const` constructors on `@immutable` classes.
- prefer_const_constructors_in_immutables

# Prefer `const` over `final` for declarations.
# - prefer_const_declarations
- prefer_const_declarations

# Prefer const literals as parameters of constructors on @immutable classes.
# - prefer_const_literals_to_create_immutables
- prefer_const_literals_to_create_immutables

# Prefer defining constructors instead of static methods to create instances.
# - prefer_constructors_over_static_methods
Expand Down
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ void main() {
),
);

runApp(App());
runApp(const App());
}
6 changes: 3 additions & 3 deletions lib/ui/screens/landing_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ final class LandingScreen extends StatelessWidget {
Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(
minimum: EdgeInsets.all(16.0),
minimum: const EdgeInsets.all(16.0),
child: SizedBox(
height: context.media.size.height,
width: context.media.size.width,
Expand All @@ -29,8 +29,8 @@ final class LandingScreen extends StatelessWidget {
color: context.theme.colorScheme.onSurfaceVariant,
),
),
SizedBox(height: 16.0),
Wrap(
const SizedBox(height: 16.0),
const Wrap(
alignment: WrapAlignment.center,
spacing: 8.0,
children: [
Expand Down
8 changes: 4 additions & 4 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ publish_to: "none"
version: 1.0.0+1

environment:
sdk: ">=3.5.4"
flutter: ">=3.24.5"
sdk: ">=3.6.1"
flutter: ">=3.27.3"

dependencies:
flutter:
sdk: flutter
flutter_svg: ^2.0.15
flutter_svg: ^2.0.17
web: ^1.1.0

dev_dependencies:
flutter_launcher_icons: ^0.14.1
flutter_launcher_icons: ^0.14.3
flutter_lints: ^5.0.0

flutter:
Expand Down

0 comments on commit cbd63fd

Please sign in to comment.