mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-06-12 04:37:37 +02:00
feat: Add a confirmation dialog to update Manager button
This commit is contained in:
@ -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,
|
||||
|
@ -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':
|
||||
|
Reference in New Issue
Block a user