Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit a011421

Browse files
committed
fixed: localizedFallbackTitle will not sent if it is null
1 parent 399f787 commit a011421

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

packages/local_auth/lib/auth_strings.dart

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,19 @@ class IOSAuthMessages {
7878
final String? localizedFallbackTitle;
7979

8080
Map<String, String> get args {
81-
return <String, String>{
81+
final args = <String, String>{
8282
'lockOut': lockOut ?? iOSLockOut,
8383
'goToSetting': goToSettingsButton ?? goToSettings,
8484
'goToSettingDescriptionIOS':
8585
goToSettingsDescription ?? iOSGoToSettingsDescription,
8686
'okButton': cancelButton ?? iOSOkButton,
87-
'localizedFallbackTitle': localizedFallbackTitle ?? '',
8887
};
88+
89+
if (localizedFallbackTitle != null) {
90+
args['localizedFallbackTitle'] = localizedFallbackTitle!;
91+
}
92+
93+
return args;
8994
}
9095
}
9196

0 commit comments

Comments
 (0)