How do you rebuild the parent widget in Flutter?

How can I force the parent to rebuild? Since your parent is a Stateless Widget, you cannot change it’s color. You must use a StatefulWidget instead. Otherwise, you can use a Callback function from the child to the parent .

Sizin İçin Seçtik  What are stateless and stateful widgets?

Leave a Reply

Your email address will not be published. Required fields are marked *