diff --git a/fronted/aplicacionrutasturisticas/lib/config/router.dart b/fronted/aplicacionrutasturisticas/lib/config/router.dart new file mode 100644 index 0000000000000000000000000000000000000000..5003afec0ae23d0145a39a835d30a058f489868d --- /dev/null +++ b/fronted/aplicacionrutasturisticas/lib/config/router.dart @@ -0,0 +1,12 @@ +import 'package:aplicacionrutasturisticas/pages/login.dart'; +import 'package:flutter/cupertino.dart'; +import 'package:go_router/go_router.dart'; + +final GoRouter router = GoRouter(routes: [ + GoRoute( + path: 'pages', + builder: (BuildContext context, GoRouterState state) { + return LoginPage(); + }, + ) +]); diff --git a/fronted/aplicacionrutasturisticas/pubspec.lock b/fronted/aplicacionrutasturisticas/pubspec.lock index 182715873cf1ed87494bac942b34284c77e637cd..57599eebfb2dd17ececb4738b6b39030c52ec4d8 100644 --- a/fronted/aplicacionrutasturisticas/pubspec.lock +++ b/fronted/aplicacionrutasturisticas/pubspec.lock @@ -75,6 +75,19 @@ packages: description: flutter source: sdk version: "0.0.0" + flutter_web_plugins: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" + go_router: + dependency: "direct main" + description: + name: go_router + sha256: "771c8feb40ad0ef639973d7ecf1b43d55ffcedb2207fd43fab030f5639e40446" + url: "https://pub.dev" + source: hosted + version: "13.2.4" leak_tracker: dependency: transitive description: @@ -107,6 +120,14 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.1" + logging: + dependency: transitive + description: + name: logging + sha256: "623a88c9594aa774443aa3eb2d41807a48486b5613e67599fb4c41c0ad47c340" + url: "https://pub.dev" + source: hosted + version: "1.2.0" matcher: dependency: transitive description: @@ -210,3 +231,4 @@ packages: version: "13.0.0" sdks: dart: ">=3.2.6 <4.0.0" + flutter: ">=3.16.0" diff --git a/fronted/aplicacionrutasturisticas/pubspec.yaml b/fronted/aplicacionrutasturisticas/pubspec.yaml index ac0d41f3066fa060870337472ced2263d9335bf5..3cfaa6406820661da1a9e8f3ad16145b68671a89 100644 --- a/fronted/aplicacionrutasturisticas/pubspec.yaml +++ b/fronted/aplicacionrutasturisticas/pubspec.yaml @@ -35,6 +35,7 @@ dependencies: # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^1.0.2 + go_router: ^13.2.4 dev_dependencies: flutter_test: