feat(app-selector): Improve app item UI to avoid overflow issues (#943)

This commit is contained in:
Aabed Khan 2023-06-16 12:49:55 +05:45 committed by GitHub
parent 6cc1bd21cd
commit 58d837d641
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,4 @@
import 'dart:typed_data';
import 'package:flutter/material.dart';
import 'package:flutter_i18n/flutter_i18n.dart';
import 'package:revanced_manager/ui/widgets/shared/custom_card.dart';
@ -52,8 +51,6 @@ class _InstalledAppItemState extends State<InstalledAppItem> {
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Row(
children: [
Text(
widget.name,
maxLines: 2,
@ -63,15 +60,16 @@ class _InstalledAppItemState extends State<InstalledAppItem> {
fontWeight: FontWeight.w500,
),
),
const SizedBox(width: 4),
I18nText(
widget.installedVersion.isEmpty
? 'All versions'
: 'v${widget.installedVersion}',
),
],
),
Text(widget.pkgName),
I18nText(
FlutterI18n.translate(
context,
'installed',
translationParams: {
'version':'v${widget.installedVersion}'
},
),
),
Row(
children: [
I18nText(