页面与路由完善

This commit is contained in:
2022-10-20 15:43:24 +08:00
parent e38a5aeeb7
commit 8ad451d4d8
21 changed files with 566 additions and 67 deletions

View File

@@ -1,4 +1,11 @@
import 'package:chat/middleware/auth_middleware.dart';
import 'package:chat/views/contact/firend/profile/index_page.dart';
import 'package:chat/views/contact/firend/profile/more_page.dart';
import 'package:chat/views/contact/firend/recommend/friend_page.dart';
import 'package:chat/views/contact/firend/recommend/group_page.dart';
import 'package:chat/views/contact/firend/recommend/index_page.dart';
import 'package:chat/views/contact/firend/remark/index_page.dart';
import 'package:chat/views/contact/firend/search/index_page.dart';
import 'package:chat/views/contact/group/create/index_page.dart';
import 'package:chat/views/contact/group/index_page.dart';
import 'package:chat/views/contact/group/manage/index_page.dart';
@@ -13,10 +20,13 @@ abstract class ContactRoutes {
static const String friend = '/contact/friend';
static const String friendSearch = '/contact/friend/search';
static const String friendProfile = '/contact/friend/profile';
static const String friendProfileMore = '/contact/friend/profile';
static const String friendRemark = '/contact/friend/profile';
static const String friendProfileMore = '/contact/friend/profile/more';
static const String friendRemark = '/contact/friend/remark';
static const String friendApply = '/contact/friend/profile';
static const String friendRecommend = '/contact/friend/profile';
static const String friendRecommend = '/contact/friend/recommend';
static const String friendRecommendFriend =
'/contact/friend/recommend/friend';
static const String friendRecommendGroup = '/contact/friend/recommend/group';
static const String group = '/contact/group';
static const String groupQrCode = '/contact/group/qrCode';
@@ -40,7 +50,35 @@ abstract class ContactRoutes {
children: [
GetPage(
name: '/search',
page: () => const ContactGroupCreatePage(),
page: () => const ContactFriendSearchPage(),
),
GetPage(
name: '/profile',
page: () => const ContactFriendProfilePage(),
children: [
GetPage(
name: '/more',
page: () => const ContactFriendProfileMorePage(),
),
],
),
GetPage(
name: '/remark',
page: () => const ContactFriendRemarkPage(),
),
GetPage(
name: '/recommend',
page: () => const ContactFriendRecommendPage(),
children: [
GetPage(
name: '/friend',
page: () => const ContactFriendRecommendFriendPage(),
),
GetPage(
name: '/group',
page: () => const ContactFriendRecommendGroupPage(),
),
],
),
],
),