浏览代码

minor fix

ashilkn 2 年之前
父节点
当前提交
dd1bba1094
共有 2 个文件被更改,包括 7 次插入4 次删除
  1. 1 1
      lib/ui/account/delete_account_page.dart
  2. 6 3
      lib/ui/settings/account_section_widget.dart

+ 1 - 1
lib/ui/account/delete_account_page.dart

@@ -143,7 +143,7 @@ class DeleteAccountPage extends StatelessWidget {
     DeleteChallengeResponse response,
     DeleteChallengeResponse response,
   ) async {
   ) async {
     final hasAuthenticatedOrNoLocalAuth =
     final hasAuthenticatedOrNoLocalAuth =
-        await LocalAuthenticationService.instance.requestAuthentication(
+        await LocalAuthenticationService.instance.requestLocalAuthentication(
       context,
       context,
       "Please authenticate to initiate account deletion",
       "Please authenticate to initiate account deletion",
     );
     );

+ 6 - 3
lib/ui/settings/account_section_widget.dart

@@ -37,7 +37,8 @@ class AccountSectionWidgetState extends State<AccountSectionWidget> {
           behavior: HitTestBehavior.translucent,
           behavior: HitTestBehavior.translucent,
           onTap: () async {
           onTap: () async {
             final hasAuthenticatedOrNoLocalAuth =
             final hasAuthenticatedOrNoLocalAuth =
-                await LocalAuthenticationService.instance.requestAuthentication(
+                await LocalAuthenticationService.instance
+                    .requestLocalAuthentication(
               context,
               context,
               "Please authenticate to view your recovery key",
               "Please authenticate to view your recovery key",
             );
             );
@@ -70,7 +71,8 @@ class AccountSectionWidgetState extends State<AccountSectionWidget> {
           behavior: HitTestBehavior.translucent,
           behavior: HitTestBehavior.translucent,
           onTap: () async {
           onTap: () async {
             final hasAuthenticatedOrNoLocalAuth =
             final hasAuthenticatedOrNoLocalAuth =
-                await LocalAuthenticationService.instance.requestAuthentication(
+                await LocalAuthenticationService.instance
+                    .requestLocalAuthentication(
               context,
               context,
               "Please authenticate to change your email",
               "Please authenticate to change your email",
             );
             );
@@ -95,7 +97,8 @@ class AccountSectionWidgetState extends State<AccountSectionWidget> {
           behavior: HitTestBehavior.translucent,
           behavior: HitTestBehavior.translucent,
           onTap: () async {
           onTap: () async {
             final hasAuthenticatedOrNoLocalAuth =
             final hasAuthenticatedOrNoLocalAuth =
-                await LocalAuthenticationService.instance.requestAuthentication(
+                await LocalAuthenticationService.instance
+                    .requestLocalAuthentication(
               context,
               context,
               "Please authenticate to change your password",
               "Please authenticate to change your password",
             );
             );