Robo-advisory-dart/lib/config/Routes.dart

22 lines
740 B
Dart
Raw Normal View History

import 'package:flutter/material.dart';
import 'package:robo_advisory/screens/login.dart';
import 'package:robo_advisory/screens/register/register_step_1.dart';
import 'package:robo_advisory/screens/dashboard/dashboard.dart';
import 'package:robo_advisory/screens/welcome.dart';
class Routes {
static const String splashScreen = '/welcome';
static const String login = '/';
static const String register = '/register';
static const String dashboard = '/dashboard';
static Map<String, WidgetBuilder> getRoute() {
return <String, WidgetBuilder>{
splashScreen: (_) => WelcomeScreen(),
login: (_) => LoginScreen(),
register: (_) => RegisterFirstScreen(),
dashboard: (_) => DashboardScreen(),
};
}
}