continued labels

This commit is contained in:
kolaente 2019-03-19 08:17:50 +01:00
parent f30958f33c
commit 8a091c9828
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 22 additions and 8 deletions

View File

@ -31,6 +31,7 @@ class LabelComponentState extends State<LabelComponent> {
onTap: widget.onTap,
child: Container(
padding: EdgeInsets.symmetric(vertical: 5, horizontal: 8),
margin: EdgeInsets.only(top: 5, bottom: 5, right: 10),
decoration: BoxDecoration(
color: widget.backgroundColor,
borderRadius: BorderRadius.all(Radius.circular(3))),

View File

@ -229,14 +229,27 @@ class _TaskEditPageState extends State<TaskEditPage> {
}).toList(),
),
),
LabelComponent(
label: Label(id: 12134, title: 'Lorem Ipsum'),
onTap: () {
print('tapped');
},
onDelete: () {
print('deleted');
},
Row(
children: <Widget>[
LabelComponent(
label: Label(id: 12134, title: 'Lorem Ipsum'),
onTap: () {
print('tapped');
},
onDelete: () {
print('deleted');
},
),
LabelComponent(
label: Label(id: 12134, title: 'Lorem Ipsum Dolor sit amet'),
),
LabelComponent(
label: Label(id: 12134, title: 'Ipsum'),
),
LabelComponent(
label: Label(id: 12134, title: 'Dolor'),
),
],
),
Builder(
builder: (context) => Padding(