Skip to content

david2tdw/hello_flutter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

 
 
 

Languages