You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
samples/provider_counter
Kevin Moore a858f4701e
Bump deps and min SDKs, move web apps to new bootstrapping logic (#2292)
1 month ago
..
android Rebuild runners (#1725) 1 year ago
ios Rebuild runners (#1725) 1 year ago
lib Fixed ThemeData in the Flutter Samples unnecessarily includes useMaterial3 = true (Issue #2214) (#2217) 3 months ago
linux Rebuild runners (#1725) 1 year ago
macos Rebuild runners (#1725) 1 year ago
test Enforce `use_key_in_widget_constructors` and `file_names` lints (#913) 3 years ago
web Bump deps and min SDKs, move web apps to new bootstrapping logic (#2292) 1 month ago
windows Rebuild runners (#1725) 1 year ago
.gitignore Maintenance for provider_counter (#165) 5 years ago
.metadata Rebuild runners (#1725) 1 year ago
README.md Move scoped_model_counter to provider_counter (#82) 5 years ago
analysis_options.yaml Create `analysis_defaults` package (#1654) 1 year ago
pubspec.yaml Bump deps and min SDKs, move web apps to new bootstrapping logic (#2292) 1 month ago

README.md

Provider Counter

The starter Flutter application, but using Provider to manage state.

This app is a direct counterpart to the simple counter application that you get when you create a new Flutter project. That one uses a StatefulWidget to manage application state. The version in this repository uses a simple app state management approach, Provider.

It shows how you might deal with state that is modified from outside the app (for example, state synchronized over network) and which needs to be accessed and changed from different parts of your app.

Getting Started

The only important part of the app is the lib/main.dart file. It has comments that will walk you through it.

For more information on the provider package (where Provider comes from), please see the package documentation.

For more information on state management in Flutter, and a list of other approaches, head over to the State management page at flutter.dev.