feat: Add a confirmation dialog to update Manager button

This commit is contained in:
Alberto Ponces
2022-09-07 13:03:54 +01:00
parent 351b04dd46
commit 80eeafaf2b
5 changed files with 40 additions and 13 deletions

View File

@ -45,9 +45,9 @@ class AppInfoViewModel extends BaseViewModel {
return showDialog(
context: context,
builder: (context) => AlertDialog(
title: I18nText('appInfoView.alertDialogTitle'),
title: I18nText('appInfoView.rootDialogTitle'),
backgroundColor: Theme.of(context).colorScheme.secondaryContainer,
content: I18nText('appInfoView.errorDialogText'),
content: I18nText('appInfoView.rootDialogText'),
actions: [
CustomMaterialButton(
label: I18nText('okButton'),
@ -60,9 +60,9 @@ class AppInfoViewModel extends BaseViewModel {
return showDialog(
context: context,
builder: (context) => AlertDialog(
title: I18nText('appInfoView.alertDialogTitle'),
title: I18nText('appInfoView.uninstallDialogTitle'),
backgroundColor: Theme.of(context).colorScheme.secondaryContainer,
content: I18nText('appInfoView.alertDialogText'),
content: I18nText('appInfoView.uninstallDialogText'),
actions: [
CustomMaterialButton(
isFilled: false,

View File

@ -144,10 +144,10 @@ class _PatchItemState extends State<PatchItem> {
return showDialog(
context: context,
builder: (context) => AlertDialog(
title: I18nText('patchItem.alertDialogTitle'),
title: I18nText('patchItem.unsupportedDialogTitle'),
backgroundColor: Theme.of(context).colorScheme.secondaryContainer,
content: I18nText(
'patchItem.alertDialogText',
'patchItem.unsupportedDialogText',
translationParams: {
'packageVersion': widget.packageVersion,
'supportedVersions':