From 8544be550f5b2d350bdc18a18e5ec801f0c6add6 Mon Sep 17 00:00:00 2001 From: GabM3 Date: Thu, 19 Oct 2023 16:00:58 +0200 Subject: [PATCH] fix: `Continue` and `Cancel` button's strings in permission dialog --- CHANGELOG.md | 4 ++++ .../permissions/widgets/ask_allow_permission_dialog.dart | 6 +++--- pubspec.yaml | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 384bdfc..d810fd0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGELOG +## 0.2.2 +> 2023-10-19 +- fix: `Continue` and `Cancel` button's strings in permission dialog + ## 0.2.1 > 2023-08-11 - feat: update Dio version diff --git a/lib/src/features/permissions/widgets/ask_allow_permission_dialog.dart b/lib/src/features/permissions/widgets/ask_allow_permission_dialog.dart index 3b0ba94..82eb906 100644 --- a/lib/src/features/permissions/widgets/ask_allow_permission_dialog.dart +++ b/lib/src/features/permissions/widgets/ask_allow_permission_dialog.dart @@ -62,11 +62,11 @@ class ConfirmAllowPermissionsDialog actions: [ TextButton( onPressed: state.canRequest ? () => permissionBloc.confirmRequest(false) : null, - child: notAllowLabel ?? const Text('Not allow'), + child: notAllowLabel ?? const Text('Cancel'), ), ElevatedButton( onPressed: state.canRequest ? () => permissionBloc.confirmRequest(true) : null, - child: allowLabel ?? const Text('Allow'), + child: allowLabel ?? const Text('Continue'), ), ], ), @@ -130,7 +130,7 @@ class OrderAllowPermissionDialog extends onPressed: _delegateMainButtonPress(context, permissionBloc, state), child: state.isPermanentlyDenied ? settingsLabel ?? const Text('Settings') - : allowLabel ?? const Text('Allow'), + : allowLabel ?? const Text('Continue'), ), ], ); diff --git a/pubspec.yaml b/pubspec.yaml index 28f4fa4..dcd0df2 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: kuama_flutter description: A new Flutter project. -version: 0.2.1 +version: 0.2.2 publish_to: 'none' environment: