mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2024-11-10 01:01:56 +01:00
feat(app-selector): Improve app item UI to avoid overflow issues (#943)
This commit is contained in:
parent
6cc1bd21cd
commit
58d837d641
1 changed files with 17 additions and 19 deletions
|
@ -1,5 +1,4 @@
|
||||||
import 'dart:typed_data';
|
import 'dart:typed_data';
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_i18n/flutter_i18n.dart';
|
import 'package:flutter_i18n/flutter_i18n.dart';
|
||||||
import 'package:revanced_manager/ui/widgets/shared/custom_card.dart';
|
import 'package:revanced_manager/ui/widgets/shared/custom_card.dart';
|
||||||
|
@ -52,26 +51,25 @@ class _InstalledAppItemState extends State<InstalledAppItem> {
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Row(
|
Text(
|
||||||
children: [
|
widget.name,
|
||||||
Text(
|
maxLines: 2,
|
||||||
widget.name,
|
overflow: TextOverflow.visible,
|
||||||
maxLines: 2,
|
style: const TextStyle(
|
||||||
overflow: TextOverflow.visible,
|
fontSize: 16,
|
||||||
style: const TextStyle(
|
fontWeight: FontWeight.w500,
|
||||||
fontSize: 16,
|
),
|
||||||
fontWeight: FontWeight.w500,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
const SizedBox(width: 4),
|
|
||||||
I18nText(
|
|
||||||
widget.installedVersion.isEmpty
|
|
||||||
? 'All versions'
|
|
||||||
: 'v${widget.installedVersion}',
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
Text(widget.pkgName),
|
Text(widget.pkgName),
|
||||||
|
I18nText(
|
||||||
|
FlutterI18n.translate(
|
||||||
|
context,
|
||||||
|
'installed',
|
||||||
|
translationParams: {
|
||||||
|
'version':'v${widget.installedVersion}'
|
||||||
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
I18nText(
|
I18nText(
|
||||||
|
|
Loading…
Reference in a new issue