编辑 | blame | 历史 | 原始文档

counter

Redux version of the Flutter counter app.

This is a copy of the example program from flutter_redux, with additional support for Remote Devtools.

  • Uses DevToolsStore to allow time travel
  • Connects to remote devtools on startup
  • Sends all actions and state updates

Trying it out

  1. Get remotedev-server from npm:

    npm install -g remotedev-server
    
  2. Start the server

    remotedev --port 8000
    
  3. Edit main.dart and put in your computer's IP address or host name

  4. Open http://localhost:8000 in a web browser. You should see the remote-devtools window

  5. Run the flutter app

    flutter packages get
    flutter run
    
  6. Hit that button, increment the counter, see the actions fly through

  7. Use the time travel slider to move back and forth through state changes!