-
Notifications
You must be signed in to change notification settings - Fork 119
/
pubspec.yaml
104 lines (90 loc) · 3.19 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
name: flutter_use
description: A new Flutter application.
# The following line prevents the package from being accidentally published to
# pub.dev using `pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.1+1
environment:
sdk: ">=2.12.0 <4.0.0"
dependencies:
flutter:
sdk: flutter
# 编译web命令
# - 代理: export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890
# - bash publish_web.sh
cupertino_icons: ^1.0.6
# getx 状态管理框架 https://pub.flutter-io.cn/packages/get
# import 'dart:html' as html; to import 'package:web/web.dart' as html;
get: 5.0.0-release-candidate-9.2.1
# 状态管理框架 https://pub.dev/packages/flutter_bloc
flutter_bloc:
# 状态管理框架 https://pub.dev/packages/provider
provider:
# 网络请求 https://pub.flutter-io.cn/packages/dio
dio: 5.0.1
# https://pub.flutter-io.cn/packages/logger
logger:
# 时间滚轮选择器 https://pub.dev/packages/flutter_picker
flutter_picker:
# 图片选择器 https://pub.dev/packages/wechat_assets_picker
# wechat_assets_picker: 7.3.2
# 预览图片 https://pub.dev/packages/photo_view
photo_view:
# iOS数字键盘添加收起按钮 https://pub.dev/packages/keyboard_actions
keyboard_actions:
# 用于处理widget是否可见检测 https://pub.flutter-io.cn/packages/visibility_detector
visibility_detector:
# 本地缓存 https://pub.flutter-io.cn/packages/shared_preferences
# shared_preferences:
# 轮播图: https://pub.dev/packages/card_swiper
card_swiper:
# 设置桌面端: https://pub.dev/packages/window_manager
window_manager: 0.3.0
# https://pub.dev/packages/tolyui_navigation
tolyui_navigation: 0.0.8+10
# https://pub.dev/packages/universal_html/install
universal_html: ^2.2.1
# https://pub.dev/packages/code_preview/install
code_preview: ^0.1.2
# code_preview:
# path: ../code_preview
# 弹窗控件 https://github.com/CNAD666/flutter_smart_dialog
flutter_smart_dialog: ^4.9.8+5
# flutter_smart_dialog:
# path: ../flutter_smart_dialog
# 一个命令行工具,针对flutter web加载慢和缓存问题提供了一套解决方案
# https://pub.flutter-io.cn/packages/flutter_web_optimizer
# flutter_web_optimizer: ^1.1.9
# flutter_web_optimizer:
# path: ../flutter_web_optimizer
# flutter_boost:
# git:
# url: 'https://github.com/alibaba/flutter_boost.git'
# ref: '4.2.0'
dev_dependencies:
flutter_test:
sdk: flutter
# flutter_lints库:https://pub.dev/packages/flutter_lints
flutter_lints: ^1.0.4
flutter:
uses-material-design: true
# To add assets to your application, add an assets section, like this:
assets:
- assets/
- lib/widgets/
- assets/fonts/
- lib/widgets/show/
- lib/widgets/show_attach/
- lib/widgets/show_notify/
- lib/widgets/show_loading/
- lib/widgets/show_toast/
- lib/widgets/other/
fonts:
- family: IconFont
fonts:
- asset: assets/fonts/iconfont.ttf
- family: Roboto
fonts:
- asset: assets/fonts/Roboto-Regular.ttf
code_helper:
auto_folder: [ "assets/", "lib/widgets/" ]