lundi 25 janvier 2021

Change another widget with a checkbox Flutter

I'm new to Flutter and I found a pretty cool design of a todoapp on Dribble so I wanted to create the app. Here's the design :

Design

I wonder how with the my callBack Function of my CheckBox I could change the color of the text part of the tile to this blue. My tile is currently a row containing a checkbox and a Container with the text in. So I would like to when i click on the checkbox, the background color of my container turns to blue. I dont' have a any idea how to do that. If you have some ideas please tell me.




Aucun commentaire:

Enregistrer un commentaire