Navegar entre pantallas en Flutter - Go Router

  Рет қаралды 1,579

RUAL DEV

RUAL DEV

Күн бұрын

Пікірлер: 5
@marcelolopez3754
@marcelolopez3754 Жыл бұрын
muy bien explicado, gracias
@edwightdelgado2939
@edwightdelgado2939 10 ай бұрын
Tienes que verificar si se importo la librería con import
@giligo4750
@giligo4750 9 ай бұрын
al dia de hoy veo que ya no pide el context al hacer el context.go(), fuunciona normalmente,
@estebanlopez95
@estebanlopez95 Жыл бұрын
Bro tengo un error, cuando coloco el context.go('/blue') me dice que el metodo 'go' no esta definido, e hice todos los pasos del video
@giligo4750
@giligo4750 9 ай бұрын
import 'package:flutter/material.dart'; import 'package:go_router/go_router.dart'; void main() => runApp(const MyApp()); class MyApp extends StatelessWidget { const MyApp({super.key}); @override Widget build(BuildContext context) { return MaterialApp.router( title: 'Material App', routerConfig: GoRouter(initialLocation: "/home", routes: [ GoRoute( path: "/details", builder: (context, state) => const DetailsScreen()), GoRoute(path: "/home", builder: (context, state) => const HomeScreen()) ]), ); } } class DetailsScreen extends StatelessWidget { /// Constructs a [DetailsScreen] const DetailsScreen({super.key}); @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(title: const Text('Details Screen')), body: Center( child: ElevatedButton( onPressed: () => context.go('/home'), child: const Text('Go back to the Home screen'), ), ), ); } } class HomeScreen extends StatelessWidget { /// Constructs a [HomeScreen] const HomeScreen({super.key}); @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(title: const Text('Home Screen')), body: Center( child: ElevatedButton( onPressed: () => context.go('/details'), child: const Text('Go to the Details screen'), ), ), ); } }
This tool annoyed me (so I built a free version)
19:38
Theo - t3․gg
Рет қаралды 99 М.
Deep linking in Flutter
11:10
Flutter
Рет қаралды 126 М.
How Strong is Tin Foil? 💪
00:25
Brianna
Рет қаралды 69 МЛН
СКОЛЬКО ПАЛЬЦЕВ ТУТ?
00:16
Masomka
Рет қаралды 1,8 МЛН
Flutter GoRouter Tutorial - Easy Navigation Tutorial using GoRouter
17:37
Why I Cant Stand IDE's After Using VIM | Prime Reacts
17:51
ThePrimeTime
Рет қаралды 369 М.
"The Life & Death of htmx" by Alexander Petros at Big Sky Dev Con 2024
23:01
Montana Programmers
Рет қаралды 68 М.
Navegar entre pantallas | Android Jetpack compose
13:27
RUAL DEV
Рет қаралды 1,3 М.
💻 ¿Cómo navegar entre pantallas en Flutter?
14:25
Blijf
Рет қаралды 10 М.
React Native vs Flutter in 2024 - Make the RIGHT Choice (Difference Explained)
10:31
Flutter Go Router
13:26
1ManStartup
Рет қаралды 3,1 М.