加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
pubspec.yaml 7.22 KB
一键复制 编辑 原始数据 按行查看 历史
zhangxiao 提交于 2020-09-11 14:12 . 录制视频 压缩修改
name: flutter_code_framework
description: A new Flutter project.
version: 0.1.18+18
environment:
sdk: ">=2.2.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
#国际化 xush
# flutter_localizations:
# sdk: flutter
flutter_cupertino_localizations: ^1.0.1
# 【重要提示】添加第三方包,需备注对应用途功能、引入路径、调用方式、添加人员名称 (有demo可以备注demo文件路径)
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
# 项目初始化自带
cupertino_icons: ^0.1.2
# 苹果 SF Symbols 图标库 快速构建项目使用 xushuhao
# import 'package:flutter_sfsymbols/flutter_sfsymbols.dart';
# Icon(SFSymbols.airplane);
flutter_sfsymbols: ^1.0.0
# Google推荐 状态管理工具 xushuhao 【需要全局定义,尽量控制以防滥用】
# import 'package:provider/provider.dart';
# 功能:自动维护多个widgets直接的状态同步,不再需要回调手动setState .
provider: ^4.0.5
# Flutter 本地存储 xushuhao
# import 'package:shared_preferences/shared_preferences.dart';
shared_preferences: ^0.5.6+3
# json序列化工具 xushuhao
# import 'package:json_annotation/json_annotation.dart';
json_annotation: ^3.0.1
# Toast提示 xushuhao
# import 'package:fluttertoast/fluttertoast.dart';
fluttertoast: ^4.0.1
# http 工具包 xushuhao
# import 'package:dio/dio.dart';
dio: ^3.0.9
# 消息总线 订阅广播 xushuhao
# import 'package:event_bus/event_bus.dart';
event_bus: ^1.1.1
# 播放器 import 'package:video_player/video_player.dart'; 需真机调试 xush
video_player: ^0.10.10
# import 'package:orientation/orientation.dart'; xush
orientation: ^1.2.0
# 强制横竖屏切换 import 'package:auto_orientation/auto_orientation.dart'; xush
auto_orientation: ^1.0.6
# 控制屏幕亮度以及屏幕常亮组件 import 'package:screen/screen.dart'; xush
screen: ^0.0.5
# dart常用工具包 import 'package:common_utils/common_utils.dart'; xush
common_utils: ^1.1.3
# flutter常用工具包 依赖common_utils import 'package:flustars/flustars.dart'; xush
flustars: ^0.2.6+1
# 录制视频、拍照 import 'package:camera/camera.dart'; xush
camera: ^0.5.8+1
#视频压缩 import 'package:video_compress/video_compress.dart'; zx
video_compress: ^2.0.0
# 录音插件 import 'package:flutter_plugin_record/flutter_plugin_record.dart'; 高富强
flutter_plugin_record: ^0.1.4
#flutter可展开选项的浮动按钮 import 'package:flutter_speed_dial/flutter_speed_dial.dart'; yudianyun
flutter_speed_dial: ^1.2.5
# 音频播放插件 import 'package:audioplayers/audioplayers.dart'; 高富强
audioplayers: ^0.15.1
#Listview 左滑菜单 xush
flutter_slidable: ^0.5.4
#自定义相册 xush import 'package:multi_image_picker/multi_image_picker.dart';
multi_image_picker: ^4.6.7
#相册、拍照 单选 原生控件 xush import 'package:image_picker/image_picker.dart';
image_picker: ^0.6.7+1
#权限授予 import 'package:permission_handler/permission_handler.dart'; yudianyun
permission_handler: ^3.0.0
#画图 import 'package:painter/pinter.dart'; yudianyun
painter: ^0.4.0
#图片保存 import 'package:image_gallery_saver/image_gallery_saver.dart'; yudianyun
image_gallery_saver: ^1.2.2
#图片处理 import 'package:extended_image/extended_image.dart'; yudianyun
extended_image: ^0.8.0
#获取app 原生包信息包括AppName Verstion等 xush import 'package:package_info/package_info.dart';
package_info: ^0.4.1
#系统打开文件 import 'package:open_file/open_file.dart'; xush
open_file: ^3.0.1
#文件、目录系统相关 import 'package:path_provider/path_provider.dart'; xush
path_provider: ^1.6.10
#下载 import 'package:flutter_downloader/flutter_downloader.dart'; xush
flutter_downloader: ^1.4.4
#进度条 import 'package:progress_dialog/progress_dialog.dart'; xush
progress_dialog: ^1.2.4
#import 'package:url_launcher/url_launcher.dart'; xush
url_launcher: ^5.4.11
#import 'package:install_plugin/install_plugin.dart'; xush
install_plugin: ^2.0.1
# 打开网页 安卓9.0及以上不支持http协议,如网页遇到打不开,先执行命令:flutter clean , import 'package:flutter_webview_plugin/flutter_webview_plugin.dart'; zx
flutter_webview_plugin: ^0.3.11
#import 'package:flutter_easyloading/flutter_easyloading.dart';一个简单易用的Flutter Loading插件 yudianyun
flutter_easyloading: ^1.1.3
#import 'package:cached_network_image/cached_network_image.dart';yudianyun
cached_network_image: ^2.2.0+1
#import 'package:percent_indicator/percent_indicator.dart';yudianyun
percent_indicator: ^2.1.5
dev_dependencies:
flutter_test:
sdk: flutter
build_runner: ^1.8.1
#import 'package:json_serializable/json_serializable.dart';
json_serializable: ^3.3.0
# 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:
# startup_page
- lib/assets/images/startup_page/app_name.png
- lib/assets/images/startup_page/ck_logo.png
# tabbar
- lib/assets/images/tabbar/beike.png
- lib/assets/images/tabbar/banji.png
- lib/assets/images/tabbar/ziyuan.png
- lib/assets/images/tabbar/wode.png
- lib/assets/images/tabbar/beike_used.png
- lib/assets/images/tabbar/banji_used.png
- lib/assets/images/tabbar/ziyuan_used.png
- lib/assets/images/tabbar/wode_used.png
# 架构公用
- lib/assets/images/base/empty.png
- lib/assets/images/base/error.png
# voice 音频强度 高富强
- lib/assets/images/voice/voice_volume_1.png
- lib/assets/images/voice/voice_volume_2.png
- lib/assets/images/voice/voice_volume_3.png
- lib/assets/images/voice/voice_volume_4.png
- lib/assets/images/voice/voice_volume_5.png
- lib/assets/images/voice/voice_volume_6.png
- lib/assets/images/voice/voice_volume_7.png
# image edit
#- lib/assets/images/edit/girl03.png
# image lesson
- lib/assets/images/lesson/plus.jpg
# 【重要提示】添加第三方字体,需备注用途或依赖关系
fonts:
# 第三方字体引入 xush
# - family: pf
# fonts:
# - asset: lib/assets/fonts/PingFang.ttc
# flutter_sfsymbols 依赖字体库 xushuhao
- family: sficonsets
fonts:
- asset: packages/flutter_sfsymbols/fonts/sficonsets.ttf
# 自定义ttf 测试 Icon( IconData(0xe602, fontFamily: 'myTestIcons'))
- family: myTestIcons
fonts:
- asset: lib/assets/fonts/iconfont.ttf
# - 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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化