mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-06-12 12:47:37 +02:00
fix: unblock UI while running Patcher (#4)
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_i18n/flutter_i18n.dart';
|
||||
import 'package:fluttertoast/fluttertoast.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
import 'package:revanced_manager/app/app.locator.dart';
|
||||
import 'package:revanced_manager/ui/views/installer/installer_viewmodel.dart';
|
||||
@ -21,7 +22,7 @@ class InstallerView extends StatelessWidget {
|
||||
builder: (context, model, child) => WillPopScope(
|
||||
child: Scaffold(
|
||||
floatingActionButton: Visibility(
|
||||
visible: model.showButtons,
|
||||
visible: !model.isPatching,
|
||||
child: FloatingActionButton.extended(
|
||||
onPressed: () =>
|
||||
model.isInstalled ? model.openApp() : model.installResult(),
|
||||
@ -54,7 +55,7 @@ class InstallerView extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
Visibility(
|
||||
visible: model.showButtons,
|
||||
visible: !model.isPatching,
|
||||
child: IconButton(
|
||||
icon: const Icon(Icons.share),
|
||||
onPressed: () => model.shareResult(),
|
||||
|
Reference in New Issue
Block a user