添加路由

This commit is contained in:
bluesea 2024-05-11 11:05:21 +08:00
parent 3d3a6a4004
commit 97356ae70e
2 changed files with 25 additions and 2 deletions

View File

@ -0,0 +1,5 @@
import 'package:get/get.dart';
class CollectionPageController extends GetxController {
}

View File

@ -4,6 +4,13 @@ import 'package:wallpaper/pages/homepage/homepage_view.dart';
import 'package:wallpaper/pages/tabarpage/tabarpage_binding.dart';
import 'package:wallpaper/pages/tabarpage/tabarpage_view.dart';
import 'package:wallpaper/pages/downloadpage/downloadpage_view.dart';
import 'package:wallpaper/pages/downloadpage/downloadpage_binding.dart';
import 'package:wallpaper/pages/collectionpage/collectionpage_view.dart';
import 'package:wallpaper/pages/collectionpage/collectionpage_binding.dart';
import 'package:get/get.dart';
class AppRoutes {
@ -22,8 +29,19 @@ class AppRoutes {
page: ()=> const HomePageView(),
binding: HomePageBinding(),
participatesInRootNavigator: true,
)
),
GetPage(
name: '/downlaod',
page: ()=> const DownloadPageView(),
binding: DownloadPageBinding(),
participatesInRootNavigator: true,
),
GetPage(
name: '/collection',
page: ()=> const CollectionPageView(),
binding: CollectionPageBinding(),
participatesInRootNavigator: true,
),
];
}