主要四个页面的基础页面
This commit is contained in:
24
lib/routes/contact_routes.dart
Normal file
24
lib/routes/contact_routes.dart
Normal file
@@ -0,0 +1,24 @@
|
||||
import 'package:chat/middleware/auth_middleware.dart';
|
||||
import 'package:chat/views/contact/group/index_page.dart';
|
||||
import 'package:chat/views/contact/index/index_page.dart';
|
||||
import 'package:get/get.dart';
|
||||
|
||||
abstract class ContactRoutes {
|
||||
/// 身份验证页面
|
||||
static const String index = '/contact';
|
||||
static const String group = '/contact/group';
|
||||
|
||||
static GetPage router = GetPage(
|
||||
name: ContactRoutes.index,
|
||||
middlewares: [
|
||||
EnsureAuthMiddleware(),
|
||||
],
|
||||
page: () => const ContactPage(),
|
||||
children: [
|
||||
GetPage(
|
||||
name: '/group',
|
||||
page: () => const ContactGroupPage(),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user