update
This commit is contained in:
@ -1,6 +1,11 @@
|
||||
import 'package:get/get_navigation/src/routes/get_route.dart';
|
||||
import 'package:rogapp/index/index_binding.dart';
|
||||
import 'package:rogapp/index/index_page.dart';
|
||||
import 'package:rogapp/pages/destination/destination_binding.dart';
|
||||
import 'package:rogapp/pages/destination/destination_page.dart';
|
||||
import 'package:rogapp/pages/index/index_binding.dart';
|
||||
import 'package:rogapp/pages/index/index_page.dart';
|
||||
import 'package:rogapp/pages/landing/landing_page.dart';
|
||||
import 'package:rogapp/pages/login/login_page.dart';
|
||||
import 'package:rogapp/pages/register/register_page.dart';
|
||||
import 'package:rogapp/spa/spa_binding.dart';
|
||||
import 'package:rogapp/spa/spa_page.dart';
|
||||
|
||||
@ -12,6 +17,10 @@ class AppPages {
|
||||
static const INITIAL = Routes.INDEX;
|
||||
// ignore: constant_identifier_names
|
||||
static const SPA = Routes.SPA;
|
||||
static const LANDING = Routes.LANDING;
|
||||
static const LOGIN = Routes.LOGIN;
|
||||
static const REGISTER = Routes.REGISTER;
|
||||
static const TRAVEL = Routes.TRAVEL;
|
||||
|
||||
static final routes = [
|
||||
// GetPage(
|
||||
@ -33,6 +42,26 @@ class AppPages {
|
||||
name: Routes.SPA,
|
||||
page: () => const SpaPage(),
|
||||
binding: SpaBinding(),
|
||||
),
|
||||
GetPage(
|
||||
name: Routes.LANDING,
|
||||
page: () => LandingPage(),
|
||||
//binding: SpaBinding(),
|
||||
),
|
||||
GetPage(
|
||||
name: Routes.LOGIN,
|
||||
page: () => LoginPage(),
|
||||
//binding: SpaBinding(),
|
||||
),
|
||||
GetPage(
|
||||
name: Routes.REGISTER,
|
||||
page: () => RegisterPage(),
|
||||
//binding: SpaBinding(),
|
||||
),
|
||||
GetPage(
|
||||
name: Routes.TRAVEL,
|
||||
page: () => DestinationPage(),
|
||||
binding: DestinationBinding(),
|
||||
)
|
||||
];
|
||||
}
|
||||
@ -8,4 +8,8 @@ abstract class Routes {
|
||||
static const INDEX = '/';
|
||||
// ignore: constant_identifier_names
|
||||
static const SPA = '/spa';
|
||||
static const LANDING = '/landing';
|
||||
static const LOGIN = '/login';
|
||||
static const REGISTER = '/register';
|
||||
static const TRAVEL = '/travel';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user