first commit
This commit is contained in:
32
siro_rider/packages/get/example/lib/routes/app_pages.dart
Normal file
32
siro_rider/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(),
|
||||
),
|
||||
],
|
||||
),
|
||||
]),
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user