ChecklistEditor: Reduce spacing between checkbox and text

It looks a bit prettier now
This commit is contained in:
Vishesh Handa
2020-02-16 22:11:26 +01:00
parent 5569c3fca1
commit e378ed5758

View File

@ -273,10 +273,15 @@ class _ChecklistItemTileState extends State<ChecklistItemTile> {
leading: Row( leading: Row(
children: <Widget>[ children: <Widget>[
Container(height: 24.0, width: 24.0, child: Icon(Icons.drag_handle)), Container(height: 24.0, width: 24.0, child: Icon(Icons.drag_handle)),
Checkbox( const SizedBox(width: 8.0),
SizedBox(
height: 24.0,
width: 24.0,
child: Checkbox(
value: widget.item.checked, value: widget.item.checked,
onChanged: widget.statusChanged, onChanged: widget.statusChanged,
), ),
),
], ],
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
), ),
@ -304,10 +309,16 @@ class AddItemButton extends StatelessWidget {
leading: Row( leading: Row(
children: <Widget>[ children: <Widget>[
Container(height: 24.0, width: 24.0), Container(height: 24.0, width: 24.0),
IconButton( const SizedBox(width: 8.0),
Container(
padding: const EdgeInsets.all(0.0),
width: 24.0,
child: IconButton(
padding: const EdgeInsets.fromLTRB(0.0, 0.0, 0.0, 0.0),
icon: Icon(Icons.add), icon: Icon(Icons.add),
onPressed: onPressed, onPressed: onPressed,
) ),
),
], ],
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
), ),
@ -320,7 +331,6 @@ class AddItemButton extends StatelessWidget {
} }
// FIXME: The body needs to be scrollable // FIXME: The body needs to be scrollable
// FIXME: Fix padding issue on top
// FIXME: Support removing an item when pressing backspace // FIXME: Support removing an item when pressing backspace
// FIXME: Focus on + doesn't work on device // FIXME: Focus on + doesn't work on device
// FIXME: Align the checkbox and close button on top // FIXME: Align the checkbox and close button on top