Flutter开源项目 - 加密币客户端 flutter-crypto-app
文章目录
老铁记得 转发 ,猫哥会呈现更多 Flutter 好文~~~~
微信 flutter 研修群 ducafecat
猫哥说
节日好伙伴们,今天这个项目推荐给大家,主要是用了 Riverpod 状态管理,Freezed 代码生成器, Flutter 2.2 空安全
还有就是 写了 单元测试 集成测试 Github Action,大家可以学习下。

代码
https://github.com/salvadorde...
参考
正文
特性功能
- API REST (CryptoWatch) restful 拉取数据
- Linear Graph View (Hour, Day, Week, etc) 图
- OHLC Graph 图
- Search 搜索
- Light / Dark Theme 样式主题
- Multi Lenguage 多语言
- Exchange Selection 交易
- Favorite Pair 收藏
技术栈
- Flutter 2.2.0
- Riverpod + Hooks 状态管理
- Freezed 代码生成器
- Dio http 通讯
测试
- Unit Testing (flutter_test)
- Integration Testing (integration_test)
- Mock Data (http_mock_adapter)
- Github Actions (iOS & Android Integration Test)
屏幕截图






项目安装
下载代码
git clone https://github.com/salvadordeveloper/flutter-crypto-app安装包
flutter pub get去申请 https://cryptowat.ch/zh-cn/ 账号 api
替换 API_KEY
API_KEY={CryptoWatch_KEY}生成代码
flutter pub run build_runner build --delete-conflicting-outputs运行 app
flutter run单元测试
flutter test集成测试
flutter drive --driver=test_driver/integration_test.dart --target=integration_test/main_test.dart© 猫哥

往期
开源
GetX Quick Start
https://github.com/ducafecat/...
新闻客户端
https://github.com/ducafecat/...
strapi 手册译文
微信讨论群 ducafecat
系列集合
译文
https://ducafecat.tech/catego...
开源项目
https://ducafecat.tech/catego...
Dart 编程语言基础
https://space.bilibili.com/40...
Flutter 零基础入门
https://space.bilibili.com/40...
Flutter 实战从零开始 新闻客户端
https://space.bilibili.com/40...
Flutter 组件开发
https://space.bilibili.com/40...
Flutter Bloc
https://space.bilibili.com/40...
Flutter Getx4
https://space.bilibili.com/40...

评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论