provider 2.0.1+1 copy "provider: ^2.0.1+1" to clipboard
provider: ^2.0.1+1 copied to clipboard

outdated

A dependency injection system built with widgets for widgets. provider is mostly syntax sugar for InheritedWidget, to make common use-cases straightforward.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add provider

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  provider: ^2.0.1+1

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:provider/provider.dart';
10.5k
likes
40
points
3.6M
downloads

Publisher

verified publisherdash-overflow.net

Weekly Downloads

A dependency injection system built with widgets for widgets. provider is mostly syntax sugar for InheritedWidget, to make common use-cases straightforward.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on provider