fix(patch-item): remove redundant patch version completely (#1059)

https://github.com/ReVanced/revanced-patches/pull/2709
This commit is contained in:
aAbed
2023-07-29 15:06:30 +05:45
committed by GitHub
parent c27ca08d3a
commit 096b315701
4 changed files with 1 additions and 14 deletions

View File

@ -59,7 +59,7 @@ class PatchSelectorCard extends StatelessWidget {
String _getPatchesSelection() {
String text = '';
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);
}

View File

@ -14,7 +14,6 @@ class PatchItem extends StatefulWidget {
required this.name,
required this.simpleName,
required this.description,
required this.version,
required this.packageVersion,
required this.supportedPackageVersions,
required this.isUnsupported,
@ -25,7 +24,6 @@ class PatchItem extends StatefulWidget {
final String name;
final String simpleName;
final String description;
final String version;
final String packageVersion;
final List<String> supportedPackageVersions;
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),
Text(
widget.description,