- séparation des taches faite et non,
- rapettisage de la taille des taches
This commit is contained in:
@@ -18,27 +18,28 @@ class ToDoTile extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Padding(
|
||||
padding: const EdgeInsets.fromLTRB(25.0, 25, 25, 0),
|
||||
padding: const EdgeInsets.fromLTRB(15.0, 15, 15, 0),
|
||||
child: Slidable(
|
||||
endActionPane: ActionPane(
|
||||
motion: StretchMotion(),
|
||||
motion: const StretchMotion(),
|
||||
children: [
|
||||
SlidableAction(
|
||||
onPressed: deleteFunction,
|
||||
icon: Icons.delete,
|
||||
backgroundColor: const Color.fromARGB(255, 249, 137, 135),
|
||||
backgroundColor: Color.fromARGB(255, 249, 137, 135),
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
)
|
||||
],
|
||||
),
|
||||
child: Container(
|
||||
padding: EdgeInsets.all(24.0),
|
||||
padding: const EdgeInsets.all(10.0),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Text(
|
||||
taskName,
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
decoration: taskCompleted
|
||||
? TextDecoration.lineThrough
|
||||
: TextDecoration.none),
|
||||
@@ -46,12 +47,19 @@ class ToDoTile extends StatelessWidget {
|
||||
Checkbox(
|
||||
value: taskCompleted,
|
||||
onChanged: onChanged,
|
||||
activeColor: Colors.redAccent,
|
||||
side:
|
||||
MaterialStateBorderSide.resolveWith((states) => BorderSide(
|
||||
width: 2,
|
||||
color: Colors.white,
|
||||
)),
|
||||
focusColor: Colors.white,
|
||||
checkColor: Colors.white,
|
||||
activeColor: taskCompleted ? Colors.grey : Colors.redAccent,
|
||||
)
|
||||
],
|
||||
),
|
||||
decoration: BoxDecoration(
|
||||
color: Theme.of(context).primaryColor,
|
||||
color: taskCompleted ? Colors.grey : Theme.of(context).primaryColor,
|
||||
borderRadius: BorderRadius.circular(10.0),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user