-
Notifications
You must be signed in to change notification settings - Fork 221
/
pubspec.yaml
263 lines (240 loc) · 10.8 KB
/
pubspec.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
name: jh_flutter_demo
description: A new Flutter project.
# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 3.22.0+7
publish_to: 'none'
environment:
sdk: ">=3.0.0 <4.0.0"
flutter: ">=3.10.0 <4.0.0"
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
# 三方库管理
# 网站1:https://pub.flutter-io.cn
# 网站2:https://pub.dev
# dart 2.12 之后需要处理空安全
# ^ 表示 大版本不变,小版本使用最新的版本
# 三方库冲突时使用 any ,执行 flutter pub get命令,然后在pubspec.lock替换版本号
# 三方库未适配空安全,点击main.dart -> Additional arguments 添加 --no-sound-null-safety
# 网络请求 https://pub.flutter-io.cn/packages/dio
dio: ^5.7.0
# # 网络请求 https://pub.flutter-io.cn/packages/dio_http_cache
# dio_http_cache: ^0.3.0
# 监测网络状态 https://pub.flutter-io.cn/packages/connectivity_plus
connectivity_plus: ^6.0.5
# 路由管理 https://pub.flutter-io.cn/packages/fluro
fluro: ^2.0.5
# 状态管理 https://pub.flutter-io.cn/packages/provider
provider: ^6.1.2
# 国际化 https://pub.flutter-io.cn/packages/intl
intl: 0.19.0
# 屏幕参数适配 https://pub.flutter-io.cn/packages/flutter_screenutil
flutter_screenutil: ^5.9.3
# 常用工具类库(本地化 屏幕适配) https://pub.flutter-io.cn/packages/flustars
# flustars: ^2.0.1
# flustars很久不维护,可以使用这个替代 https://pub.flutter-io.cn/packages/flustars_flutter3
flustars_flutter3: ^3.0.0
# 加密 https://pub.flutter-io.cn/packages/encrypt
encrypt: ^5.0.3
# 本地化存储 https://pub.flutter-io.cn/packages/shared_preferences
shared_preferences: ^2.3.2
# sq https://pub.flutter-io.cn/packages/sqflite
sqflite: ^2.3.3+1
# webview https://pub.flutter-io.cn/packages/webview_flutter
webview_flutter: 4.8.0
# url打开工具 https://pub.flutter-io.cn/packages/url_launcher
url_launcher: ^6.3.0
# 打开地图工具 https://pub.flutter-io.cn/packages/map_launcher
map_launcher: ^3.5.0
# 处理键盘事件 https://pub.flutter-io.cn/packages/keyboard_actions
keyboard_actions: ^4.2.0
# 时间格式转换 https://pub.flutter-io.cn/packages/date_format
date_format: ^2.0.9
# 图片缓存 https://pub.flutter-io.cn/packages/cached_network_image
cached_network_image: ^3.4.1
# 图片手势 https://pub.flutter-io.cn/packages/photo_view
photo_view: ^0.15.0
# 手机权限 https://pub.flutter-io.cn/packages/permission_handler
permission_handler: ^11.3.1
# 图片视频选择器(微信UI) https://pub.flutter-io.cn/packages/wechat_assets_picker
wechat_assets_picker: ^9.2.1
# 拍照与录像(微信UI) https://pub.flutter-io.cn/packages/wechat_camera_picker
wechat_camera_picker: ^4.3.2
# 获取安卓iOS设备信息 https://pub.flutter-io.cn/packages/device_info_plus
device_info_plus: ^10.1.2
# 获取版本信息 https://pub.flutter-io.cn/packages/package_info_plus
package_info_plus: ^8.0.2
# 图片库 https://pub.flutter-io.cn/packages/cupertino_icons
cupertino_icons: ^1.0.8
# toast https://pub.flutter-io.cn/packages/jhtoast
jhtoast: ^1.2.0
# 加载框 https://pub.flutter-io.cn/packages/bot_toast
bot_toast: ^4.1.3
# 弹框 https://pub.flutter-io.cn/packages/fluttertoast
fluttertoast: ^8.2.8
# 底部弹出 日期选择器 单列多列 https://pub.flutter-io.cn/packages/flutter_picker
# flutter_picker: ^2.1.0
# 底部弹出 日期选择器 单列多列 https://pub.flutter-io.cn/packages/flutter_picker_plus
flutter_picker_plus: ^1.3.0
# NestedScrollView https://pub.flutter-io.cn/packages/extended_nested_scroll_view
extended_nested_scroll_view: ^6.2.1
# 下拉刷新(flutter_easyrefresh 3.0版本) https://pub.flutter-io.cn/packages/easy_refresh
easy_refresh: ^3.4.0
# 加载动画 https://pub.flutter-io.cn/packages/flutter_spinkit
flutter_spinkit: ^5.2.1
# 骨架屏 https://pub.flutter-io.cn/packages/shimmer
shimmer: ^3.0.0
# 下拉刷新 https://pub.flutter-io.cn/packages/flutter_easyrefresh
flutter_easyrefresh: ^2.2.2
# 下拉刷新 https://pub.flutter-io.cn/packages/pull_to_refresh
pull_to_refresh: ^2.0.0
# 列表悬浮头 https://pub.flutter-io.cn/packages/sticky_headers
sticky_headers: ^0.3.0+2
# 进度条 https://pub.flutter-io.cn/packages/percent_indicator
percent_indicator: ^4.2.3
# 侧滑删除 https://pub.flutter-io.cn/packages/flutter_slidable
flutter_slidable: ^3.1.1
# 小红点 https://pub.flutter-io.cn/packages/badges
badges: ^3.1.2
# 图表(EChart Flutter版) https://pub.flutter-io.cn/packages/graphic
graphic: ^2.5.0
# EChart 图表(缩放手势冲突,不稳定) https://pub.flutter-io.cn/packages/flutter_echarts
flutter_echarts: 2.5.0
# 图表 (没有图例) https://pub.flutter-io.cn/packages/charts_flutter
# charts_flutter: ^0.12.0
# charts_flutter 不再维护,使用这个替代 https://pub.flutter-io.cn/packages/community_charts_flutter
community_charts_flutter: ^1.0.4
# 图表 https://pub.flutter-io.cn/packages/fl_chart
# fl_chart: ^0.55.2
# 二维码生成 https://pub.flutter-io.cn/packages/qr_flutter
qr_flutter: ^4.1.0
# 二维码扫描(跳页面) https://pub.flutter-io.cn/packages/mobile_scanner
mobile_scanner: ^5.2.3
# 二维码扫描(跳页面) https://pub.flutter-io.cn/packages/qr_code_scanner
qr_code_scanner: ^1.0.1
# 二维码扫描 https://pub.flutter-io.cn/packages/barcode_scan2
# barcode_scan2: ^4.3.3
# 轮播 https://pub.flutter-io.cn/packages/flutter_swiper
# flutter_swiper: ^1.1.6
# Flutter 轮播图 https://pub.flutter-io.cn/packages/flutter_swiper_null_safety_flutter3
# flutter_swiper很久不维护,可以使用这个替代,2.0.0支持flutter3.0.0,3.0.0支持flutter3.3.0,3.0.1支持flutter3.7.0
flutter_swiper_null_safety_flutter3: ^4.0.3
# 轮播 https://pub.flutter-io.cn/packages/carousel_slider
carousel_slider: ^5.0.0
# 城市选择列表 https://pub.flutter-io.cn/packages/azlistview
azlistview: ^2.0.0
# 汉字转拼音 https://pub.flutter-io.cn/packages/lpinyin
lpinyin: ^2.0.3
# 拖拽排序 https://pub.flutter-io.cn/packages/reorderables
reorderables: ^0.6.0
# 动画 https://pub.flutter-io.cn/packages/animate_do
animate_do: ^3.3.4
# 波浪动画 https://pub-web.flutter-io.cn/packages/wave
wave: ^0.2.2
# lottie动画 https://pub-web.flutter-io.cn/packages/lottie
lottie: ^3.1.2
# 打开文件 https://pub.flutter-io.cn/packages/open_filex
open_filex: ^4.5.0
# 打开文件 https://pub.flutter-io.cn/packages/open_file_plus
# open_file_plus: 3.4.1
# 后台文件下载 https://pub.flutter-io.cn/packages/flutter_downloader
# flutter_downloader: ^1.11.4
# 使用国际化 https://pub-web.flutter-io.cn/packages/get
get: ^4.6.6
# ----- 废弃 -----
# 图片选择(改为使用wechat_assets_picker) https://pub.flutter-io.cn/packages/image_picker
# image_picker: ^0.8.5+3
# # 加载框,华为手机有异常 https://pub.flutter-io.cn/packages/oktoast
# oktoast: ^3.1.4
# 与flutter2.0冲突
# 注:Flutter版本升到2.0.3之后,使用以下库写的图片多选选择器和mp_chart图表,暂时先注释了代码,如需查看可按tag v1.0.0版本环境运行查看
# 相册多图选择 https://pub.flutter-io.cn/packages/photo
# photo: 0.4.8
# multi_image_picker: ^4.6.1
# 图表(没有提示栏) https://pub.flutter-io.cn/packages/mp_chart
# mp_chart: ^0.3.1 #latest version
# ----- 废弃 -----
dependency_overrides:
# Pub get 没被覆盖,可删除或修复flutterSDk .pub-cache 中的所有依赖项
# 运行命令:flutter pub cache clean 或 flutter pub cache repair 后删除 bin/cache路径下的lockfile重试
# 如果引用了GitHub的库,要确保能访问GitHub
# wechat_camera_picker引用,有警告
camera: 0.10.3+2
# charts_flutter引用
intl: ^0.18.1
# ----- flutter_echarts已更新,不再需要 -----
# fix flutter_echarts ^2.4.0 requires webview_flutter ^3.0.4.
# flutter_echarts:
# git:
# url: https://github.com/sirkalmi/flutter_echarts.git
# ref: c65629
# ----- flutter_echarts已更新,不再需要 -----
dev_dependencies:
flutter_test:
sdk: flutter
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
# The following section is specific to Flutter.
flutter:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true
assets:
- assets/images/
- assets/images/common/
- assets/images/common/empty/
- assets/images/funcMenu/
- assets/images/newFeature/
- assets/images/picture/
- assets/images/popMenus/
- assets/images/tab/
- assets/images/service/
- assets/images/demos/
- assets/wechat/
- assets/wechat/home/
- assets/wechat/contacts/
- assets/wechat/contacts/add/
- assets/wechat/discover/
- assets/wechat/discover/friends/
- assets/wechat/mine/
- assets/lottie/
#假数据
- lib/res/china.json
- lib/res/wx_contacts.json
- lib/res/wx_motion_top.json
- lib/res/wx_friends_circle.json
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware.
# For details regarding adding assets from package dependencies, see
# https://flutter.dev/assets-and-images/#from-packages
# To add custom fonts to your application, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
# list giving the asset and other descriptors for the font. For
# example:
# fonts:
# - family: Schyler
# fonts:
# - asset: fonts/Schyler-Regular.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
# - asset: fonts/TrajanPro_Bold.ttf
# weight: 700
#
# For details regarding fonts from package dependencies,
# see https://flutter.dev/custom-fonts/#from-packages