Let’s understand the basics of another state management concept in a flutter to manage our state

Introduction :

Riverpod is also a state management solution in a flutter. It a basically a Provider, but of a different type. It has some advantages over a provider in that it is compile safe, does not have any limitation as a provider have and does not also depend on flutter. Riverpod support multiple providers of the same type, combining asynchronous provider, adding providers from anywhere.

Before starting our blog, let us know what topic will be going to cover-up

Table of content :

Using Provider in Riverpod to build UI

Using StateProvider in Riverpod to change state of UI

Setup:

Before starting let us first start with the basics of installing up Riverpod

Add this dependency to **_pubsec.yaml _**file:

Image for post

Let us understand the concept by building a basic “Hello World” UI…

Note: Before starting to code install a Flutter Riverpod Snippet to code fast and efficiently.

Lets code :

Image for post

#riverpod #flutter #dartlang

Basics of Riverpod | Flutter
2.35 GEEK