Skip to content

Latest commit

 

History

History
46 lines (29 loc) · 726 Bytes

README.md

File metadata and controls

46 lines (29 loc) · 726 Bytes

hello_flutter

A new Flutter project.

Getting Started

flutter run

json_serializable使用:

flutter packages pub run build_runner build

redux 架构: MVC、MVP、BloC、Redux四种架构在Flutter上的尝试

在 lib\data\config\ 目录下添加ignoreConfig.dart文件 内容为:

class NetConfig {

  static const CLIENT_ID = "your client id";

  static const CLIENT_SECRET = "your secret";
}

Flutter 实现根据环境加载不同配置

运行无redux版本:

flutter run -t lib/main.dart

运行redux版本:

flutter run -t lib/main-redux.dart