-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpubspec.yaml
More file actions
123 lines (108 loc) · 5.12 KB
/
pubspec.yaml
File metadata and controls
123 lines (108 loc) · 5.12 KB
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
name: flutterapp
description: A new Flutter application.
# 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.
# Read more about versioning at semver.org.
version: 1.1.0
#表示,当前工程兼容版本号大于等于2.12.0并且小于3.0.0的Dart版本的语法;
#我们也可以手动添加上Flutter的版本号,比如:
#dart复制代码environment:
# sdk: ">=2.19.0 <3.13.6"
# flutter: "1.22.0"
environment:
sdk: ">=2.19.0 <3.13.6"
# 我们机器上的flutter版本,我们也可以在此处添加version来指定flutter的版本;
# dart复制代码dependencies:
# flutter:
# sdk: flutter
# version: "2.5.3"
dependencies:
flutter:
sdk: flutter
# 这些第三方的版本号有以下几种写法:
#
#不指定/any:这个时候,默认加载最新的版本;但是一般我们不推荐这样写,因为版本的变化可能会引起调用方式发生变化,导致项目编译出错;
#x.y.z:明确指定使用某一个版本号;
#<=x.y.z/<x.y.z:使用小于或者小于等于某一个版本的包,这种方式,版本号需要加引号;
#>=x.y.z <x.y.z:指定使用某一个区间的版本,这种方式,版本号需要加引号;
#^x.y.z:此种方式最为常见,也是比较推荐使用的方式。意为在大版本不变的情况下,使用最新的小版本;例如:^2.12.0相当于>=2.12.0 <3.0.0;
provider: ^6.0.2
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
# dev_dependencies配置项与dependencies的配置基本相似,都是配置应用程序所依赖的包;
#不同的是,dependencies下配置的依赖包会被编译到项目中,而dev_dependencies配置的仅仅是运行期间的包;
dev_dependencies:
flutter_test:
sdk: flutter
# For information on the generic Dart part of this file, see the
# following page: https://www.dartlang.org/tools/pub/pubspec
# The following section is specific to Flutter.资源的配置也是在这个配置下进行设置:
#assets:配置图片;
#fonts:配置字体;
#plugin:该配置只存在于插件项目中,用来配置适配的平台,一般不要修改;如需添加新平台,直接添加即可;
#需要注意的是,此文件中的配置一定要特别注意格式与缩进,否则配置将可能无法生效;
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:
- lib/kupai/image/icon_splash.jpg
- lib/kupai/image/icon_location_address.png
- lib/kupai/image/icon_video.png
- lib/kupai/image/icon_audio3.png
- lib/kupai/image/dis_left_quote.png
- lib/kupai/image/dis_right_quote.png
- lib/kupai/image/icon_supper_defoult_bg.webp
- lib/kupai/image/supplier_level/ins_level_1.png
- lib/kupai/image/supplier_level/ins_level_2.png
- lib/kupai/image/supplier_level/ins_level_3.png
- lib/kupai/image/supplier_level/ins_level_4.png
- lib/kupai/image/supplier_level/ins_level_5.png
- lib/kupai/image/supplier_level/ins_level_6.png
- lib/kupai/image/supplier_level/ins_level_7.png
- lib/kupai/image/supplier_level/ins_level_8.png
- lib/kupai/image/supplier_level/ins_level_9.png
- lib/kupai/image/supplier_level/ins_level_10.png
- lib/kupai/image/supplier_level/ins_level_11.png
- lib/kupai/image/supplier_level/ins_level_12.png
- lib/kupai/image/high_quality.png
- lib/kupai/image/icon_pai_blue.png
- lib/kupai/image/icon_arrow.png
- lib/kupai/file/file.txt
- lib/kupai/file/fileerror.txt
- lib/image/Activity_.png
# To add assets to your application, add an assets section, like this:
# assets:
# - images/a_dot_burr.jpeg
# - images/a_dot_ham.jpeg
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.io/assets-and-images/#resolution-aware.
# For details regarding adding assets from package dependencies, see
# https://flutter.io/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.io/custom-fonts/#from-packages