routes.dart 494 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
import 'package:flutter/material.dart';
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(),
    'articles': (BuildContext context) => const ArticlesPage(),
  };
}