组件优化

This commit is contained in:
2022-10-31 16:12:06 +08:00
parent b7f0fe3ac8
commit 5d8dca73d1
12 changed files with 252 additions and 262 deletions

View File

@@ -25,52 +25,35 @@ class _UserSettingPageState extends State<UserSettingPage> {
children: [
ActionItem(
'账号与安全',
isFirst: true,
isLast: true,
onTap: () {
Get.toNamed(UserRoutes.settingSafe);
},
),
const Divider(
height: 0,
color: AppColors.border,
),
const SizedBox(height: 8),
const Divider(
height: 0,
color: AppColors.border,
),
ActionItem(
'新消息通知',
isFirst: true,
onTap: () {
Get.toNamed(UserRoutes.settingSafe);
},
),
const Divider(
height: 0,
color: AppColors.border,
indent: 16,
),
ActionItem(
'隐私权限',
isLast: true,
onTap: () {
Get.toNamed(UserRoutes.settingPrivacy);
},
),
const Divider(
height: 0,
color: AppColors.border,
),
const SizedBox(height: 8),
ActionItem(
'关于ZH-CHAT',
isFirst: true,
onTap: () {
Get.toNamed(UserRoutes.settingAbout);
},
),
const Divider(
height: 0,
color: AppColors.border,
indent: 16,
),
ActionItem(
'帮助与反馈',
onTap: () {
@@ -78,26 +61,18 @@ class _UserSettingPageState extends State<UserSettingPage> {
},
),
const SizedBox(height: 8),
const Divider(
height: 0,
color: AppColors.border,
),
ActionItem(
'版本更新',
isFirst: true,
isLast: true,
onTap: () {},
),
const Divider(
height: 0,
color: AppColors.border,
),
const SizedBox(height: 8),
const Divider(
height: 0,
color: AppColors.border,
),
ActionButton(
'退出',
color: AppColors.primary,
hasTop: true,
hasBottom: true,
color: AppColors.red,
onTap: () async {
OkCancelResult result = await showOkCancelAlertDialog(
style: AdaptiveStyle.iOS,
@@ -113,10 +88,6 @@ class _UserSettingPageState extends State<UserSettingPage> {
}
},
),
const Divider(
height: 0,
color: AppColors.border,
),
],
),
);