From 2f356784537ae8b5e6be34c212744284049b70fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Garc=C3=ADa?= Date: Sun, 2 Jun 2024 00:08:01 -0500 Subject: [PATCH 1/3] udpated packages --- pubspec.yaml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/pubspec.yaml b/pubspec.yaml index 9dbfda9..71d7612 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -9,27 +9,27 @@ environment: sdk: ">=3.0.0 <4.0.0" dependencies: - cupertino_icons: ^1.0.5 + cupertino_icons: ^1.0.8 faker: ^2.1.0 flutter: sdk: flutter - flutter_markdown: ^0.6.14 - flutter_riverpod: ^2.3.6 - font_awesome_flutter: ^10.4.0 - go_router: ^7.0.1 + flutter_markdown: ^0.7.1 + flutter_riverpod: ^2.5.1 + font_awesome_flutter: ^10.7.0 + go_router: ^14.1.4 highlight: ^0.7.0 - riverpod_annotation: ^2.1.1 - url_launcher: ^6.1.11 + riverpod_annotation: ^2.3.5 + url_launcher: ^6.2.6 url_strategy: ^0.2.0 - xml: ^6.3.0 + xml: ^6.5.0 dev_dependencies: - build_runner: ^2.4.4 + build_runner: ^2.4.10 flutter_test: sdk: flutter - go_router_builder: ^2.0.1 - lint: ^2.1.2 - riverpod_generator: ^2.2.3 + go_router_builder: ^2.7.0 + lint: ^2.3.0 + riverpod_generator: ^2.4.0 flutter: uses-material-design: true From 676cd75669bada208a7ee7d3e9cde5c48870ef83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Garc=C3=ADa?= Date: Sun, 2 Jun 2024 00:08:19 -0500 Subject: [PATCH 2/3] fix bug for updated package --- lib/navigation/router.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/navigation/router.dart b/lib/navigation/router.dart index 862e324..2f63159 100644 --- a/lib/navigation/router.dart +++ b/lib/navigation/router.dart @@ -11,7 +11,7 @@ part 'router.g.dart'; GoRouter router(_) => GoRouter( routes: $appRoutes, redirect: (context, state) => - state.location.isEmpty ? const MainMenuRoute().location : null, + state.uri.toString().isEmpty ? const MainMenuRoute().location : null, ); @TypedGoRoute( From cfa591876694ec5993ba8d7ff531fdefd6e8aa6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Garc=C3=ADa?= Date: Sun, 2 Jun 2024 00:09:04 -0500 Subject: [PATCH 3/3] fix deprecated Flutter v3.22.0 --- lib/themes.dart | 2 +- .../design_patterns/decorator/custom_pizza_selection.dart | 4 ++-- lib/widgets/image_view.dart | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/themes.dart b/lib/themes.dart index 99791d7..6246001 100644 --- a/lib/themes.dart +++ b/lib/themes.dart @@ -4,7 +4,7 @@ const lightBackgroundColor = Color(0xFFECECEC); final lightTheme = ThemeData.from( colorScheme: const ColorScheme.light( - background: lightBackgroundColor, + surface: lightBackgroundColor, primary: Colors.grey, ), ).copyWith( diff --git a/lib/widgets/design_patterns/decorator/custom_pizza_selection.dart b/lib/widgets/design_patterns/decorator/custom_pizza_selection.dart index aa8429f..7928be7 100644 --- a/lib/widgets/design_patterns/decorator/custom_pizza_selection.dart +++ b/lib/widgets/design_patterns/decorator/custom_pizza_selection.dart @@ -51,8 +51,8 @@ class _ChoiceChip extends StatelessWidget { final color = selected ? Colors.white : Colors.black; return ChoiceChip( - color: MaterialStateProperty.resolveWith((states) { - if (states.contains(MaterialState.selected)) { + color: WidgetStateProperty.resolveWith((states) { + if (states.contains(WidgetState.selected)) { return Colors.black; } diff --git a/lib/widgets/image_view.dart b/lib/widgets/image_view.dart index 096d162..541a97e 100644 --- a/lib/widgets/image_view.dart +++ b/lib/widgets/image_view.dart @@ -114,7 +114,7 @@ class _ImageViewState extends State return Scaffold( appBar: AppBar( elevation: 0, - backgroundColor: Theme.of(context).colorScheme.background, + backgroundColor: Theme.of(context).colorScheme.surface, leading: const CloseButton(color: Colors.black), ), body: GestureDetector(