一、Flutter 学习资料
Flutter - Dart中(.)、(..)、(...)语法使用_flutter ...-CSDN博客
Flutter pubspec.yaml 配置文件_flutter yaml配置git-CSDN博客
二、三方框架库
1、网络库
dio
- 网络请求
- dio: ^3.0.9
- https://pub.dev/packages/dio
- 一个强大的Dart Http请求库,支持Restful API、FormData、拦截器、请求取消、Cookie管理、文件上传/下载、超时、自定义适配器等...
http
- 网络请求
- http: ^0.12.0+2
- https://pub.dev/packages/http
cookie_jar
- cookie持久化
- cookie_jar: ^1.0.0
- https://pub.dev/packages/cookie_jar
2、UI库
fluttertoast
- Toast
- fluttertoast: ^3.1.0
- https://pub.dev/packages/fluttertoast
flutter_swiper 或 carousel_slider
- (图片)轮播组件库 banner
- flutter_swiper: ^1.1.6
- https://pub.dev/packages/flutter_swiper
flutter_webview_plugin
- 加载webview网页
- flutter_webview_plugin: ^0.3.5
- https://pub.dev/packages/flutter_webview_plugin
flutter_html
- 加载富文本
- flutter_html: ^0.11.0
- https://pub.dev/packages/flutter_html
flutter_markdown
- 加载markdown
- flutter_markdown: ^0.2.0
- https://pub.dev/packages/flutter_markdown
zefyr
- 富文本编辑器
- zefyr: ^0.8.0
- https://pub.dev/packages/zefyr
badges
- 徽章
- badges: ^1.1.0
- https://pub.dev/packages/badges
fl_chart
- 图表
- fl_chart: ^0.1.5
- https://pub.dev/packages/fl_chart
city_picker
- 城市选择器
- city_picker: ^0.1.3
- https://pub.dev/packages/city_picker
azlistview
- 列表索引
- azlistview: ^0.1.2
- https://pub.dev/packages/azlistview
file_picker
- 文件选择器
- file_picker: ^1.3.8
- https://pub.dev/packages/file_picker
image_picker
- 图片选择器
- image_picker: ^0.6.1
- https://pub.dev/packages/image_picker
cached_network_image
- 图片缓存
- cached_network_image: ^1.1.1
- https://pub.dev/packages/cached_network_image
photo_view
- 图片手势
- photo_view: ^0.4.2
- https://pub.dev/packages/photo_view
flutter_calendar_carousel
- 日历
- flutter_calendar_carousel: ^1.3.18
- https://pub.dev/packages/flutter_calendar_carousel
date_range_picker
- 日期区间选择器
- date_range_picker: ^1.0.6
- https://pub.dev/packages/date_range_picker
font_awesome_flutter
- 图标库
- font_awesome_flutter: ^8.5.0
- https://pub.dev/packages/font_awesome_flutter
flukit
- Flutter UI组件库
- flukit: ^1.0.2
- https://pub.dev/packages/flukit
3、加载指示器库
flutter_spinkit
- 动画库-加载指示器
- flutter_spinkit: ^3.1.0
- https://pub.dev/packages/flutter_spinkit
loading_indicator 、loading_animations
- 加载指示器
flutter_easyloading
- 弹框加载中等待
4、数据库
sqflite
- 数据库
- sqflite: ^1.1.6
- https://pub.dev/packages/sqflite
shared_preferences
- sp本地存储
- shared_preferences: ^0.5.3+4
- https://pub.dev/packages/shared_preferences
- 简单的,异步的,持久化的key-value存储系统, 在Android上它是基于SharedPreferences的,在iOS上它是基于NSUserDefaults
5、设备库
connectivity
- 监听网络状态
- connectivity: ^0.4.3+6
- https://pub.dev/packages/connectivity
share
- 分享
- share: ^0.6.2+1
- https://pub.dev/packages/share
camera
- 相机
- camera: ^0.5.2+2
- https://pub.dev/packages/camera
device_info 、url_launcher
- 设备信息,系统库(app相关信息、打电话、发邮件等)
- device_info: ^0.4.0+2
- https://pub.dev/packages/device_info
package_info
- 包信息
- package_info : ^0.4.0+6
- https://pub.dev/packages/package_info
path_provider
- 获取本地文件路径
- path_provider: ^1.2.0
- https://pub.dev/packages/path_provider
6、工具库
rxdart
- 函数式编程
- rxdart: ^0.22.1+1
- https://pub.dev/packages/rxdart
provide
- 状态管理
- provide: ^1.0.2
- https://pub.dev/packages/provide
provider
- 状态管理
- provider: ^3.0.0+1
- https://pub.dev/packages/provider
event_bus
- 消息传递
- event_bus: ^1.1.0
- https://pub.dev/packages/event_bus
url_launcher
- 打开链接
- url_launcher: ^5.1.2
- https://pub.dev/packages/url_launcher
intl
- 国际化
- intl: ^0.15.8
- https://pub.dev/packages/intl
fluro
- 路由
- fluro: ^1.5.1
- https://pub.dev/packages/fluro
simple_permissions
- 权限相关
- simple_permissions: ^0.1.9
- https://pub.dev/packages/simple_permissions
video_player
- 视频播放器
- video_player: ^0.10.1+6
- https://pub.dev/packages/video_player
audioplayers
- 音频播放器
- audioplayers: ^0.13.1
- https://pub.dev/packages/audioplayers
7 、动画库
- flutter_spinkit
支持各种动画,可用来做加载动画等
8、条形码-二维码扫描
- barcode_scan
支持iOS、android两端的条码-二维码扫描库qr_flutter
- 二维码
- qr_flutter: ^2.1.0+55
- https://pub.dev/packages/qr_flutter
9、下拉加载上拉加载更多
- pull_to_refresh
很强大的一个库,可以实现多种效果,强烈建议- loadmore
ListView上拉加载更多,挺好用的flutter_easyrefresh
- 下拉刷新上拉加载
- flutter_easyrefresh: ^2.0.0
- https://pub.dev/packages/flutter_easyrefresh
liquid_pull_to_refresh
- 下拉刷新加载
infinite_scroll_pagination
- 上拉加载刷新
10、版本更新
ota_update
支持Android应用内下载,实现应用内更新功能
具体使用可参考Flutter 应用内App版本更新
- url_launcher
网页打开工具,适用于iOS版本更新,可以打开应用地址,跳转AppStore更新
11、权限
- permission_handle
权限管理,可用来检测权限是否获取等
12、视频封面图获取
- video_thumbnail
可以获取本地和网络视频的封面图
13、状态、路由管理
- getx
GetX 是 Flutter 上的一个轻量且强大的解决方案:高性能的状态管理、智能的依赖注入和便捷的路由管理。