/flutter_use

Flutter使用的一些栗子

Primary LanguageDart

flutter_use

效果地址

代码路径

├─lib
│  ├─module
│  │  ├─example
│  │  │  ├─getx                ///getx演示代码在此目录下
│  │  │  │  ├─counter_easy_get
│  │  │  │  ├─counter_get
│  │  │  │  ├─counter_high_get
│  │  │  │  └─jump_page
│  │  │  │      ├─jump_one
│  │  │  │      └─jump_two
├─lib
│  ├─module
│  │  ├─function
│  │  │  ├─himalaya       ///仿喜马拉雅PC代码在此目录下
│  │  │  │  └─widget

关于编译

  • 因为引用了:window_size 依赖,可能会导致编译运行报错(window上),进行下述设置即可解决
    • Window 10系统:设置 -> 更新和安全 -> 开发者选项 -> 开发人员模式:从任意元(包括松散文件)安装应用 -> 开启即可

image-20210309154335161

打包操作

  • android(关闭R8压缩)
    • flutter build apk --no-shrink
  • ios(生成 .app ,然后 在 XCode 执行 打包 操作)
    • flutter build ios --release --target=lib/app/main_dev.dart
  • web:使用CanvasKit模式
    • flutter build web --web-renderer canvaskit