mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-23 10:21:31 +08:00
ChecklistEditor: Reduce spacing between checkbox and text
It looks a bit prettier now
This commit is contained in:
@ -273,9 +273,14 @@ 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),
|
||||||
value: widget.item.checked,
|
SizedBox(
|
||||||
onChanged: widget.statusChanged,
|
height: 24.0,
|
||||||
|
width: 24.0,
|
||||||
|
child: Checkbox(
|
||||||
|
value: widget.item.checked,
|
||||||
|
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),
|
||||||
icon: Icon(Icons.add),
|
Container(
|
||||||
onPressed: onPressed,
|
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),
|
||||||
|
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
|
||||||
|
Reference in New Issue
Block a user