This library allows you to create a
DevToolsStore during dev mode in place of a normal Redux Store. This
DevToolsStore will act exactly like a normal Store at first, with one catch: It will allow you to travel back and forth throughout the State of your application!
You can write your own UI to travel in time, or use one of the existing options for the platform you're working with:
A simple Flutter app that allows you to Increment and Decrement a counter.
// Start by creating a simple Reducer, or a complex one. Dealer's choice. :) int addOneReducer(int state, action) => state + 1; // For production mode, this is how you should create your Store. final store = new Store(addReducer, initialState: 0); // In Dev Mode, however, if you want to hook up to Time-Traveling // Dev Tools, create a `DevToolsStore` instead! // // It will act exactly like your normal Store, but give you super powers // to travel back and forth in time throughout your app States! // // Remember: By itself this will beef up your Store, but will not provide // a UI to Time Travel. See the libraries listed above to learn how to // connect your Redux store to a UI! final store = new DevToolsStore(addReducer, initialState: 0);
All of this code was directly inspired by the original Redux Devtools.
DevToolsStoreduring dev mode, which will allow you to time travel through the states of your application.
Add this to your package's pubspec.yaml file:
dependencies: redux_dev_tools: ^0.4.0
You can install packages from the command line:
$ pub get
$ flutter packages get
Alternatively, your editor might support
pub get or
flutter packages get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|0.4.0||Apr 1, 2018|
|0.3.0||Apr 1, 2018|
|0.2.0||Dec 22, 2017|
|0.1.4||Dec 15, 2017|
|0.1.3||Dec 14, 2017|
|0.1.2||Nov 25, 2017|
|0.1.1||Aug 28, 2017|
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on Dec 5, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Detected platforms: Flutter, web, other
No platform restriction found in primary library
dartfmt to format
dartfmt to format
The description is too short. (-20 points)
Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.
Maintain an example. (-10 points)
Create a short demo in the
example/ directory to show how to use this package. Common file name patterns include:
example.dart or you could also use