From 8359caf66ac46fde28866b0adaa877e0d6ed9e3d Mon Sep 17 00:00:00 2001 From: Angel David Carlos Silva Date: Tue, 23 Apr 2024 11:26:00 -0600 Subject: [PATCH] rutas, para las ventanas --- .../lib/config/router.dart | 12 ++++++++++ .../aplicacionrutasturisticas/pubspec.lock | 22 +++++++++++++++++++ .../aplicacionrutasturisticas/pubspec.yaml | 1 + 3 files changed, 35 insertions(+) create mode 100644 fronted/aplicacionrutasturisticas/lib/config/router.dart diff --git a/fronted/aplicacionrutasturisticas/lib/config/router.dart b/fronted/aplicacionrutasturisticas/lib/config/router.dart new file mode 100644 index 0000000..5003afe --- /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 1827158..57599ee 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 ac0d41f..3cfaa64 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: -- GitLab