routes.dart 639 Bytes
Newer Older
1
import 'package:flutter/material.dart';
yenisleydi committed
2
import 'package:primer_practica/src/pages/formulario_categoria.dart';
3 4 5 6 7 8 9 10
import 'package:primer_practica/src/pages/login_page.dart';
import 'package:primer_practica/src/pages/home_page.dart';
import 'package:primer_practica/src/pages/articles_page.dart';

Map<String, WidgetBuilder> getApplicationRoutes() {
  return <String, WidgetBuilder>{
    'login': (BuildContext context) => const LoginPage(),
    'home': (BuildContext context) => const HomePage(),
yenisleydi committed
11 12
    //'articles': (BuildContext context) => const ArticlesPage(),
    'formulario': (BuildContext context) => const FormularioCategoria(),
13 14
  };
}