From 7aa711bd6908e2273f4e919d060b53be4b8a885f Mon Sep 17 00:00:00 2001 From: Thibault Deckers Date: Wed, 1 Jan 2020 20:18:07 +0900 Subject: [PATCH] info: changed xmp tag style --- lib/widgets/fullscreen/info/xmp_section.dart | 34 ++++++++++++-------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/lib/widgets/fullscreen/info/xmp_section.dart b/lib/widgets/fullscreen/info/xmp_section.dart index 1145daaf0..e1947c57b 100644 --- a/lib/widgets/fullscreen/info/xmp_section.dart +++ b/lib/widgets/fullscreen/info/xmp_section.dart @@ -9,6 +9,8 @@ class XmpTagSectionSliver extends AnimatedWidget { final ImageCollection collection; final ImageEntry entry; + static const double buttonBorderWidth = 2; + XmpTagSectionSliver({ Key key, @required this.collection, @@ -24,20 +26,24 @@ class XmpTagSectionSliver extends AnimatedWidget { ? [] : [ const SectionRow('XMP Tags'), - Wrap( - spacing: 8, - children: tags - .map((tag) => OutlineButton( - onPressed: () => _goToTag(context, tag), - borderSide: BorderSide( - color: stringToColor(tag), - ), - shape: RoundedRectangleBorder( - borderRadius: BorderRadius.circular(42), - ), - child: Text(tag), - )) - .toList(), + Padding( + padding: const EdgeInsets.symmetric(horizontal: buttonBorderWidth / 2), + child: Wrap( + spacing: 8, + children: tags + .map((tag) => OutlineButton( + onPressed: () => _goToTag(context, tag), + borderSide: BorderSide( + color: stringToColor(tag), + width: buttonBorderWidth, + ), + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(42), + ), + child: Text(tag), + )) + .toList(), + ), ), ], ),