diff --git a/analysis_options.yaml b/analysis_options.yaml index 06b5ac2..6e469e8 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -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 @@ -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 diff --git a/lib/main.dart b/lib/main.dart index b39f93b..e4603ff 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -9,5 +9,5 @@ void main() { ), ); - runApp(App()); + runApp(const App()); } diff --git a/lib/ui/screens/landing_screen.dart b/lib/ui/screens/landing_screen.dart index 0125610..05ff5b8 100644 --- a/lib/ui/screens/landing_screen.dart +++ b/lib/ui/screens/landing_screen.dart @@ -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, @@ -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: [ diff --git a/pubspec.yaml b/pubspec.yaml index f494f17..e507ae1 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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: