This commit is contained in:
2022-11-01 16:57:58 +08:00
parent ec22583ebb
commit 543dd6adb4
4 changed files with 43 additions and 7 deletions

View File

@@ -0,0 +1,15 @@
import 'package:flutter/material.dart';
class UserSettingSafeGooglePage extends StatelessWidget {
const UserSettingSafeGooglePage({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('UserSettingSafeGooglePage'),
),
body: Container(),
);
}
}

View File

@@ -47,6 +47,16 @@ class _UserSettingSafePageState extends State<UserSettingSafePage> {
Get.toNamed(UserRoutes.settingSafeEmail);
},
),
const SizedBox(height: 8),
ActionItem(
'开启两部验证',
extend: (_.userInfo.value.google2fa ?? false) ? '已开启' : '未开启',
isFirst: true,
isLast: true,
onTap: () {
Get.toNamed(UserRoutes.settingSafeGoogle);
},
),
],
);
}),