feat: add App Info View

This commit is contained in:
Alberto Ponces
2022-09-05 13:43:13 +01:00
parent 5e8e090e34
commit 2944a2b788
13 changed files with 433 additions and 25 deletions

View File

@ -59,8 +59,7 @@ class AppSelectorViewModel extends BaseViewModel {
apkFilePath: result.files.single.path!,
icon: application.icon,
patchDate: DateTime.now(),
isRooted: _isRooted,
isFromStorage: true,
isRooted: false,
);
locator<PatcherViewModel>().selectedPatches.clear();
locator<PatcherViewModel>().notifyListeners();

View File

@ -70,7 +70,6 @@ class InstallerView extends StatelessWidget {
label: model.isInstalled
? I18nText('installerView.openButton')
: I18nText('installerView.installButton'),
isFilled: true,
isExpanded: true,
onPressed: () {
if (model.isInstalled) {

View File

@ -99,7 +99,7 @@ class InstallerViewModel extends BaseViewModel {
if (_app != null && _patches.isNotEmpty) {
String apkFilePath = _app!.apkFilePath;
try {
if (_app!.isRooted && !_app!.isFromStorage) {
if (_app!.isRooted) {
update(0.0, '', 'Checking if an old patched version exists');
bool oldExists = await _patcherAPI.checkOldPatch(_app!);
if (oldExists) {