info: styled tags as buttons
This commit is contained in:
parent
d42ad00688
commit
b3a21da574
1 changed files with 23 additions and 19 deletions
|
@ -24,11 +24,10 @@ class XmpTagSection extends AnimatedWidget {
|
||||||
children: [
|
children: [
|
||||||
const SectionRow('XMP Tags'),
|
const SectionRow('XMP Tags'),
|
||||||
Wrap(
|
Wrap(
|
||||||
children: tags
|
spacing: 8,
|
||||||
.map((tag) => Padding(
|
children: tags.map((tag) {
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 4.0),
|
final borderColor = Theme.of(context).accentColor;
|
||||||
child: ActionChip(
|
return OutlineButton(
|
||||||
label: Text(tag),
|
|
||||||
onPressed: () => Navigator.push(
|
onPressed: () => Navigator.push(
|
||||||
context,
|
context,
|
||||||
MaterialPageRoute(
|
MaterialPageRoute(
|
||||||
|
@ -39,10 +38,15 @@ class XmpTagSection extends AnimatedWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
backgroundColor: Theme.of(context).accentColor,
|
borderSide: BorderSide(
|
||||||
|
color: borderColor,
|
||||||
),
|
),
|
||||||
))
|
shape: RoundedRectangleBorder(
|
||||||
.toList(),
|
borderRadius: BorderRadius.circular(42),
|
||||||
|
),
|
||||||
|
child: Text(tag),
|
||||||
|
);
|
||||||
|
}).toList(),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue