user-page

This commit is contained in:
2022-10-26 13:41:29 +08:00
parent afee57df73
commit 099d2b4423
10 changed files with 132 additions and 54 deletions

View File

@@ -29,6 +29,21 @@ class _UserPageState extends State<UserPage> {
height: 0,
color: AppColors.border,
),
ActionItem(
'服务',
onTap: () {
Get.toNamed(UserRoutes.share);
},
),
const Divider(
height: 0,
color: AppColors.border,
),
const SizedBox(height: 8),
const Divider(
height: 0,
color: AppColors.border,
),
ActionItem(
'分享邀请',
onTap: () {
@@ -41,18 +56,7 @@ class _UserPageState extends State<UserPage> {
indent: 16,
),
ActionItem(
'安全设置',
onTap: () {
Get.toNamed(UserRoutes.safe);
},
),
const Divider(
height: 0,
color: AppColors.border,
indent: 16,
),
ActionItem(
'设置中心',
'设置',
onTap: () {
Get.toNamed(UserRoutes.setting);
},

View File

@@ -40,11 +40,16 @@ class UserTopBar extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
_.userInfo.value.nickname ?? '',
style: const TextStyle(
fontSize: 22,
fontWeight: FontWeight.w400,
InkWell(
onTap: () {
Get.toNamed(UserRoutes.info);
},
child: Text(
_.userInfo.value.nickname ?? '',
style: const TextStyle(
fontSize: 22,
fontWeight: FontWeight.w400,
),
),
),
Row(