使用 Google 官方推荐的状态管理 Provider 的 demo。详细了解请看这里:Flutter | 状态管理指南篇——Provider
[更新]:Demo 新增单页面状态提供方式,供参考
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.