Skip to content
Branch: master
Find file History
filiph Add the ScopedModel Counter sample (#41)
Adds sample app that mimics the beloved starter app, but with ScopedModel for state management.

Contains a smoke test and is set up to run it in travis_script.sh.
Latest commit 2128608 Jan 2, 2019
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
android
ios
lib Add the ScopedModel Counter sample (#41) Jan 2, 2019
test
.gitignore Add the ScopedModel Counter sample (#41) Jan 2, 2019
.metadata Add the ScopedModel Counter sample (#41) Jan 2, 2019
README.md
pubspec.yaml Add the ScopedModel Counter sample (#41) Jan 2, 2019

README.md

ScopedModel Counter

The starter Flutter application, but using ScopedModel 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, ScopedModel.

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 scoped_model package (where ScopedModel 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.io.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.