Skip to content

jiangdexiao/flutter-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flutterApp

记录基础组件和material组件的使用demo,路由管理,json反序列化以及其他第三方组件库的使用案例

使用

# install dependencies
> flutter get packages

# dev
> flutter run

使用的插件库说明

# 展示两种路由管理方式 
# 第一种  fluro  以定义方式  route文件夹

# 第二种  annotation_route  以注解方式
# 生成路由映射关系相关操作命令
> flutter packages pub run build_runner clean
> flutter packages pub run build_runner build --delete-conflicting-outputs

json序列化管理

  • json_annotation

  • build_runner

  • json_serializable

  • 生成json转实体类 相关操作命令

  • flutter packages pub run build_runner build -------------每次增加实体类需要手动构建一次

  • flutter packages pub run build_runner watch -------------构建一次动态监听

国际化

- 相关命令
- pub run intl_translation:extract_to_arb --output-dir=target/directory my_program.dart more_of_my_program.dart
  > flutter pub pub run intl_translation:extract_to_arb --output-dir=lib/i10n lib/app_strings.dart
- pub run intl_translation:generate_from_arb --generated-file-prefix=<prefix> <my_dart_files> <translated_ARB_files>
  > flutter pub pub run intl_translation:generate_from_arb --output-dir=lib/i10n lib/app_strings.dart lib/i10n/intl_en.arb lib/i10n/intl_zh.arb

其他库

相关资料链接

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.

git更新日志

CHANGELOG

About

demo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages