fix: Only show share and install options if patching was successful

This commit is contained in:
Alberto Ponces
2022-09-12 14:20:25 +01:00
parent a3c14e0a51
commit 3bb5e70d1c
10 changed files with 23 additions and 21 deletions

View File

@ -30,7 +30,7 @@ class InstallerView extends StatelessWidget {
),
actions: <Widget>[
Visibility(
visible: !model.isPatching,
visible: !model.isPatching && model.hasErrors,
child: CustomPopupMenu(
onSelected: (value) => model.onMenuSelection(value),
children: {
@ -89,7 +89,7 @@ class InstallerView extends StatelessWidget {
child: Align(
alignment: Alignment.bottomCenter,
child: Visibility(
visible: !model.isPatching,
visible: !model.isPatching && !model.hasErrors,
child: Padding(
padding: const EdgeInsets.all(20.0).copyWith(top: 0.0),
child: Row(