rutas.dart 404 Bytes
Newer Older
nayeli92433 committed
1 2 3 4 5 6 7 8 9
import 'package:flutter/material.dart';
import '../src/pages/articles_page.dart';
import '../src/pages/home_page.dart';
import '../src/pages/login_page.dart';

Map<String, WidgetBuilder> getApplicationRoutes() {
  return <String, WidgetBuilder>{
    'login': (context) => const LoginPage(),
    'home': (context) => const HomePage(),
10
    'articles': (context) => const ArticlePage(categoryId: 1),
nayeli92433 committed
11 12
  };
}