Files
flutter_common/pubspec.yaml
wuxinglong 179ce76a53 feat(upload_image): 支持微信资源选择及图片压缩上传
- 集成 wechat_assets_picker 库实现图片和视频选择
- 使用 flutter_image_compress 库对选中图片进行压缩处理
- 替换原有 ImagePicker,实现多图片和视频的资源选取功能
- 压缩后图片保存为临时文件再进行上传
- 优化上传过程,兼容视频和图片的不同处理流程
- 简化回调调用代码,提升代码可读性与一致性
2026-02-06 13:46:55 +08:00

89 lines
2.6 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: flutter_common
description: "A new Flutter project."
version: 0.0.1
homepage:
environment:
sdk: ^3.6.2
flutter: ">=1.17.0"
dependencies:
flutter:
sdk: flutter
dio: ^5.1.1
flutter_easyloading: ^3.0.0
sticky_headers: ^0.3.0+2 #日历需要
get: ^4.6.5
easy_debounce: ^2.0.3
flutter_screenutil: ^5.9.0
flustars_flutter3: ^3.0.0 #工具类 SpUtilScreenUtil, DirectoryUtil等等。
pull_to_refresh: ^2.0.0
permission_handler: ^11.1.0
flutter_staggered_grid_view: ^0.7.0 #瀑布流
image_picker: ^1.1.0 #相册单选
# images_picker: ^1.2.11 #相册多选
image_gallery_saver_plus: ^4.0.1 #保存到相册
photo_view: ^0.15.0 #查看大图
flutter_widget_from_html_core: ^0.16.0 #html
# flutter_html: ^3.0.0
transparent_image: ^2.0.1 #图片懒加载
# flutter_cached_pdfview: ^0.4.3 #pdf文件
# webview_flutter: ^4.8.0
video_player: ^2.10.0 #视频
# perfect_volume_control: ^1.0.5 #声音
screen_brightness: ^2.1.7 #亮度
provider: ^6.0.3
# wakelock: ^0.6.2
wakelock_plus: ^1.2.5
url_launcher: ^6.1.10
flutter_inappwebview: ^6.1.5
device_info_plus: ^11.3.0
image_editor_plus: ^1.0.6
path_provider: ^2.1.5
cached_network_image: ^3.4.1
wechat_assets_picker: ^10.1.0
flutter_image_compress: ^2.4.0
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^5.0.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 packages.
flutter:
# To add assets to your package, add an assets section, like this:
assets:
- assets/images/
# - images/a_dot_ham.jpeg
#
# For details regarding assets in packages, see
# https://flutter.dev/to/asset-from-package
#
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/to/resolution-aware-images
# To add custom fonts to your package, 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 in packages, see
# https://flutter.dev/to/font-from-package