页面结构初始化
This commit is contained in:
15
lib/router/app_pages.dart
Normal file
15
lib/router/app_pages.dart
Normal 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()),
|
||||
];
|
||||
}
|
Reference in New Issue
Block a user