页面结构初始化

This commit is contained in:
guozhigq
2023-04-18 11:02:19 +08:00
parent aae24126ce
commit aaccfe4542
17 changed files with 150 additions and 101 deletions

15
lib/router/app_pages.dart Normal file
View File

@ -0,0 +1,15 @@
import 'package:get/get.dart';
import 'package:pilipala/pages/home/index.dart';
import 'package:pilipala/pages/hot/index.dart';
import 'package:pilipala/pages/video/detail/index.dart';
class Routes {
static final List<GetPage> getPages = [
// 首页(推荐)
GetPage(name: '/', page: () => const HomePage()),
// 热门
GetPage(name: '/hot', page: () => const HotPage()),
// 视频详情
GetPage(name: '/video', page: () => const VideoDetailPage()),
];
}