diff --git a/.gitignore b/.gitignore index 26bbd932..e99c7b82 100644 --- a/.gitignore +++ b/.gitignore @@ -34,9 +34,14 @@ .flutter-plugins .packages .pub-cache/ +pubspec.lock .pub/ /build/ +# goCli related +go-cli/.packages +go-cli/pubspec.lock + # Android related **/android/**/gradle-wrapper.jar **/android/.gradle diff --git a/FlutterGo.apk b/FlutterGo.apk deleted file mode 100644 index 01ce3048..00000000 Binary files a/FlutterGo.apk and /dev/null differ diff --git a/develop.md b/develop.md deleted file mode 100644 index ad1b1817..00000000 --- a/develop.md +++ /dev/null @@ -1,160 +0,0 @@ -# flutter-common-widgets-app - -### 使用背景 -* 鉴于目前flutter官方庞大的小部件(widget)系统以及api文档,只有文字描述,而没有可视化实例。 -* 我们开发这套app,可以系统的看到常用小部件(widget)的用法。 -* 辅助初学者更快上手,flutter官方小部件(widget) - - - -### 参考资料 - -* [flutter-widgets的官方库地址]( https://docs.flutter.kim/widgets/widgets-library.html ) -* [flutter-widgets的官方目录集]( http://doc.flutter-dev.cn/widgets/ ) -* [sqlitestudio 本地可视化工具] (https://sqlitestudio.pl/index.rvt) - -### 分支命名及使用规范 - -* 分支命名规范 - - 自己开发分支命名统一为 username ,如:yifeng - - 分支两条主线为 Master分支和develop分支 - - Master作为发布分支,develop作为开发测试分支、自己开发分支从dev checkout出去,发布即 merge to master - -* 分支合并规范 - - 从最新的develop分支checkout出自己的开发分支 - - 在自己开发开发分支开发完成后,先去develop分支pull最新代码, - - 将develop 分支最新代码 merge 到自己分支,确保无冲突 - - 再切回develop分支merge自己开发分支代码,确保无冲突,且能正常运行 - -### commit 提交规范 -* $git cz - -* 用于说明 commit 的类别,只允许使用下面7个标识。 - - - feat:新功能(feature) - - - fix:修补bug - - - docs:文档(documentation) - - - style: 格式(不影响代码运行的变动) - - - refactor:重构(即不是新增功能,也不是修改bug的代码变动) - - - test:增加测试 - - - chore:构建过程或辅助工具的变动 - - -### 代码规范 -* 文件命名规范 - - 文件命名使用下划线命名法,如:hello_world - - 请使用英文进行命名,不允许使用拼音。命名要求具有可读性,尽量避免使用缩写与数字 - - 未完待续 - -* 代码编码规范 - - 文件编码统一使用 UTF-8 编码; - - 前端编码采用首字母小写驼峰法. Widget Class 必须采用首字母大写驼峰法. - -### 文件目录结构(以LIb文件说明) - -- lib - - main.dart 入口文件 - - common 公共的method - - components widget - - generated - - model 存放模型, 不应该加入逻辑层 - - router 路由 - - views 展示界面 - - widget (与components概念重合,废弃) - -``` javascript -├── main.dart //入口文件 -├── common 公共的method -│   ├── Style.dart -│   ├── eventBus.dart -│   ├── provider.dart -│   └── sql.dart -├── components //app展示框架用到的组件 -│   ├── Input.dart -│   ├── List.dart -│   ├── Pagination.dart -│   ├── Pagination2.dart -│   ├── SearchInput.dart -│   └── homeBanner.dart -├── generated -│   └── i18n.dart -├── model //本地存放模型, 不应该加入逻辑层 -│   ├── base.dart -│   ├── cat.dart -│   ├── story.dart -│   └── widget.dart -├── routers //路由 -│   ├── application.dart -│   ├── router_handler.dart -│   └── routers.dart -├── views //app展示界面 -│   ├── Detail.dart -│   ├── FirstPage.dart -│   ├── FourthPage.dart -│   ├── ThirdPage.dart -│   ├── category.dart -│   ├── demos -│   │   ├── home.dart -│   │   └── layout -│   │   ├── SamplePage.dart -│   │   └── layout_type.dart -│   └── widgetPage.dart -└── widgets - └── ... //下面详细说明 -``` - -``` javascript -└── widgets // 对flutter所有元素和组件的分类 - ├── 404.dart - ├── index.dart // widgets 的总入口文件 - ├── components // 组件的分类 (区别于上面的components) - │   └── index.dart - ├── elements // 基础元素的分类 - │   ├── index.dart // elements下的 elements 类型入口文件 - │   ├── Form // elements下的 From 类型集合 - │   │   ├── Button // button 元素,里面是 文件夹代表类名/index.dart - │   │   │   ├── FlatButton - │   │   │   │   └── index.dart - │   │   │   ├── RaisedButton - │   │   │   │   └── index.dart - │   │   │   └── index.dart - │   │   ├── CheckBox - │   │   ├── Input - │   │   ├── Radio - │   │   ├── Slider - │   │   ├── Switch - │   │   ├── Text - │   │   └── index.dart - │   ├── Frame // elements下的 Frame 类型集合 - │   │   ├── Align - │   │   ├── Axis - │   │   ├── Box - │   │   ├── Expanded - │   │   ├── Layout - │   │   ├── Stack - │   │   ├── Table - │   │   └── spacing - │   └── Media // elements下的 Media 类型集合 - │      ├── Canvas - │      ├── Icon - │      └── Image - └── themes - └── index.dart -``` - -```javascript -widget 里的文件结构,用来存放封装的逻辑组件, 文件目录应为, 类比rax -- widget // widget 下详细元素或组件的目录结构 - - hello-world // 例如 - - mods // (可选, 子模块) - - mocks // (可选) - - utils // (可选, 存放暂时的私有method) - - schema - - index.dart -``` \ No newline at end of file diff --git a/api.md b/docs/api.md similarity index 100% rename from api.md rename to docs/api.md diff --git a/flutter_01.png b/flutter_01.png deleted file mode 100644 index 16a118fc..00000000 Binary files a/flutter_01.png and /dev/null differ diff --git a/go-cli/src/build/build_page_list.dart b/go-cli/src/build/build_page_list.dart index a8757444..465bd2c9 100644 --- a/go-cli/src/build/build_page_list.dart +++ b/go-cli/src/build/build_page_list.dart @@ -67,7 +67,6 @@ Future buildPageListJson() async { } String renderPagesDart(List> data) { - print('data>>> $data'); var source = ''' {{# pages }} diff --git a/pubspec.lock b/pubspec.lock deleted file mode 100644 index 4bc7b1b4..00000000 --- a/pubspec.lock +++ /dev/null @@ -1,392 +0,0 @@ -# Generated by pub -# See https://dart.dev/tools/pub/glossary#lockfile -packages: - args: - dependency: transitive - description: - name: args - url: "https://pub.dartlang.org" - source: hosted - version: "1.5.2" - async: - dependency: transitive - description: - name: async - url: "https://pub.dartlang.org" - source: hosted - version: "2.2.0" - bloc: - dependency: "direct main" - description: - name: bloc - url: "https://pub.dartlang.org" - source: hosted - version: "0.12.0" - boolean_selector: - dependency: transitive - description: - name: boolean_selector - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.4" - charcode: - dependency: transitive - description: - name: charcode - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.2" - city_pickers: - dependency: "direct main" - description: - name: city_pickers - url: "https://pub.dartlang.org" - source: hosted - version: "0.0.4" - collection: - dependency: transitive - description: - name: collection - url: "https://pub.dartlang.org" - source: hosted - version: "1.14.11" - cookie_jar: - dependency: "direct main" - description: - name: cookie_jar - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.1" - csslib: - dependency: transitive - description: - name: csslib - url: "https://pub.dartlang.org" - source: hosted - version: "0.16.1" - cupertino_icons: - dependency: "direct main" - description: - name: cupertino_icons - url: "https://pub.dartlang.org" - source: hosted - version: "0.1.2" - dio: - dependency: "direct main" - description: - name: dio - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.13" - event_bus: - dependency: "direct main" - description: - name: event_bus - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.0" - firebase_analytics: - dependency: "direct main" - description: - name: firebase_analytics - url: "https://pub.dartlang.org" - source: hosted - version: "1.2.0+1" - firebase_core: - dependency: "direct main" - description: - name: firebase_core - url: "https://pub.dartlang.org" - source: hosted - version: "0.3.4" - fluro: - dependency: "direct main" - description: - name: fluro - url: "https://pub.dartlang.org" - source: hosted - version: "1.5.1" - flutter: - dependency: "direct main" - description: flutter - source: sdk - version: "0.0.0" - flutter_bloc: - dependency: "direct main" - description: - name: flutter_bloc - url: "https://pub.dartlang.org" - source: hosted - version: "0.11.1" - flutter_downloader: - dependency: "direct main" - description: - name: flutter_downloader - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.9" - flutter_jpush: - dependency: "direct main" - description: - name: flutter_jpush - url: "https://pub.dartlang.org" - source: hosted - version: "0.0.4" - flutter_spinkit: - dependency: "direct main" - description: - name: flutter_spinkit - url: "https://pub.dartlang.org" - source: hosted - version: "3.1.0" - flutter_test: - dependency: "direct dev" - description: flutter - source: sdk - version: "0.0.0" - flutter_webview_plugin: - dependency: "direct main" - description: - name: flutter_webview_plugin - url: "https://pub.dartlang.org" - source: hosted - version: "0.3.5" - fluttertoast: - dependency: "direct main" - description: - name: fluttertoast - url: "https://pub.dartlang.org" - source: hosted - version: "3.1.0" - html: - dependency: "direct main" - description: - name: html - url: "https://pub.dartlang.org" - source: hosted - version: "0.14.0+2" - image_picker: - dependency: "direct main" - description: - name: image_picker - url: "https://pub.dartlang.org" - source: hosted - version: "0.5.4+3" - intl: - dependency: "direct main" - description: - name: intl - url: "https://pub.dartlang.org" - source: hosted - version: "0.15.7" - lpinyin: - dependency: transitive - description: - name: lpinyin - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.7" - markdown: - dependency: "direct main" - description: - name: markdown - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.3" - matcher: - dependency: transitive - description: - name: matcher - url: "https://pub.dartlang.org" - source: hosted - version: "0.12.5" - meta: - dependency: "direct main" - description: - name: meta - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.6" - notus: - dependency: transitive - description: - name: notus - url: "https://pub.dartlang.org" - source: hosted - version: "0.1.3" - open_file: - dependency: "direct main" - description: - name: open_file - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.3" - package_info: - dependency: "direct main" - description: - name: package_info - url: "https://pub.dartlang.org" - source: hosted - version: "0.4.0+6" - path: - dependency: "direct main" - description: - name: path - url: "https://pub.dartlang.org" - source: hosted - version: "1.6.2" - path_provider: - dependency: "direct main" - description: - name: path_provider - url: "https://pub.dartlang.org" - source: hosted - version: "1.2.0" - pedantic: - dependency: transitive - description: - name: pedantic - url: "https://pub.dartlang.org" - source: hosted - version: "1.7.0" - permission_handler: - dependency: "direct main" - description: - name: permission_handler - url: "https://pub.dartlang.org" - source: hosted - version: "3.2.1+1" - quill_delta: - dependency: transitive - description: - name: quill_delta - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.0" - quiver: - dependency: transitive - description: - name: quiver - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.3" - quiver_hashcode: - dependency: transitive - description: - name: quiver_hashcode - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.0" - rxdart: - dependency: transitive - description: - name: rxdart - url: "https://pub.dartlang.org" - source: hosted - version: "0.21.0" - share: - dependency: "direct main" - description: - name: share - url: "https://pub.dartlang.org" - source: hosted - version: "0.6.2+1" - shared_preferences: - dependency: "direct main" - description: - name: shared_preferences - url: "https://pub.dartlang.org" - source: hosted - version: "0.4.3" - sky_engine: - dependency: transitive - description: flutter - source: sdk - version: "0.0.99" - source_span: - dependency: transitive - description: - name: source_span - url: "https://pub.dartlang.org" - source: hosted - version: "1.5.5" - sqflite: - dependency: "direct main" - description: - name: sqflite - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.6+3" - stack_trace: - dependency: transitive - description: - name: stack_trace - url: "https://pub.dartlang.org" - source: hosted - version: "1.9.3" - stream_channel: - dependency: transitive - description: - name: stream_channel - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.0" - string_scanner: - dependency: "direct main" - description: - name: string_scanner - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.4" - synchronized: - dependency: transitive - description: - name: synchronized - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.0+1" - term_glyph: - dependency: transitive - description: - name: term_glyph - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.0" - test_api: - dependency: transitive - description: - name: test_api - url: "https://pub.dartlang.org" - source: hosted - version: "0.2.5" - typed_data: - dependency: transitive - description: - name: typed_data - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.6" - url_launcher: - dependency: "direct main" - description: - name: url_launcher - url: "https://pub.dartlang.org" - source: hosted - version: "5.1.2" - vector_math: - dependency: transitive - description: - name: vector_math - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.8" - zefyr: - dependency: "direct main" - description: - path: zefyr - relative: true - source: path - version: "0.0.1" -sdks: - dart: ">=2.2.2 <3.0.0" - flutter: ">=1.6.0 <2.0.0"