From fa00407e13f1ccf429ea6b7c38c1be623837813a Mon Sep 17 00:00:00 2001 From: datang Date: Mon, 8 Aug 2022 11:05:57 +0800 Subject: [PATCH] qqqq --- lib/ui/user/user_page.dart | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/lib/ui/user/user_page.dart b/lib/ui/user/user_page.dart index 4e23477..38919d0 100644 --- a/lib/ui/user/user_page.dart +++ b/lib/ui/user/user_page.dart @@ -15,6 +15,7 @@ import 'package:project_telephony/utils/permissionutils.dart'; import 'package:telephony/telephony.dart'; import '../../permission.dart'; +import '../home/home_page.dart'; class UserPage extends StatefulWidget { const UserPage({Key? key}) : super(key: key); @@ -32,7 +33,6 @@ class _UserPageState extends State { bool vle = false; bool tooken = true; - @override Widget build(BuildContext context) { return CloudScaffold( @@ -56,9 +56,7 @@ class _UserPageState extends State { PloneBottom( border: false, onTap: () { - PermissionUtils.requestAllPermission(); - - // Get.to(() => const HomePage()); + Get.to(() => const HomePage()); }, textColor: const Color(0xFF1890FF), color1: const Color(0xFFEBF5FF), @@ -253,15 +251,14 @@ class _UserPageState extends State { Permission.sms, Permission.phone, ]; - PermissionHelper.check(permissions, - onSuccess: () { - print('onSuccess'); - }, onFailed: () { - print('onFailed'); - }, onOpenSetting: () { - print('onOpenSetting'); - openAppSettings(); - }); + PermissionHelper.check(permissions, onSuccess: () { + print('onSuccess'); + }, onFailed: () { + print('onFailed'); + }, onOpenSetting: () { + print('onOpenSetting'); + openAppSettings(); + }); setState(() { vle = value; });