From 47228806478445bee73d81addc82450eb76e3712 Mon Sep 17 00:00:00 2001 From: Aunali321 Date: Sat, 24 Sep 2022 13:47:09 +0530 Subject: [PATCH] feat: better patch version background. --- .../widgets/patchesSelectorView/patch_item.dart | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/lib/ui/widgets/patchesSelectorView/patch_item.dart b/lib/ui/widgets/patchesSelectorView/patch_item.dart index 3021b0080b..a008bf11e6 100644 --- a/lib/ui/widgets/patchesSelectorView/patch_item.dart +++ b/lib/ui/widgets/patchesSelectorView/patch_item.dart @@ -58,13 +58,28 @@ class _PatchItemState extends State { children: [ Text( widget.simpleName, + maxLines: 2, + overflow: TextOverflow.visible, style: const TextStyle( fontSize: 16, fontWeight: FontWeight.w600, ), ), const SizedBox(width: 4), - Text(widget.version) + Container( + padding: const EdgeInsets.symmetric( + horizontal: 4, + vertical: 2, + ), + decoration: BoxDecoration( + color: Theme.of(context) + .colorScheme + .background + .withOpacity(0.5), + borderRadius: BorderRadius.circular(6), + ), + child: Text(widget.version), + ) ], ), const SizedBox(height: 4),