Compare commits

...

3 Commits

Author SHA1 Message Date
semantic-release-bot
f4dea6e58c chore(release): 1.19.0-dev.16 [skip ci]
## Features
* Hide the Install button during installation (#1633) ([Eray Erdin (&mut self)](3e696d6847))
## Bug Fixes
* Show version label correctly ([oSumAtrIX](c72d10ac85))
2024-02-25 20:57:07 +00:00
oSumAtrIX
c72d10ac85 fix: Show version label correctly 2024-02-25 21:49:38 +01:00
Eray Erdin (&mut self)
3e696d6847 feat: Hide the Install button during installation (#1633)
Co-authored-by: Ushie <ushiekane@gmail.com>
2024-02-25 23:48:52 +03:00
4 changed files with 7 additions and 3 deletions

View File

@@ -30,7 +30,8 @@ class InstallerView extends StatelessWidget {
bottom: model.isPatching,
child: Scaffold(
floatingActionButton: Visibility(
visible: !model.isPatching && !model.hasErrors,
visible:
!model.isPatching && !model.hasErrors && !model.isInstalling,
child: HapticFloatingActionButtonExtended(
label: Text(
model.isInstalled

View File

@@ -37,6 +37,7 @@ class InstallerViewModel extends BaseViewModel {
String headerLogs = '';
bool isRooted = false;
bool isPatching = true;
bool isInstalling = false;
bool isInstalled = false;
bool hasErrors = false;
bool isCanceled = false;
@@ -437,6 +438,7 @@ class InstallerViewModel extends BaseViewModel {
}
Future<void> installResult(BuildContext context, bool installAsRoot) async {
isInstalling = true;
try {
_app.isRooted = installAsRoot;
if (headerLogs != 'Installing...') {
@@ -486,6 +488,7 @@ class InstallerViewModel extends BaseViewModel {
print(e);
}
}
isInstalling = false;
}
void exportResult() {

View File

@@ -110,7 +110,7 @@ class _InstalledAppItemState extends State<InstalledAppItem> {
Text(
t.suggested(
version: widget.suggestedVersion.isEmpty
? Text(t.appSelectorCard.anyVersion)
? t.appSelectorCard.anyVersion
: 'v${widget.suggestedVersion}',
),
),

View File

@@ -4,7 +4,7 @@ homepage: https://github.com/ReVanced/revanced-manager
publish_to: 'none'
version: 1.19.0-dev.15+101900015
version: 1.19.0-dev.16+101900016
environment:
sdk: '>=3.0.0 <4.0.0'