Coming primarily from a Kotlin background, I found it pretty difficult to get my head around flutter in the very beginning. It is mainly because Flutter follows a declarative style of programming whereas Kotlin follows imperative style of programming.

Declarative programing focuses on what the program should accomplish rather than how that is accomplished.

Due to this reason, the way that we program in flutter becomes quite different. Let me give an example. In Kotlin, if we have to update the text of a TextView then we can easily call setText method.

textView.text = "New text"

But updating a text is quite different in Flutter since it does not allow us to update the text of a text field.

#mvvm #programming #provider #flutter #state-management

State Management in Flutter using Provider
2.20 GEEK