-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpubspec.yaml
153 lines (125 loc) · 4.51 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
# 各种开发生态或编程语言官方通常都会提供一些包管理工具,比如在 Android 提供了 Gradle 来管理依赖,
# iOS 用 Cocoapods 或 Carthage 来管理依赖,Node 中通过 npm 等
# YAML 是一种直观、可读性高并且容易被人类阅读的文件格式,和 xml 或 Json 相比它语法简单并非常容易解析,
# 所以 YAML 常用于配置文件,Flutter 也是用 yaml 文件作为其配置文件。Flutter 项目默认的配置文件是pubspec.yaml,
# 项目名称
name: weiChatDemo
#项目描述
description: A new Flutter application.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0
environment:
# sdk: ">2.17.0 <=3.1.3"
sdk: ">=3.0.0 <4.0.0" # dart >= 3.0 会支持 Record 和 Pattern
# 打包的时候也会放进去
# 项目的第三方插件
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.6
http: ^1.1.0
dio: ^5.3.3 #大版本不变得区间写法 相当于 '>=3.0.9 < 4.0.0'
image_picker: ^1.0.4
# logic_index_bar: ^0.0.2
provider: ^6.1.1
# fish_redux: ^0.3.7
sqflite: ^2.0.0+3
signature: ^5.4.1
sign_in_with_apple: ^6.1.3
# firebase_auth: ^3.0.1
google_sign_in: ^5.0.0
get: ^4.6.6
event_bus: ^2.0.0
intl: ^0.19.0 #^0.18.1
# intl_translation: ^0.17.2
after_layout: ^1.2.0
# flukit: ^3.0.1
path_provider: ^2.1.2
web_socket_channel: ^2.4.0
json_annotation: ^4.8.1
easy_debounce: ^2.0.3 # 防抖和节流处理
flutter_launcher_icons: ^0.13.1 # AppIcon 图标
flutter_native_splash: ^2.4.1 # splash 展示 2.3.10
scrollable_positioned_list: ^0.3.8
sliding_up_panel: ^2.0.0+1
flutter_bloc: ^8.1.5
pull_to_refresh: ^2.0.0
card_swiper: ^3.0.1
flutter_screenutil: ^5.9.0
badges: ^3.1.2
flutter_staggered_grid_view: ^0.7.0
screenshot: ^3.0.0
screen_protector: ^1.4.2+1
fluttertoast: ^8.2.8
image_gallery_saver: ^2.0.3
# go_router: 12.1.3
go_router: 14.3.0
system_info_plus: ^0.0.5 #获取设备内存信息
# dio: 3.0.9 指定版本
# dio: any 任意版本
# dio: '>3.0.9' #大于
#仅在开发调试的时候使用
dev_dependencies:
json_model: ^1.0.0 # 运行 dart run json_model(Dart VM工程) or flutter packages pub run json_model
json_serializable: ^6.7.1
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
# To add assets to your application, add an assets section, like this:
assets:
# - packages/logic_index_bar/images/气泡.png
- images/
- assets/
- assets/app_icon/
# 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
#flutter_intl:
# enabled: true
flutter_launcher_icons: # create new AppIcon => $ dart run flutter_launcher_icons
image_path: "assets/app_icon/appIcon.png"
android: true
ios: true
ipads: true
remove_alpha_ios: true
min_sdk_android: 24 #current android min sdk default 24
flutter_native_splash: # dart run flutter_native_splash:create
color: "#000000"
image: assets/splash/splash.png
color_dark: "#000000"
android_12:
image: assets/splash/splash.png
icon_background_color: "#000000"
icon_background_color_dark: "#000000"
web: false