How to install and use provider with Flutter 3.3.2

A popular Flutter package with 7424 likes that support Flutter version 3.3.2 and above. Last version of the package was published on Sep 28, 2022.

Installing provider

You can either add the package directly using the flutter command line.

$ flutter pub add provider

Or add the dependency directly to your pubspec.yaml file.
dependencies:
  provider: ^6.0.3

In either case, make sure to refresh your packages by running the following command:

$ flutter pub get

Using provider

Once you have installed the package, you can use it in your Flutter application by importing it.
import 'package:provider/provider.dart';