new change to use intaleq_map sdk 04-16-4
This commit is contained in:
32
packages/get/example/lib/routes/app_pages.dart
Normal file
32
packages/get/example/lib/routes/app_pages.dart
Normal file
@@ -0,0 +1,32 @@
|
||||
import 'package:get/get.dart';
|
||||
|
||||
import '../pages/home/bindings/home_binding.dart';
|
||||
import '../pages/home/presentation/views/country_view.dart';
|
||||
import '../pages/home/presentation/views/details_view.dart';
|
||||
import '../pages/home/presentation/views/home_view.dart';
|
||||
|
||||
part 'app_routes.dart';
|
||||
|
||||
// ignore: avoid_classes_with_only_static_members
|
||||
class AppPages {
|
||||
static const INITIAL = Routes.HOME;
|
||||
|
||||
static final routes = [
|
||||
GetPage(
|
||||
name: Routes.HOME,
|
||||
page: () => HomeView(),
|
||||
binding: HomeBinding(),
|
||||
children: [
|
||||
GetPage(
|
||||
name: Routes.COUNTRY,
|
||||
page: () => CountryView(),
|
||||
children: [
|
||||
GetPage(
|
||||
name: Routes.DETAILS,
|
||||
page: () => DetailsView(),
|
||||
),
|
||||
],
|
||||
),
|
||||
]),
|
||||
];
|
||||
}
|
||||
7
packages/get/example/lib/routes/app_routes.dart
Normal file
7
packages/get/example/lib/routes/app_routes.dart
Normal file
@@ -0,0 +1,7 @@
|
||||
part of 'app_pages.dart';
|
||||
|
||||
abstract class Routes {
|
||||
static const HOME = '/home';
|
||||
static const COUNTRY = '/country';
|
||||
static const DETAILS = '/details';
|
||||
}
|
||||
Reference in New Issue
Block a user