mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2026-01-21 02:03:57 +00:00
fix: Add Unpatch option on App Info view
This commit is contained in:
@@ -64,7 +64,7 @@ class AppInfoView extends StatelessWidget {
|
||||
CustomCard(
|
||||
child: IntrinsicHeight(
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: <Widget>[
|
||||
InkWell(
|
||||
onTap: () => model.openApp(app),
|
||||
@@ -96,8 +96,11 @@ class AppInfoView extends StatelessWidget {
|
||||
color: Theme.of(context).canvasColor,
|
||||
),
|
||||
InkWell(
|
||||
onTap: () =>
|
||||
model.showUninstallAlertDialog(context, app),
|
||||
onTap: () => model.showUninstallAlertDialog(
|
||||
context,
|
||||
app,
|
||||
false,
|
||||
),
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: <Widget>[
|
||||
@@ -154,6 +157,45 @@ class AppInfoView extends StatelessWidget {
|
||||
],
|
||||
),
|
||||
),
|
||||
Visibility(
|
||||
visible: app.isRooted,
|
||||
child: VerticalDivider(
|
||||
color: Theme.of(context).canvasColor,
|
||||
),
|
||||
),
|
||||
Visibility(
|
||||
visible: app.isRooted,
|
||||
child: InkWell(
|
||||
onTap: () => model.showUninstallAlertDialog(
|
||||
context,
|
||||
app,
|
||||
true,
|
||||
),
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: <Widget>[
|
||||
Icon(
|
||||
Icons.settings_backup_restore_outlined,
|
||||
color:
|
||||
Theme.of(context).colorScheme.primary,
|
||||
),
|
||||
const SizedBox(height: 10),
|
||||
I18nText(
|
||||
'appInfoView.unpatchButton',
|
||||
child: Text(
|
||||
'',
|
||||
style: TextStyle(
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
.primary,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user