When should I use provider in Flutter?

One of the main reasons to prefer Provider over Statefulwidget s is that, using Provider , you will rebuild only the widgets that needs that value (the Consumers ) while the other will not be rebuilt . Instead when you call setState the whole build function of the widget will be called.

Sizin İçin Seçtik  Should I use provider in Flutter?

Leave a Reply

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