# flutter_use **Repository Path**: xudailong/flutter_use ## Basic Information - **Project Name**: flutter_use - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-06-13 - **Last Updated**: 2021-06-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # flutter_use ## 效果地址 - Web:[https://cnad666.github.io/flutter_use/web/index.html](https://cnad666.github.io/flutter_use/web/index.html) - 编译的web代码及其资源在docs文件夹下,这边github page路径选择的是docs - Windows:[Windows平台安装包](https://wwa.lanzoui.com/b099z6w6d) - 密码:xdd666 ## 代码路径 - 代码规范:[Flutter 改善套娃地狱问题(仿喜马拉雅PC页面举例)](https://juejin.cn/post/6939774499399139336) - 每一个靓仔应该去了解了解的奇技淫巧 ```dart ├─lib │ ├─module │ │ ├─function │ │ │ ├─himalaya ///仿喜马拉雅PC代码在此目录下 │ │ │ │ └─widget ``` - Provider:[使用+源码剖析:Flutter Provider的另一面(万字图文)](https://juejin.cn/post/6968272002515894303) - Provider的刷新机制真的很有趣! ```dart ├─lib │ ├─module │ │ ├─example │ │ │ ├─provider /// provider演示代码在此目录下 │ │ │ │ ├─counter_easy │ │ │ │ ├─counter_high │ │ │ │ ├─custom_builder │ │ │ │ ├─easy_p │ │ │ │ ├─easy_p_counter │ │ │ │ ├─easy_p_counter_global │ │ │ │ ├─span_page │ │ │ │ │ ├─span_one │ │ │ │ │ └─span_two │ │ │ │ └─test_notifier ``` - GetX:[Flutter GetX使用---简洁的魅力!](https://juejin.cn/post/6924104248275763208) ```dart ├─lib │ ├─module │ │ ├─example │ │ │ ├─getx ///getx演示代码在此目录下 │ │ │ │ ├─counter_easy_get │ │ │ │ ├─counter_get │ │ │ │ ├─counter_high_get │ │ │ │ └─jump_page │ │ │ │ ├─jump_one │ │ │ │ └─jump_two ``` ## 关于编译 - 因为引用了:window_size 依赖,可能会导致编译运行报错(window上),进行下述设置即可解决 - Window 10系统:设置 -> 更新和安全 -> 开发者选项 -> 开发人员模式:从任意元(包括松散文件)安装应用 -> 开启即可 ![image-20210309154335161](https://cdn.jsdelivr.net/gh/CNAD666/MyData/pic/flutter/blog/20210309154345.png) ## 打包操作 - android(关闭R8压缩) - flutter build apk --no-shrink - ios(生成 .app ,然后 在 XCode 执行 打包 操作) - flutter build ios --release - web:使用CanvasKit模式 - flutter build web --web-renderer canvaskit