info: changed xmp tag style

This commit is contained in:
Thibault Deckers 2020-01-01 20:18:07 +09:00
parent 5fdbe0887b
commit 7aa711bd69

View file

@ -9,6 +9,8 @@ class XmpTagSectionSliver extends AnimatedWidget {
final ImageCollection collection; final ImageCollection collection;
final ImageEntry entry; final ImageEntry entry;
static const double buttonBorderWidth = 2;
XmpTagSectionSliver({ XmpTagSectionSliver({
Key key, Key key,
@required this.collection, @required this.collection,
@ -24,20 +26,24 @@ class XmpTagSectionSliver extends AnimatedWidget {
? [] ? []
: [ : [
const SectionRow('XMP Tags'), const SectionRow('XMP Tags'),
Wrap( Padding(
spacing: 8, padding: const EdgeInsets.symmetric(horizontal: buttonBorderWidth / 2),
children: tags child: Wrap(
.map((tag) => OutlineButton( spacing: 8,
onPressed: () => _goToTag(context, tag), children: tags
borderSide: BorderSide( .map((tag) => OutlineButton(
color: stringToColor(tag), onPressed: () => _goToTag(context, tag),
), borderSide: BorderSide(
shape: RoundedRectangleBorder( color: stringToColor(tag),
borderRadius: BorderRadius.circular(42), width: buttonBorderWidth,
), ),
child: Text(tag), shape: RoundedRectangleBorder(
)) borderRadius: BorderRadius.circular(42),
.toList(), ),
child: Text(tag),
))
.toList(),
),
), ),
], ],
), ),