Skip to content

Commit

Permalink
feat: shorter permanentDeniedFeedback messages of permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
ashuvssut committed Apr 2, 2023
1 parent 2613fe5 commit 3550949
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions lib/components/permission_manager/permissions/contacts.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import 'package:permission_handler/permission_handler.dart';
import 'package:flutter/material.dart';

class ContactsPerms {
static String permanentDeniedFeedback =
'Enable SMS permissions from device settings else you will be unable to add trusted contacts.';
static String permanentDeniedFeedback = 'No Contact permissions. Unable to add trusted contacts.';

static Future<PermissionStatus> check() async {
return await Permission.contacts.status;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'package:flutter/material.dart';

class GeolocationPerms {
static String permanentDeniedFeedback =
'Enable SMS location permission from device settings else App will be unable to add you cuurent location info in your SOS SMS';
'No location permission. Unable to add location info in your SOS message';

static Future<PermissionStatus> check() async {
return await Permission.location.status;
Expand Down
2 changes: 1 addition & 1 deletion lib/components/permission_manager/permissions/sms.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'package:flutter/material.dart';

class SMSPerms {
static String permanentDeniedFeedback =
'Enable SMS permissions from device settings else App will be unable to send SOS SMS to your added trusted contacts';
'No SMS permissions. Unable to send SOS SMS to your trusted contacts';

static Future<PermissionStatus> check() async {
return await Permission.sms.status;
Expand Down

0 comments on commit 3550949

Please sign in to comment.