update
This commit is contained in:
@ -1,24 +1,38 @@
|
||||
import 'package:get/get_navigation/src/routes/get_route.dart';
|
||||
import 'package:rogapp/pages/home/home_binding.dart';
|
||||
import 'package:rogapp/pages/home/home_page.dart';
|
||||
import 'package:rogapp/pages/map/map_page.dart';
|
||||
import 'package:rogapp/index/index_binding.dart';
|
||||
import 'package:rogapp/index/index_page.dart';
|
||||
import 'package:rogapp/spa/spa_binding.dart';
|
||||
import 'package:rogapp/spa/spa_page.dart';
|
||||
|
||||
|
||||
part 'app_routes.dart';
|
||||
|
||||
class AppPages {
|
||||
static const INITIAL = Routes.HOME;
|
||||
static const MAP = Routes.MAP;
|
||||
// ignore: constant_identifier_names
|
||||
static const INITIAL = Routes.INDEX;
|
||||
// ignore: constant_identifier_names
|
||||
static const SPA = Routes.SPA;
|
||||
|
||||
static final routes = [
|
||||
// GetPage(
|
||||
// name: Routes.HOME,
|
||||
// page: () => HomePage(),
|
||||
// binding: HomeBinding(),
|
||||
// ),
|
||||
// GetPage(
|
||||
// name: Routes.MAP,
|
||||
// page: () => MapPage(),
|
||||
// binding: MapBinding(),
|
||||
// )
|
||||
GetPage(
|
||||
name: Routes.HOME,
|
||||
page: () => HomePage(),
|
||||
binding: HomeBinding(),
|
||||
name: Routes.INDEX,
|
||||
page: () => IndexPage(),
|
||||
binding: IndexBinding(),
|
||||
),
|
||||
GetPage(
|
||||
name: Routes.MAP,
|
||||
page: () => MapPage()
|
||||
name: Routes.SPA,
|
||||
page: () => const SpaPage(),
|
||||
binding: SpaBinding(),
|
||||
)
|
||||
];
|
||||
}
|
||||
@ -2,6 +2,10 @@ part of 'app_pages.dart';
|
||||
|
||||
abstract class Routes {
|
||||
// Main Menu Route
|
||||
static const HOME = '/';
|
||||
static const MAP = '/map';
|
||||
// static const HOME = '/';
|
||||
// static const MAP = '/map';
|
||||
// ignore: constant_identifier_names
|
||||
static const INDEX = '/';
|
||||
// ignore: constant_identifier_names
|
||||
static const SPA = '/spa';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user