Loading [MathJax]/jax/output/HTML-CSS/jax.js
1 Star 0 Fork 4

davis1680/flutter项目

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

flutter项目

介绍

该项目为flutter项目

软件架构

软件架构说明

安装教程

  1. 参考官网 https://flutterchina.club/setup-windows/
  2. 安装雷电模拟器 http://www.ldmnq.com
  3. 中文文档 https://flutter.cn/docs
  4. 实战电子书 https://book.flutterchina.club/#缘起
  5. IOS安装流程 sudo vim ~/.bash_profile 按i进入编辑ES退出:wq保存 source ~/.bash_profile 修改环境变量之后启动源 zshrc 权限同理 Flutter - 命令行运行 提示 zsh: command not found:flutter https://www.jianshu.com/p/d668548f0b48 mac环境变量设置 https://jingyan.baidu.com/article/8065f87f47b29523312498e4.html ruby 国内镜像地址 https://gems.ruby-china.com/ gem install cocoapods --user-install cocoapods安装 https://www.jianshu.com/p/9e4e36ba8574 ruby,rvm, 实在不行brew install cocoapods pod install --repo-update

使用说明

(文件目录不要出现中文,初次启动会比较慢,下载SDK包)

  1. flutter run
  2. 目录结构 --router 路由 --pages 页面 --store 路由缓存 --utils 公共函数 --compoments 封装组件 --assets 静态资源 --config 系统配置及api请求地址
  3. flutter build apk --obfuscate --split-debug-info=debugInfo --target-platform android-arm,android-arm64,android-x64 --split-per-abi --release --no-sound-null-safety 发布APK
  4. gradle compileDebug --stacktrace 错误信息 gradlew compileDebug --stacktrace --info --debug
  5. flutter run --release --no-sound-null-safety
  6. flutter build apk --release --target-platform android-arm64 --no-sound-null-safety --obfuscate --split-debug-info=debugInfo // The platforms that can be passed to the --Ptarget-platform flag. private static final String PLATFORM_ARM32 = "android-arm"; private static final String PLATFORM_ARM64 = "android-arm64"; private static final String PLATFORM_X86 = "android-x86"; private static final String PLATFORM_X86_64 = "android-x64";
  7. flutter build apk --obfuscate --split-debug-info=debugInfo --target-platform android-arm64,android-x64 --split-per-abi --release --no-tree-shake-icons --no-sound-null-safety 不打32位包,有些手机会报错
  8. ios打包命令 flutter build ios --no-sound-null-safety --no-tree-shake-icons --release

    手动添加竹信framework

pod -> targets -> flutter_ecg_plugin -> build phases -> link binary 添加(IKLibrary)

# 修改打包配置

runner -> targets -> build settings -> excluded Architectures EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64=arm64 arm64e armv7 armv7s armv6 armv8 EXCLUDED_ARCHS=(inherited)(EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_$(EFFECTIVE_PLATFORM_SUFFIX)_NATIVE_ARCH_64_BIT$(NATIVE_ARCH_64_BIT))

# 导入图片静态资源
pod -> targets -> flutter_ecg_plugin -> build phases -> compile sources 添加(IKLibrary)

# 设置国际化
runner -> info -> localization
  1. https://www.jianshu.com/p/beeab8d3842a 打包发布

  2. https://www.jianshu.com/p/49bd17b67e8d?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation ios权限

  3. flutter run -v --no-sound-null-safety 查看进度

  4. 设置系统代理(永久设置去环境变量中添加环境名http_proxy和https_proxy) set http_proxy=socks5://127.0.0.1:7890 https_proxy=socks5://127.0.0.1:7890

    export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890

参与贡献

  1. Fork 本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request

特技

  1. 使用 Readme_XXX.md 来支持不同的语言,例如 Readme_en.md, Readme_zh.md
  2. Gitee 官方博客 blog.gitee.com
  3. 你可以 https://gitee.com/explore 这个地址来了解 Gitee 上的优秀开源项目
  4. GVP 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
  5. Gitee 官方提供的使用手册 https://gitee.com/help
  6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 https://gitee.com/gitee-stars/

学习参考

  1. 使用图片等静态资源可能需要重新启动才能预览
  2. 布局使用及介绍https://api.flutter.dev/flutter/widgets/widgets-library.html
  3. 内置图标查看 https://api.flutter.dev/flutter/material/Icons-class.html#constants
  4. 大佬心得 https://segmentfault.com/a/1190000019687024###
  5. 实战电子书 https://book.flutterchina.club/
  6. 字体样式,全局样式如何设置参考 https://juejin.cn/post/6898775045099749384
  7. HTTP不允许处理 https://blog.csdn.net/weixin_44137575/article/details/109045633
  8. BoxDecoration属性详解 https://www.cnblogs.com/jiuyi/p/12612553.html
  9. 使用jar包方法 https://blog.csdn.net/weixin_39827145/article/details/118361229
    1. (!!!必须创建flutter plugins!!!)lis/加入jar包
    2. build.gradle 引入
    3. java 目录下映射出方法
    4. deart 文件调用方法封装类
    5. 所属项目pubspec引用插件项目\
  10. 基础组件学习文档 https://www.kancloud.cn/qtrjjs/flutter/875277
  11. 组件搜索库 https://flutterawesome.com/
  12. 数据类型的操作 https://www.cnblogs.com/gxsyj/p/10973657.html
  13. 电子书 https://guoshuyu.cn/home/wx/Flutter-2.html
  14. bruno组件文档 https://bruno.ke.com/page/widgets/brn-title-select-input-form-item
  15. 阿里团队的flutter组件 https://github.com/Fliggy-Mobile
  16. 组件 https://www.jianshu.com/p/406672d4a0cd
  17. android 权限设置 https://www.jianshu.com/p/24f79a70025b
  18. 推荐插件 https://juejin.cn/post/6874082988381241357
  19. TextField https://blog.csdn.net/yechaoa/article/details/90906689
  20. 组件推荐 缓存网络图片https://zhuanlan.zhihu.com/p/99346168
  21. Getx插件参考 https://www.loongwind.com/archives/372.html

空文件

简介

慢病管理系统APP 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/davis1680/flutter-project.git
git@gitee.com:davis1680/flutter-project.git
davis1680
flutter-project
flutter项目
master

搜索帮助