null safety
This commit is contained in:
@@ -54,7 +54,7 @@ Future<void> showConfirmDialog(
|
||||
FlatButton(
|
||||
color: Colors.grey[300],
|
||||
child: Text(
|
||||
AppTranslations.of(context).text('btn.cancel'),
|
||||
AppTranslations.of(context)!.text('btn.cancel'),
|
||||
style: Provider.of<LanguageModel>(context).isEng
|
||||
? TextStyle()
|
||||
: TextStyle(fontFamily: 'Myanmar3'),
|
||||
@@ -67,7 +67,7 @@ Future<void> showConfirmDialog(
|
||||
),
|
||||
FlatButton(
|
||||
color: primaryColor,
|
||||
child: Text(AppTranslations.of(context).text('btn.ok'),
|
||||
child: Text(AppTranslations.of(context)!.text('btn.ok'),
|
||||
style: Provider.of<LanguageModel>(context).isEng
|
||||
? TextStyle(
|
||||
color: Colors.white,
|
||||
@@ -367,7 +367,7 @@ Widget fcsButton(BuildContext context, String text,
|
||||
}
|
||||
|
||||
String getLocalString(BuildContext context, String key) {
|
||||
return AppTranslations.of(context).text(key);
|
||||
return AppTranslations.of(context)!.text(key);
|
||||
}
|
||||
|
||||
void showToast(GlobalKey key, String text) {
|
||||
|
||||
Reference in New Issue
Block a user