I have the following tile which has 2 modes (active & completed)
My goal is to render the checkmark infront of the semi transparent white background.
Here’s my code:
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.only(bottom: 4.0),
child: Stack(
children: [
// active tile
tileActive(), // the tile + checkmark
// completed tile
tileComplete(), // the white overlay only
],
),
);
}
What would be a good way of implementing that?
Thanks!
2
Answers
You can do this by adding state condition. And you must rebuid your
titleActive()
every time you change state