Skip to content

Commit

Permalink
feat(app-selector): Improve app item UI to avoid overflow issues (#943)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAabedKhan committed Jun 16, 2023
1 parent 6cc1bd2 commit 58d837d
Showing 1 changed file with 17 additions and 19 deletions.
36 changes: 17 additions & 19 deletions lib/ui/widgets/appSelectorView/installed_app_item.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'dart:typed_data';

Check warning on line 1 in lib/ui/widgets/appSelectorView/installed_app_item.dart

View workflow job for this annotation

GitHub Actions / build

lib/ui/widgets/appSelectorView/installed_app_item.dart is not formatted

import 'package:flutter/material.dart';
import 'package:flutter_i18n/flutter_i18n.dart';
import 'package:revanced_manager/ui/widgets/shared/custom_card.dart';
Expand Down Expand Up @@ -52,26 +51,25 @@ class _InstalledAppItemState extends State<InstalledAppItem> {
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Row(
children: [
Text(
widget.name,
maxLines: 2,
overflow: TextOverflow.visible,
style: const TextStyle(
fontSize: 16,
fontWeight: FontWeight.w500,
),
),
const SizedBox(width: 4),
I18nText(
widget.installedVersion.isEmpty
? 'All versions'
: 'v${widget.installedVersion}',
),
],
Text(
widget.name,
maxLines: 2,
overflow: TextOverflow.visible,
style: const TextStyle(
fontSize: 16,
fontWeight: FontWeight.w500,
),
),
Text(widget.pkgName),
I18nText(
FlutterI18n.translate(
context,
'installed',
translationParams: {
'version':'v${widget.installedVersion}'
},
),
),
Row(
children: [
I18nText(
Expand Down

0 comments on commit 58d837d

Please sign in to comment.