athrainsky 8 månader sedan
förälder
incheckning
aa2e07c754
3 ändrade filer med 20 tillägg och 20 borttagningar
  1. 4 4
      lib/main.dart
  2. 12 12
      pubspec.lock
  3. 4 4
      pubspec.yaml

+ 4 - 4
lib/main.dart

@@ -32,8 +32,8 @@ final _router = GoRouter(
               GoRoute(
                   path: 'search/:type',
                   builder: (context, state) {
-                    var item = items.firstWhere(
-                        (element) => element['type'] == state.params['type']);
+                    var item = items.firstWhere((element) =>
+                        element['type'] == state.pathParameters['type']);
                     return SearchPage(items: item);
                   })
             ],
@@ -41,8 +41,8 @@ final _router = GoRouter(
           GoRoute(
               path: 'detail/:type',
               builder: (context, state) {
-                var item = items.firstWhere(
-                    (element) => element['type'] == state.params['type']);
+                var item = items.firstWhere((element) =>
+                    element['type'] == state.pathParameters['type']);
                 return DetailPage(items: item);
               })
         ],

+ 12 - 12
pubspec.lock

@@ -82,18 +82,18 @@ packages:
     dependency: "direct main"
     description:
       name: flutter_layout_grid
-      sha256: "86c1b21520612edfbb93f189b3ec05058470570f3a5c08ce10c92cc76a6e814e"
+      sha256: "3529b7aa7ed2cb9861a0bbaa5c14d4be2beaf5a070ce0176077159f80c5de094"
       url: "https://pub.dev"
     source: hosted
-    version: "1.0.6"
+    version: "2.0.5"
   flutter_lints:
     dependency: "direct dev"
     description:
       name: flutter_lints
-      sha256: a25a15ebbdfc33ab1cd26c63a6ee519df92338a9c10f122adda92938253bef04
+      sha256: e2a421b7e59244faef694ba7b30562e489c2b489866e505074eb005cd7060db7
       url: "https://pub.dev"
     source: hosted
-    version: "2.0.3"
+    version: "3.0.1"
   flutter_test:
     dependency: "direct dev"
     description: flutter
@@ -108,10 +108,10 @@ packages:
     dependency: "direct main"
     description:
       name: go_router
-      sha256: bd7e671d26fd39c78cba82070fa34ef1f830b0e7ed1aeebccabc6561302a7ee5
+      sha256: "170c46e237d6eb0e6e9f0e8b3f56101e14fb64f787016e42edd74c39cf8b176a"
       url: "https://pub.dev"
     source: hosted
-    version: "6.5.9"
+    version: "13.2.0"
   leak_tracker:
     dependency: transitive
     description:
@@ -140,18 +140,18 @@ packages:
     dependency: "direct main"
     description:
       name: lint
-      sha256: "4a539aa34ec5721a2c7574ae2ca0336738ea4adc2a34887d54b7596310b33c85"
+      sha256: d758a5211fce7fd3f5e316f804daefecdc34c7e53559716125e6da7388ae8565
       url: "https://pub.dev"
     source: hosted
-    version: "1.10.0"
+    version: "2.3.0"
   lints:
     dependency: transitive
     description:
       name: lints
-      sha256: "5e4a9cd06d447758280a8ac2405101e0e2094d2a1dbdd3756aec3fe7775ba593"
+      sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290
       url: "https://pub.dev"
     source: hosted
-    version: "2.0.1"
+    version: "3.0.0"
   logging:
     dependency: transitive
     description:
@@ -302,5 +302,5 @@ packages:
     source: hosted
     version: "13.0.0"
 sdks:
-  dart: ">=3.2.0-0 <4.0.0"
-  flutter: ">=3.3.0"
+  dart: ">=3.2.0 <4.0.0"
+  flutter: ">=3.13.0"

+ 4 - 4
pubspec.yaml

@@ -13,19 +13,19 @@ dependencies:
     sdk: flutter
   english_words: ^4.0.0
   provider: ^6.0.0
-  go_router: ^6.0.2
-  flutter_layout_grid: ^1.0.3
+  go_router: ^13.2.0
+  flutter_layout_grid: ^2.0.5
   date_format: ^2.0.7
   dotted_line: ^3.1.0
   timelines: ^0.1.0
   timeline_tile: ^2.0.0
-  lint: ^1.0.0  
+  lint: ^2.3.0  
 
 dev_dependencies:
   flutter_test:
     sdk: flutter
 
-  flutter_lints: ^2.0.0
+  flutter_lints: ^3.0.1
 
 flutter:
   uses-material-design: true