mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-05-03 15:24:25 +02:00
feat: change continue anyways
to cancel
This commit is contained in:
parent
affba669ce
commit
cfc866bef2
@ -74,7 +74,6 @@
|
|||||||
"viewTitle": "Select an application",
|
"viewTitle": "Select an application",
|
||||||
"searchBarHint": "Search applications",
|
"searchBarHint": "Search applications",
|
||||||
"selectFromStorageButton": "Select from storage",
|
"selectFromStorageButton": "Select from storage",
|
||||||
"continueAnywayButton": "Continue anyway",
|
|
||||||
"storageButton": "Storage",
|
"storageButton": "Storage",
|
||||||
"errorMessage": "Unable to use selected application",
|
"errorMessage": "Unable to use selected application",
|
||||||
"downloadToast": "Download function is not available yet",
|
"downloadToast": "Download function is not available yet",
|
||||||
|
@ -116,7 +116,6 @@ class _AppSelectorViewState extends State<AppSelectorView> {
|
|||||||
)
|
)
|
||||||
: model.showSelectFromStorageDialog(
|
: model.showSelectFromStorageDialog(
|
||||||
context,
|
context,
|
||||||
app,
|
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
@ -78,8 +78,7 @@ class AppSelectorViewModel extends BaseViewModel {
|
|||||||
locator<PatcherViewModel>().loadLastSelectedPatches();
|
locator<PatcherViewModel>().loadLastSelectedPatches();
|
||||||
}
|
}
|
||||||
|
|
||||||
Future showSelectFromStorageDialog(
|
Future showSelectFromStorageDialog(BuildContext context) async {
|
||||||
BuildContext context, ApplicationWithIcon app) async {
|
|
||||||
return showDialog(
|
return showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (context) => SimpleDialog(
|
builder: (context) => SimpleDialog(
|
||||||
@ -133,19 +132,18 @@ class AppSelectorViewModel extends BaseViewModel {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
const SizedBox(height: 10),
|
||||||
CustomMaterialButton(
|
CustomMaterialButton(
|
||||||
isFilled: false,
|
isFilled: false,
|
||||||
onPressed: () => selectApp(app).then(
|
onPressed: () {
|
||||||
(_) {
|
|
||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
},
|
},
|
||||||
),
|
|
||||||
label: Row(
|
label: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
const SizedBox(width: 10),
|
const SizedBox(width: 10),
|
||||||
I18nText('appSelectorView.continueAnywayButton'),
|
I18nText('cancelButton'),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user