mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2026-01-11 21:56:17 +00:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
41ac2b0df8 | ||
|
|
52e7d76c9d | ||
|
|
3aa80cacc0 | ||
|
|
dd52c379b4 | ||
|
|
5d073bddf2 |
@@ -25,7 +25,7 @@
|
||||
"downloadingMessage": "Downloading update!",
|
||||
"installingMessage": "Installing update... Hang on!",
|
||||
"errorDownloadMessage": "Unable to download update!",
|
||||
"errorInstallMessage": "Unable to download update!",
|
||||
"errorInstallMessage": "Unable to install update!",
|
||||
"noConnection": "No internet connection"
|
||||
},
|
||||
"applicationItem": {
|
||||
|
||||
@@ -212,7 +212,8 @@ class ManagerAPI {
|
||||
);
|
||||
for (Application app in userApps) {
|
||||
if (app.packageName.startsWith('app.revanced') &&
|
||||
!app.packageName.startsWith('app.revanced.manager.')) {
|
||||
!app.packageName.startsWith('app.revanced.manager.') &&
|
||||
!patchedApps.any((uapp) => uapp.packageName == app.packageName)) {
|
||||
ApplicationWithIcon? application =
|
||||
await DeviceApps.getApp(app.packageName, true)
|
||||
as ApplicationWithIcon?;
|
||||
|
||||
@@ -74,7 +74,10 @@ class HomeViewModel extends BaseViewModel {
|
||||
}
|
||||
|
||||
void _getPatchedApps() {
|
||||
patchedInstalledApps = _managerAPI.getPatchedApps().toList();
|
||||
patchedInstalledApps = _managerAPI
|
||||
.getPatchedApps()
|
||||
.where((app) => app.hasUpdates == false)
|
||||
.toList();
|
||||
patchedUpdatableApps = _managerAPI
|
||||
.getPatchedApps()
|
||||
.where((app) => app.hasUpdates == true)
|
||||
|
||||
@@ -64,8 +64,9 @@ class AppInfoView extends StatelessWidget {
|
||||
CustomCard(
|
||||
child: IntrinsicHeight(
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: <Widget>[
|
||||
!app.isRooted ? const Spacer() : Container(),
|
||||
InkWell(
|
||||
onTap: () => model.openApp(app),
|
||||
child: Column(
|
||||
@@ -92,9 +93,11 @@ class AppInfoView extends StatelessWidget {
|
||||
],
|
||||
),
|
||||
),
|
||||
const Spacer(),
|
||||
VerticalDivider(
|
||||
color: Theme.of(context).canvasColor,
|
||||
),
|
||||
const Spacer(),
|
||||
InkWell(
|
||||
onTap: () => model.showUninstallAlertDialog(
|
||||
context,
|
||||
@@ -125,9 +128,11 @@ class AppInfoView extends StatelessWidget {
|
||||
],
|
||||
),
|
||||
),
|
||||
const Spacer(),
|
||||
VerticalDivider(
|
||||
color: Theme.of(context).canvasColor,
|
||||
),
|
||||
const Spacer(),
|
||||
InkWell(
|
||||
onTap: () {
|
||||
model.navigateToPatcher(app);
|
||||
@@ -157,45 +162,49 @@ 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,
|
||||
app.isRooted ? const Spacer() : Container(),
|
||||
app.isRooted
|
||||
? VerticalDivider(
|
||||
color: Theme.of(context).canvasColor,
|
||||
)
|
||||
: Container(),
|
||||
app.isRooted ? const Spacer() : Container(),
|
||||
app.isRooted
|
||||
? InkWell(
|
||||
onTap: () => model.showUninstallAlertDialog(
|
||||
context,
|
||||
app,
|
||||
true,
|
||||
),
|
||||
const SizedBox(height: 10),
|
||||
I18nText(
|
||||
'appInfoView.unpatchButton',
|
||||
child: Text(
|
||||
'',
|
||||
style: TextStyle(
|
||||
child: Column(
|
||||
mainAxisAlignment:
|
||||
MainAxisAlignment.center,
|
||||
children: <Widget>[
|
||||
Icon(
|
||||
Icons
|
||||
.settings_backup_restore_outlined,
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
.primary,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 10),
|
||||
I18nText(
|
||||
'appInfoView.unpatchButton',
|
||||
child: Text(
|
||||
'',
|
||||
style: TextStyle(
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
.primary,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
: Container(),
|
||||
!app.isRooted ? const Spacer() : Container(),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
@@ -4,7 +4,7 @@ homepage: https://github.com/revanced/revanced-manager
|
||||
|
||||
publish_to: 'none'
|
||||
|
||||
version: 0.0.10+10
|
||||
version: 0.0.11+11
|
||||
|
||||
environment:
|
||||
sdk: ">=2.17.5 <3.0.0"
|
||||
|
||||
Reference in New Issue
Block a user