From 40888c07f3cc54529989b26c4122c93ad8211554 Mon Sep 17 00:00:00 2001 From: EvadeMaster <93124920+EvadeMaster@users.noreply.github.com> Date: Mon, 30 Jan 2023 19:07:25 +0700 Subject: [PATCH] feat: fix overflow text & separate version from patch name (#666) * chore: Add note * feat: Fix overflow text & seperate version from patch title * feat: Fix overflow text & separate version from patch name --- .../patchesSelectorView/patch_item.dart | 34 ++++++++++--------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/lib/ui/widgets/patchesSelectorView/patch_item.dart b/lib/ui/widgets/patchesSelectorView/patch_item.dart index 0cb75c15..6471423f 100644 --- a/lib/ui/widgets/patchesSelectorView/patch_item.dart +++ b/lib/ui/widgets/patchesSelectorView/patch_item.dart @@ -75,25 +75,27 @@ class _PatchItemState extends State { Row( crossAxisAlignment: CrossAxisAlignment.end, children: [ - Text( - widget.simpleName, - maxLines: 2, - overflow: TextOverflow.visible, - style: const TextStyle( - fontSize: 16, - fontWeight: FontWeight.w600, - ), - ), - const SizedBox(width: 6), - Text( - widget.version, - style: TextStyle( - fontSize: 16, - color: Theme.of(context).colorScheme.secondary, + Expanded( + child: Text( + widget.simpleName, + maxLines: 2, + overflow: TextOverflow.visible, + style: const TextStyle( + fontSize: 16, + fontWeight: FontWeight.w600, + ), ), ), ], ), + const SizedBox(height: 1), + Text( + widget.version, + style: TextStyle( + fontSize: 14, + color: Theme.of(context).colorScheme.secondary, + ), + ), const SizedBox(height: 4), Text( widget.description, @@ -201,4 +203,4 @@ class _PatchItemState extends State { ), ); } -} +} \ No newline at end of file