Skip to content

Commit

Permalink
fix(App Selector): Unable to select APK from storage when asked to (R…
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAabedKhan authored Nov 22, 2023
1 parent 4e9f3fe commit 7897827
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/ui/views/app_selector/app_selector_viewmodel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ class AppSelectorViewModel extends BaseViewModel {
Future showSelectFromStorageDialog(BuildContext context) async {
return showDialog(
context: context,
builder: (context) => SimpleDialog(
builder: (innerContext) => SimpleDialog(
alignment: Alignment.center,
contentPadding:
const EdgeInsets.symmetric(horizontal: 20, vertical: 20),
Expand All @@ -206,7 +206,7 @@ class AppSelectorViewModel extends BaseViewModel {
Icon(
Icons.block,
size: 28,
color: Theme.of(context).colorScheme.primary,
color: Theme.of(innerContext).colorScheme.primary,
),
const SizedBox(height: 20),
I18nText(
Expand Down Expand Up @@ -234,7 +234,7 @@ class AppSelectorViewModel extends BaseViewModel {
const SizedBox(height: 30),
CustomMaterialButton(
onPressed: () async {
Navigator.pop(context);
Navigator.pop(innerContext);
await selectAppFromStorage(context);
},
label: Row(
Expand All @@ -250,7 +250,7 @@ class AppSelectorViewModel extends BaseViewModel {
CustomMaterialButton(
isFilled: false,
onPressed: () {
Navigator.pop(context);
Navigator.pop(innerContext);
},
label: Row(
mainAxisAlignment: MainAxisAlignment.center,
Expand Down

0 comments on commit 7897827

Please sign in to comment.