changed imports of AppLocalization
Also added beneficiary validation while quick pay within bank
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
||||
import '../../../l10n/app_localizations.dart';
|
||||
|
||||
import 'dart:developer';
|
||||
|
||||
@@ -155,7 +155,7 @@ class _MPinScreenState extends State<MPinScreen> {
|
||||
['1', '2', '3'],
|
||||
['4', '5', '6'],
|
||||
['7', '8', '9'],
|
||||
['Enter', '0', '<']
|
||||
['Enter', '0', '<'],
|
||||
];
|
||||
|
||||
return Column(
|
||||
@@ -174,8 +174,9 @@ class _MPinScreenState extends State<MPinScreen> {
|
||||
_handleComplete();
|
||||
} else {
|
||||
setState(() {
|
||||
errorText =
|
||||
AppLocalizations.of(context).pleaseEnter4Digits;
|
||||
errorText = AppLocalizations.of(
|
||||
context,
|
||||
).pleaseEnter4Digits;
|
||||
});
|
||||
}
|
||||
} else if (key.isNotEmpty) {
|
||||
@@ -238,8 +239,10 @@ class _MPinScreenState extends State<MPinScreen> {
|
||||
if (errorText != null)
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(top: 8.0),
|
||||
child:
|
||||
Text(errorText!, style: const TextStyle(color: Colors.red)),
|
||||
child: Text(
|
||||
errorText!,
|
||||
style: const TextStyle(color: Colors.red),
|
||||
),
|
||||
),
|
||||
const Spacer(),
|
||||
buildNumberPad(),
|
||||
|
Reference in New Issue
Block a user