29 lines
972 B
Dart
29 lines
972 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
// AUTH
|
|
import '../screens/auth/login_screen.dart';
|
|
import '../screens/auth/register_screen.dart';
|
|
|
|
// DASHBOARD (PATH BENAR)
|
|
import '../screens/dashboard/user/dashboard_user.dart';
|
|
import '../screens/dashboard/admin/dashboard_admin.dart';
|
|
|
|
class AppRoutes {
|
|
static const welcome = '/welcome';
|
|
static const login = '/login';
|
|
static const register = '/register';
|
|
static const forgotPassword = '/forgot-password';
|
|
static const userProfile = '/profile-user';
|
|
static const adminProfile = '/profile-admin';
|
|
static const changePassword = '/change-password';
|
|
static const dashboardUser = '/dashboard-user';
|
|
static const dashboardAdmin = '/dashboard-admin';
|
|
|
|
static Map<String, WidgetBuilder> routes = {
|
|
login: (context) => const LoginScreen(),
|
|
register: (context) => const RegisterScreen(),
|
|
dashboardUser: (context) => const DashboardUser(),
|
|
dashboardAdmin: (context) => const DashboardAdmin(),
|
|
};
|
|
}
|