mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
fix(patch-item): remove redundant patch version completely (#1059)
https://github.com/ReVanced/revanced-patches/pull/2709
This commit is contained in:
parent
c27ca08d3a
commit
096b315701
@ -8,7 +8,6 @@ class Patch {
|
|||||||
Patch({
|
Patch({
|
||||||
required this.name,
|
required this.name,
|
||||||
required this.description,
|
required this.description,
|
||||||
required this.version,
|
|
||||||
required this.excluded,
|
required this.excluded,
|
||||||
required this.dependencies,
|
required this.dependencies,
|
||||||
required this.compatiblePackages,
|
required this.compatiblePackages,
|
||||||
@ -17,7 +16,6 @@ class Patch {
|
|||||||
factory Patch.fromJson(Map<String, dynamic> json) => _$PatchFromJson(json);
|
factory Patch.fromJson(Map<String, dynamic> json) => _$PatchFromJson(json);
|
||||||
final String name;
|
final String name;
|
||||||
final String description;
|
final String description;
|
||||||
final String version;
|
|
||||||
final bool excluded;
|
final bool excluded;
|
||||||
final List<String> dependencies;
|
final List<String> dependencies;
|
||||||
final List<Package> compatiblePackages;
|
final List<Package> compatiblePackages;
|
||||||
|
@ -166,7 +166,6 @@ class _PatchesSelectorViewState extends State<PatchesSelectorView> {
|
|||||||
(patch) => PatchItem(
|
(patch) => PatchItem(
|
||||||
name: patch.name,
|
name: patch.name,
|
||||||
simpleName: patch.getSimpleName(),
|
simpleName: patch.getSimpleName(),
|
||||||
version: patch.version,
|
|
||||||
description: patch.description,
|
description: patch.description,
|
||||||
packageVersion: model.getAppVersion(),
|
packageVersion: model.getAppVersion(),
|
||||||
supportedPackageVersions:
|
supportedPackageVersions:
|
||||||
|
@ -59,7 +59,7 @@ class PatchSelectorCard extends StatelessWidget {
|
|||||||
String _getPatchesSelection() {
|
String _getPatchesSelection() {
|
||||||
String text = '';
|
String text = '';
|
||||||
for (final Patch p in locator<PatcherViewModel>().selectedPatches) {
|
for (final Patch p in locator<PatcherViewModel>().selectedPatches) {
|
||||||
text += '\u2022 ${p.getSimpleName()} (v${p.version})\n';
|
text += '\u2022 ${p.getSimpleName()}\n';
|
||||||
}
|
}
|
||||||
return text.substring(0, text.length - 1);
|
return text.substring(0, text.length - 1);
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,6 @@ class PatchItem extends StatefulWidget {
|
|||||||
required this.name,
|
required this.name,
|
||||||
required this.simpleName,
|
required this.simpleName,
|
||||||
required this.description,
|
required this.description,
|
||||||
required this.version,
|
|
||||||
required this.packageVersion,
|
required this.packageVersion,
|
||||||
required this.supportedPackageVersions,
|
required this.supportedPackageVersions,
|
||||||
required this.isUnsupported,
|
required this.isUnsupported,
|
||||||
@ -25,7 +24,6 @@ class PatchItem extends StatefulWidget {
|
|||||||
final String name;
|
final String name;
|
||||||
final String simpleName;
|
final String simpleName;
|
||||||
final String description;
|
final String description;
|
||||||
final String version;
|
|
||||||
final String packageVersion;
|
final String packageVersion;
|
||||||
final List<String> supportedPackageVersions;
|
final List<String> supportedPackageVersions;
|
||||||
final bool isUnsupported;
|
final bool isUnsupported;
|
||||||
@ -90,14 +88,6 @@ class _PatchItemState extends State<PatchItem> {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
const SizedBox(height: 1),
|
|
||||||
Text(
|
|
||||||
widget.version,
|
|
||||||
style: TextStyle(
|
|
||||||
fontSize: 14,
|
|
||||||
color: Theme.of(context).colorScheme.secondary,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
const SizedBox(height: 4),
|
const SizedBox(height: 4),
|
||||||
Text(
|
Text(
|
||||||
widget.description,
|
widget.description,
|
||||||
|
Loading…
Reference in New Issue
Block a user