页面逻辑

This commit is contained in:
2022-10-20 16:08:27 +08:00
parent 8ad451d4d8
commit 0a81762ba1
12 changed files with 197 additions and 25 deletions

View File

@@ -1,12 +1,15 @@
import 'package:chat/middleware/auth_middleware.dart';
import 'package:chat/views/contact/index/index_page.dart';
import 'package:chat/views/user/qr_code/index_page.dart';
import 'package:chat/views/user/setting/index_page.dart';
import 'package:get/get.dart';
abstract class UserRoutes {
/// 身份验证页面
static const String index = '/user';
static const String qrCode = '/user/qrCode';
static const String setting = '/user/setting';
static const String share = '/user/share';
static GetPage router = GetPage(
name: UserRoutes.index,
@@ -19,6 +22,10 @@ abstract class UserRoutes {
name: '/qrCode',
page: () => const UserQrCodePage(),
),
GetPage(
name: '/setting',
page: () => const UserSettingPage(),
),
],
);
}