Compare commits

52 Commits

Author SHA1 Message Date
74a5bba5f1 feat(update):添加图片长按下载 2026-04-22 11:35:25 +08:00
d6f27690c6 feat(update):更新时间组件星期显示 2026-04-16 15:49:57 +08:00
be5b5bb951 Merge branch 'main_2.0'
# Conflicts:
#	.dart_tool/package_config.json
#	.flutter-plugins-dependencies
#	.idea/libraries/Dart_Packages.xml
#	example/pubspec.lock
2026-04-16 10:43:36 +08:00
8a48c7afe2 feat(update):更新 2026-04-16 10:42:22 +08:00
d0ba890ee3 Merge remote-tracking branch 'origin/main'
# Conflicts:
#	.flutter-plugins-dependencies
#	.idea/libraries/Dart_Packages.xml
#	.idea/libraries/Flutter_Plugins.xml
#	example/pubspec.lock
#	pubspec.lock
2026-04-16 10:40:36 +08:00
d57d5ae6ec feat(update):更新 2026-04-16 10:40:12 +08:00
f107eb99f6 feat(update):更新 2026-04-16 10:39:20 +08:00
6da78ca2a5 feat(date):更新日期组件 2026-04-16 10:35:06 +08:00
7b2dd68ab3 feat(http):更新 2026-04-14 16:54:47 +08:00
faeeb52653 fix:修改响应和请求时间 2026-04-13 18:28:39 +08:00
bd452ddc82 fix(upload_image): 优化临时文件删除逻辑及提示文本显示
- 仅在jpg文件类型时删除临时文件,防止误删其他文件类型
- 修正上传图片提示中相册最大数量变量显示问题,提升用户体验
2026-02-12 17:49:13 +08:00
eb68269dc6 no message 2026-02-10 13:12:26 +08:00
12091d5c02 fix(utils): 修复图片尺寸参数拼接逻辑
- 调整图片尺寸参数根据传入的宽高动态生成
- 解决默认最小尺寸为300的逻辑问题,保证图片不会偏小
- 将错误图片组件从Container改为SizedBox,保持尺寸一致
- 修改padding计算方式,防止布局异常
- 确保图片加载URL正确拼接尺寸参数
2026-02-06 15:23:42 +08:00
fb790ba81d fix(upload_image): 限制拍摄图片的尺寸和质量
- 在使用相机拍照时设置最大高度为1080像素
- 设置最大宽度为1920像素以控制图片尺寸
- 调整图片质量为80以优化图片大小与清晰度
- 确保用户取消拍摄时正常返回
2026-02-06 14:53:35 +08:00
5d89f23ddc fix(upload_images): 优化临时文件处理与图片上传提示
- 上传图片后删除oss上传的临时文件,防止文件残留
- 选择上传方式时修正相册最大数量提示,避免显示null
- 压缩图片时创建临时目录存储压缩文件,提升文件管理安全性
- 保留压缩文件以供后续使用,避免压缩后文件被误删
2026-02-06 14:40:19 +08:00
0aea393ed0 fix(upload_image): 修复压缩图片后临时文件未删除问题
- 优化图片压缩流程后立即删除临时文件
- 避免临时文件堆积占用存储空间
- 保持压缩图片的质量和尺寸设置不变
- 确保选中的文件列表正确添加压缩文件实例
2026-02-06 14:06:47 +08:00
179ce76a53 feat(upload_image): 支持微信资源选择及图片压缩上传
- 集成 wechat_assets_picker 库实现图片和视频选择
- 使用 flutter_image_compress 库对选中图片进行压缩处理
- 替换原有 ImagePicker,实现多图片和视频的资源选取功能
- 压缩后图片保存为临时文件再进行上传
- 优化上传过程,兼容视频和图片的不同处理流程
- 简化回调调用代码,提升代码可读性与一致性
2026-02-06 13:46:55 +08:00
f8d639b3d5 feat:更新视频播放组件 2026-01-30 15:15:57 +08:00
5287f5f7cd feat:图片上传组件修复文字提示 2026-01-27 14:58:14 +08:00
5b594b471f feat:新增防抖工具类 2026-01-23 15:49:55 +08:00
c6a42fa9bb feat:新增防抖工具类 2026-01-23 15:41:31 +08:00
d19a49da0d fix:时间组件底部显示异常 2026-01-23 15:27:24 +08:00
1ea9a8bf11 no message 2026-01-20 18:05:38 +08:00
019850148f fix:图片使用图片缓存组件 2026-01-20 18:01:43 +08:00
740af2a459 fix:时间组件底部显示异常 2026-01-07 14:35:51 +08:00
0c07b6ba37 fix:时间组件底部显示异常 2026-01-07 14:11:19 +08:00
d8e4cfdaf9 fix:时间组件底部显示异常 2026-01-07 14:09:00 +08:00
d2e7d8f0af fix:播放插件切换名字 2026-01-06 15:34:32 +08:00
378303a8ef fix:播放插件切换名字 2026-01-06 15:27:05 +08:00
24dc8c5778 fix:视频播放组件rename 2026-01-05 17:49:02 +08:00
922be46a26 feat:新增视频播放组件 2026-01-05 17:43:34 +08:00
14c081c0e3 fix:优化上传图片组件数量限制 2025-12-26 17:37:01 +08:00
d4644e00e6 no message 2025-12-26 17:33:57 +08:00
96313fa03d Merge remote-tracking branch 'origin/main' 2025-12-26 17:33:43 +08:00
b329b3394d fix:优化上传图片组件数量限制 2025-12-26 17:33:21 +08:00
3e2f011463 feat(http):http webview top 2025-12-22 11:26:28 +08:00
ff3c7402a9 feat(http):http webview top 2025-12-19 18:06:05 +08:00
70e7fe99af feat(http):http webview 2025-12-19 17:43:20 +08:00
1b3d25ef39 feat(http):http webview 2025-12-19 17:36:03 +08:00
1aa3eb38f1 Merge remote-tracking branch 'origin/main' 2025-12-08 14:04:19 +08:00
6beb008489 feat(http):http webview 2025-12-08 14:04:04 +08:00
76e45db37d feat:优化加载提示文案 2025-12-03 10:16:27 +08:00
5befd4d1c8 feat(http):http webview 2025-11-21 16:26:08 +08:00
eadf95609d Merge remote-tracking branch 'origin/main' 2025-11-20 14:38:37 +08:00
682308d93c feat(http):http 取消转圈 2025-11-20 14:38:25 +08:00
11d2bd02ff no message 2025-11-17 17:47:26 +08:00
aaae40ae02 feat:增加图片编辑显示参数 2025-11-17 16:01:13 +08:00
4ab9a5ad18 feat:暴露出编辑图片功能是否显示 2025-11-17 15:54:21 +08:00
b086c5c5c9 fix:增加非空调试 2025-11-14 14:12:47 +08:00
f2ab06e4bb no message 2025-11-14 13:55:55 +08:00
13d5a31197 feat:调整上传逻辑 2025-11-14 13:43:24 +08:00
f0f8d9ef69 feat:增加参数 2025-11-14 11:35:45 +08:00
43 changed files with 4576 additions and 1921 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,3 +1,7 @@
archive
3.0
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/archive-4.0.7/
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/archive-4.0.7/lib/
args args
3.3 3.3
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/args-2.7.0/ file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/args-2.7.0/
@@ -22,6 +26,10 @@ collection
3.4 3.4
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/collection-1.19.0/ file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/collection-1.19.0/
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/collection-1.19.0/lib/ file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/collection-1.19.0/lib/
colorfilter_generator
2.15
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/colorfilter_generator-0.0.8/
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/colorfilter_generator-0.0.8/lib/
common_utils common_utils
2.12 2.12
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/common_utils-2.1.0/ file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/common_utils-2.1.0/
@@ -66,6 +74,14 @@ dio_web_adapter
3.3 3.3
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/dio_web_adapter-2.1.1/ file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/dio_web_adapter-2.1.1/
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/dio_web_adapter-2.1.1/lib/ file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/dio_web_adapter-2.1.1/lib/
extended_image
2.18
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/extended_image-8.3.1/
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/extended_image-8.3.1/lib/
extended_image_library
3.2
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/extended_image_library-4.0.6/
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/extended_image_library-4.0.6/lib/
fake_async fake_async
2.12 2.12
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/fake_async-1.3.1/ file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/fake_async-1.3.1/
@@ -94,6 +110,14 @@ file_selector_windows
3.4 3.4
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/file_selector_windows-0.9.3+4/ file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/file_selector_windows-0.9.3+4/
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/file_selector_windows-0.9.3+4/lib/ file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/file_selector_windows-0.9.3+4/lib/
flex_color_picker
3.0
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/flex_color_picker-3.7.1/
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/flex_color_picker-3.7.1/lib/
flex_seed_scheme
3.0
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/flex_seed_scheme-3.5.1/
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/flex_seed_scheme-3.5.1/lib/
flustars_flutter3 flustars_flutter3
2.12 2.12
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/flustars_flutter3-3.0.0/ file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/flustars_flutter3-3.0.0/
@@ -158,10 +182,18 @@ flutter_widget_from_html_core
3.4 3.4
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/flutter_widget_from_html_core-0.16.1/ file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/flutter_widget_from_html_core-0.16.1/
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/flutter_widget_from_html_core-0.16.1/lib/ file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/flutter_widget_from_html_core-0.16.1/lib/
font_awesome_flutter
3.0
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/font_awesome_flutter-10.9.1/
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/font_awesome_flutter-10.9.1/lib/
get get
2.15 2.15
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/get-4.7.2/ file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/get-4.7.2/
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/get-4.7.2/lib/ file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/get-4.7.2/lib/
hand_signature
3.0
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/hand_signature-3.1.0+2/
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/hand_signature-3.1.0+2/lib/
html html
3.2 3.2
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/html-0.15.6/ file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/html-0.15.6/
@@ -170,10 +202,22 @@ http
3.4 3.4
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/http-1.5.0/ file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/http-1.5.0/
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/http-1.5.0/lib/ file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/http-1.5.0/lib/
http_client_helper
2.12
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/http_client_helper-3.0.0/
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/http_client_helper-3.0.0/lib/
http_parser http_parser
3.4 3.4
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/http_parser-4.1.2/ file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/http_parser-4.1.2/
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/http_parser-4.1.2/lib/ file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/http_parser-4.1.2/lib/
image
3.0
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/image-4.5.4/
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/image-4.5.4/lib/
image_editor_plus
2.17
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/image_editor_plus-1.0.6/
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/image_editor_plus-1.0.6/lib/
image_gallery_saver_plus image_gallery_saver_plus
3.5 3.5
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/image_gallery_saver_plus-4.0.1/ file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/image_gallery_saver_plus-4.0.1/
@@ -214,6 +258,10 @@ intl
3.3 3.3
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/intl-0.20.2/ file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/intl-0.20.2/
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/intl-0.20.2/lib/ file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/intl-0.20.2/lib/
js
3.1
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/js-0.7.1/
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/js-0.7.1/lib/
leak_tracker leak_tracker
3.2 3.2
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/leak_tracker-10.0.7/ file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/leak_tracker-10.0.7/
@@ -242,6 +290,10 @@ material_color_utilities
2.17 2.17
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/material_color_utilities-0.11.1/ file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/material_color_utilities-0.11.1/
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/material_color_utilities-0.11.1/lib/ file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/material_color_utilities-0.11.1/lib/
matrix2d
2.12
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/matrix2d-1.0.4/
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/matrix2d-1.0.4/lib/
meta meta
2.12 2.12
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/meta-1.15.0/ file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/meta-1.15.0/
@@ -330,6 +382,10 @@ plugin_platform_interface
3.0 3.0
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/plugin_platform_interface-2.1.8/ file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/plugin_platform_interface-2.1.8/
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/plugin_platform_interface-2.1.8/lib/ file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/plugin_platform_interface-2.1.8/lib/
posix
3.0
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/posix-6.0.3/
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/posix-6.0.3/lib/
provider provider
2.12 2.12
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/provider-6.1.5+1/ file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/provider-6.1.5+1/
@@ -342,6 +398,10 @@ rational
2.14 2.14
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/rational-2.2.3/ file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/rational-2.2.3/
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/rational-2.2.3/lib/ file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/rational-2.2.3/lib/
reorderables
2.12
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/reorderables-0.6.0/
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/reorderables-0.6.0/lib/
screen_brightness screen_brightness
3.0 3.0
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/screen_brightness-2.1.7/ file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/screen_brightness-2.1.7/
@@ -370,6 +430,10 @@ screen_brightness_windows
3.0 3.0
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/screen_brightness_windows-2.1.0/ file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/screen_brightness_windows-2.1.0/
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/screen_brightness_windows-2.1.0/lib/ file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/screen_brightness_windows-2.1.0/lib/
screenshot
2.12
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/screenshot-3.0.0/
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/screenshot-3.0.0/lib/
shared_preferences shared_preferences
3.5 3.5
file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/shared_preferences-2.5.3/ file:///Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/shared_preferences-2.5.3/

View File

@@ -1 +1 @@
3.27.4 3.38.5

55
.flutter-plugins Normal file
View File

@@ -0,0 +1,55 @@
# This is a generated file; do not edit or check into version control.
device_info_plus=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/device_info_plus-11.3.0/
file_selector_linux=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/file_selector_linux-0.9.3+2/
file_selector_macos=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/file_selector_macos-0.9.4+3/
file_selector_windows=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/file_selector_windows-0.9.3+4/
flutter_inappwebview=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/flutter_inappwebview-6.1.5/
flutter_inappwebview_android=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/flutter_inappwebview_android-1.1.3/
flutter_inappwebview_ios=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/flutter_inappwebview_ios-1.1.2/
flutter_inappwebview_macos=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/flutter_inappwebview_macos-1.1.2/
flutter_inappwebview_web=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/flutter_inappwebview_web-1.1.2/
flutter_inappwebview_windows=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/flutter_inappwebview_windows-0.6.0/
flutter_plugin_android_lifecycle=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/flutter_plugin_android_lifecycle-2.0.29/
image_gallery_saver_plus=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/image_gallery_saver_plus-4.0.1/
image_picker=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/image_picker-1.2.0/
image_picker_android=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/image_picker_android-0.8.13/
image_picker_for_web=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/image_picker_for_web-3.1.0/
image_picker_ios=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/image_picker_ios-0.8.13/
image_picker_linux=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/image_picker_linux-0.2.2/
image_picker_macos=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/image_picker_macos-0.2.2/
image_picker_windows=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/image_picker_windows-0.2.2/
package_info_plus=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/package_info_plus-9.0.0/
path_provider=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/path_provider-2.1.5/
path_provider_android=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/path_provider_android-2.2.17/
path_provider_foundation=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/path_provider_foundation-2.4.1/
path_provider_linux=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/path_provider_linux-2.2.1/
path_provider_windows=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/path_provider_windows-2.3.0/
permission_handler=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/permission_handler-11.4.0/
permission_handler_android=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/permission_handler_android-12.1.0/
permission_handler_apple=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/permission_handler_apple-9.4.7/
permission_handler_html=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/permission_handler_html-0.1.3+5/
permission_handler_windows=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/permission_handler_windows-0.2.1/
screen_brightness=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/screen_brightness-2.1.7/
screen_brightness_android=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/screen_brightness_android-2.1.3/
screen_brightness_ios=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/screen_brightness_ios-2.1.2/
screen_brightness_macos=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/screen_brightness_macos-2.1.1/
screen_brightness_ohos=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/screen_brightness_ohos-2.1.2/
screen_brightness_windows=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/screen_brightness_windows-2.1.0/
shared_preferences=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/shared_preferences-2.5.3/
shared_preferences_android=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/shared_preferences_android-2.4.11/
shared_preferences_foundation=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/shared_preferences_foundation-2.5.4/
shared_preferences_linux=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/shared_preferences_linux-2.4.1/
shared_preferences_web=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/shared_preferences_web-2.4.3/
shared_preferences_windows=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/shared_preferences_windows-2.4.1/
url_launcher=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/url_launcher-6.3.2/
url_launcher_android=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/url_launcher_android-6.3.17/
url_launcher_ios=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/url_launcher_ios-6.3.3/
url_launcher_linux=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/url_launcher_linux-3.2.1/
url_launcher_macos=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/url_launcher_macos-3.2.2/
url_launcher_web=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/url_launcher_web-2.4.1/
url_launcher_windows=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/url_launcher_windows-3.1.4/
video_player=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/video_player-2.10.0/
video_player_android=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/video_player_android-2.8.4/
video_player_avfoundation=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/video_player_avfoundation-2.8.4/
video_player_web=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/video_player_web-2.4.0/
wakelock_plus=/Users/wxl/.pub-cache/hosted/pub.flutter-io.cn/wakelock_plus-1.4.0/

File diff suppressed because one or more lines are too long

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
/pubspec.lock

6
.idea/MarsCodeWorkspaceAppSettings.xml generated Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="com.codeverse.userSettings.MarscodeWorkspaceAppSettingsState">
<option name="progress" value="1.0" />
</component>
</project>

View File

@@ -6,6 +6,63 @@
<excludeFolder url="file://$MODULE_DIR$/.dart_tool" /> <excludeFolder url="file://$MODULE_DIR$/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/.pub" /> <excludeFolder url="file://$MODULE_DIR$/.pub" />
<excludeFolder url="file://$MODULE_DIR$/build" /> <excludeFolder url="file://$MODULE_DIR$/build" />
<excludeFolder url="file://$MODULE_DIR$/example/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/example/.pub" />
<excludeFolder url="file://$MODULE_DIR$/example/build" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/device_info_plus/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/device_info_plus/.pub" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/device_info_plus/build" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/device_info_plus/example/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/device_info_plus/example/.pub" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/device_info_plus/example/build" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/file_selector_linux/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/file_selector_linux/.pub" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/file_selector_linux/build" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/file_selector_linux/example/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/file_selector_linux/example/.pub" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/file_selector_linux/example/build" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/image_picker_linux/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/image_picker_linux/.pub" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/image_picker_linux/build" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/image_picker_linux/example/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/image_picker_linux/example/.pub" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/image_picker_linux/example/build" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/package_info_plus/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/package_info_plus/.pub" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/package_info_plus/build" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/package_info_plus/example/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/package_info_plus/example/.pub" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/package_info_plus/example/build" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/path_provider_linux/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/path_provider_linux/.pub" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/path_provider_linux/build" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/path_provider_linux/example/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/path_provider_linux/example/.pub" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/path_provider_linux/example/build" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/shared_preferences_linux/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/shared_preferences_linux/.pub" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/shared_preferences_linux/build" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/shared_preferences_linux/example/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/shared_preferences_linux/example/.pub" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/shared_preferences_linux/example/build" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/url_launcher_linux/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/url_launcher_linux/.pub" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/url_launcher_linux/build" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/url_launcher_linux/example/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/url_launcher_linux/example/.pub" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/url_launcher_linux/example/build" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/wakelock_plus/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/wakelock_plus/.pub" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/wakelock_plus/build" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/wakelock_plus/example/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/wakelock_plus/example/.pub" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/wakelock_plus/example/build" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/volume_controller/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/volume_controller/.pub" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/volume_controller/build" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/volume_controller/example/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/volume_controller/example/.pub" />
<excludeFolder url="file://$MODULE_DIR$/example/linux/flutter/ephemeral/.plugin_symlinks/volume_controller/example/build" />
</content> </content>
<orderEntry type="inheritedJdk" /> <orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="sourceFolder" forTests="false" />

1524
.idea/libraries/Dart_Packages.xml generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,51 +1,62 @@
<component name="libraryTable"> <component name="libraryTable">
<library name="Flutter Plugins" type="FlutterPluginsLibraryType"> <library name="Flutter Plugins" type="FlutterPluginsLibraryType">
<CLASSES> <CLASSES>
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/path_provider-2.1.5" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/image_picker_windows-0.2.2" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/path_provider_foundation-2.4.1" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/screen_brightness-2.1.7" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/url_launcher_macos-3.2.2" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/image_gallery_saver_plus-4.0.1" /> <root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/image_gallery_saver_plus-4.0.1" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/video_player_web-2.4.0" /> <root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/url_launcher_linux-3.2.2" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/image_picker_macos-0.2.2" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/image_picker_android-0.8.13" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/url_launcher_android-6.3.17" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/permission_handler_html-0.1.3+5" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/flutter_inappwebview-6.1.5" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/flutter_inappwebview_ios-1.1.2" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/image_picker_for_web-3.1.0" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/file_selector_macos-0.9.4+3" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/url_launcher-6.3.2" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/url_launcher_web-2.4.1" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/shared_preferences_windows-2.4.1" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/url_launcher_windows-3.1.4" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/path_provider_android-2.2.17" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/package_info_plus-9.0.0" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/image_picker_ios-0.8.13" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/shared_preferences_web-2.4.3" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/url_launcher_linux-3.2.1" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/shared_preferences_android-2.4.11" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/file_selector_linux-0.9.3+2" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/video_player-2.10.0" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/shared_preferences_linux-2.4.1" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/shared_preferences_foundation-2.5.4" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/file_selector_windows-0.9.3+4" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/wakelock_plus-1.4.0" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/path_provider_linux-2.2.1" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/url_launcher_ios-6.3.3" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/shared_preferences-2.5.3" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/image_picker_linux-0.2.2" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/image_picker-1.2.0" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/device_info_plus-11.3.0" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/video_player_avfoundation-2.8.4" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/flutter_inappwebview_windows-0.6.0" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/path_provider_windows-2.3.0" /> <root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/path_provider_windows-2.3.0" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/flutter_inappwebview_macos-1.1.2" /> <root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/path_provider_foundation-2.6.0" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/flutter_inappwebview_android-1.1.3" /> <root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/image_picker_linux-0.2.2" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/flutter_inappwebview_web-1.1.2" /> <root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/shared_preferences_windows-2.4.1" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/video_player_android-2.8.4" /> <root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/flutter_inappwebview_windows-0.6.0" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/video_player_web-2.4.0" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/screen_brightness-2.1.7" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/device_info_plus-11.5.0" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/image_picker-1.2.1" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/image_picker_for_web-3.1.1" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/permission_handler-11.4.0" /> <root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/permission_handler-11.4.0" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/flutter_inappwebview-6.1.5" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/file_selector_linux-0.9.4" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/flutter_inappwebview_android-1.1.3" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/url_launcher_windows-3.1.5" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/sqflite-2.4.2" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/path_provider-2.1.5" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/file_selector_windows-0.9.3+5" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/shared_preferences_web-2.4.3" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/url_launcher_macos-3.2.5" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/url_launcher_web-2.4.2" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/image_picker_windows-0.2.2" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/shared_preferences_foundation-2.5.6" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/url_launcher-6.3.2" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/flutter_inappwebview_web-1.1.2" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/path_provider_linux-2.2.1" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/permission_handler_html-0.1.3+5" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/flutter_inappwebview_macos-1.1.2" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/image_picker_macos-0.2.2+1" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/file_selector_macos-0.9.5" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/sqflite_darwin-2.4.2" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/flutter_inappwebview_ios-1.1.2" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/shared_preferences_linux-2.4.1" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/image_picker_android-0.8.13+16" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/shared_preferences-2.5.5" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/url_launcher_android-6.3.29" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/flutter_image_compress_web-0.1.5" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/url_launcher_ios-6.4.1" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/flutter_image_compress_macos-1.0.3" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/sqflite_android-2.4.2+3" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/video_player-2.11.1" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/flutter_image_compress_common-1.0.6" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/path_provider_android-2.3.1" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/video_player_avfoundation-2.9.4" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/flutter_image_compress_ohos-0.0.3" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/video_player_android-2.9.5" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/jni_flutter-1.0.1" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/package_info_plus-9.0.1" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/photo_manager-3.9.0" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/shared_preferences_android-2.4.23" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/jni-1.0.0" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/flutter_image_compress-2.4.0" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/image_picker_ios-0.8.13+6" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/wakelock_plus-1.5.2" />
</CLASSES> </CLASSES>
<JAVADOC /> <JAVADOC />
<SOURCES /> <SOURCES />

View File

@@ -1,4 +1,13 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> <manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="28" />
<application <application
android:label="example" android:label="example"
android:name="${applicationName}" android:name="${applicationName}"

View File

@@ -19,7 +19,7 @@ pluginManagement {
plugins { plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0" id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "8.1.0" apply false id "com.android.application" version "8.1.0" apply false
id "org.jetbrains.kotlin.android" version "1.8.22" apply false id "org.jetbrains.kotlin.android" version "2.2.21" apply false
} }
include ":app" include ":app"

View File

@@ -21,6 +21,6 @@
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>1.0</string> <string>1.0</string>
<key>MinimumOSVersion</key> <key>MinimumOSVersion</key>
<string>12.0</string> <string>13.0</string>
</dict> </dict>
</plist> </plist>

View File

@@ -1,5 +1,5 @@
# Uncomment this line to define a global platform for your project # Uncomment this line to define a global platform for your project
# platform :ios, '12.0' # platform :ios, '13.0'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency. # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true' ENV['COCOAPODS_DISABLE_STATS'] = 'true'

View File

@@ -9,8 +9,10 @@
/* Begin PBXBuildFile section */ /* Begin PBXBuildFile section */
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; }; 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; };
3810EC0B833FB696ECB0E8F1 /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5C882210DAC37E00C12DB920 /* Pods_RunnerTests.framework */; };
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
795E4793D6FDF6E686105DA3 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8C1BE5193813D44D03691616 /* Pods_Runner.framework */; };
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
@@ -42,12 +44,19 @@
/* Begin PBXFileReference section */ /* Begin PBXFileReference section */
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; }; 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; }; 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
2542757634BAD53EAB262497 /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = "<group>"; };
3254D74A400007A51BA693BA /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = "<group>"; }; 331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = "<group>"; };
331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
3986E8E115937116F3ADD579 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; }; 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
59B1152CF608C2E887BB3A53 /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = "<group>"; };
5C882210DAC37E00C12DB920 /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
6983FF8A8204756CC5DB0EB7 /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = "<group>"; };
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; }; 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; }; 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; }; 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
8C1BE5193813D44D03691616 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; }; 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; }; 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -55,13 +64,23 @@
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; }; 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; }; 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
C78B74FD1ABB9E4E1C458A91 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
/* End PBXFileReference section */ /* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */ /* Begin PBXFrameworksBuildPhase section */
183633CEAFA3873F811B38A7 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
3810EC0B833FB696ECB0E8F1 /* Pods_RunnerTests.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
97C146EB1CF9000F007C117D /* Frameworks */ = { 97C146EB1CF9000F007C117D /* Frameworks */ = {
isa = PBXFrameworksBuildPhase; isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647; buildActionMask = 2147483647;
files = ( files = (
795E4793D6FDF6E686105DA3 /* Pods_Runner.framework in Frameworks */,
); );
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;
}; };
@@ -76,6 +95,20 @@
path = RunnerTests; path = RunnerTests;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
66209D553BE7631C913C10E7 /* Pods */ = {
isa = PBXGroup;
children = (
C78B74FD1ABB9E4E1C458A91 /* Pods-Runner.debug.xcconfig */,
3254D74A400007A51BA693BA /* Pods-Runner.release.xcconfig */,
3986E8E115937116F3ADD579 /* Pods-Runner.profile.xcconfig */,
2542757634BAD53EAB262497 /* Pods-RunnerTests.debug.xcconfig */,
6983FF8A8204756CC5DB0EB7 /* Pods-RunnerTests.release.xcconfig */,
59B1152CF608C2E887BB3A53 /* Pods-RunnerTests.profile.xcconfig */,
);
name = Pods;
path = Pods;
sourceTree = "<group>";
};
9740EEB11CF90186004384FC /* Flutter */ = { 9740EEB11CF90186004384FC /* Flutter */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
@@ -94,6 +127,8 @@
97C146F01CF9000F007C117D /* Runner */, 97C146F01CF9000F007C117D /* Runner */,
97C146EF1CF9000F007C117D /* Products */, 97C146EF1CF9000F007C117D /* Products */,
331C8082294A63A400263BE5 /* RunnerTests */, 331C8082294A63A400263BE5 /* RunnerTests */,
66209D553BE7631C913C10E7 /* Pods */,
DBECA8DE6659EEB94DE7D5DF /* Frameworks */,
); );
sourceTree = "<group>"; sourceTree = "<group>";
}; };
@@ -121,6 +156,15 @@
path = Runner; path = Runner;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
DBECA8DE6659EEB94DE7D5DF /* Frameworks */ = {
isa = PBXGroup;
children = (
8C1BE5193813D44D03691616 /* Pods_Runner.framework */,
5C882210DAC37E00C12DB920 /* Pods_RunnerTests.framework */,
);
name = Frameworks;
sourceTree = "<group>";
};
/* End PBXGroup section */ /* End PBXGroup section */
/* Begin PBXNativeTarget section */ /* Begin PBXNativeTarget section */
@@ -128,8 +172,10 @@
isa = PBXNativeTarget; isa = PBXNativeTarget;
buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */; buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
buildPhases = ( buildPhases = (
47B214803720B7D4C8CD5254 /* [CP] Check Pods Manifest.lock */,
331C807D294A63A400263BE5 /* Sources */, 331C807D294A63A400263BE5 /* Sources */,
331C807F294A63A400263BE5 /* Resources */, 331C807F294A63A400263BE5 /* Resources */,
183633CEAFA3873F811B38A7 /* Frameworks */,
); );
buildRules = ( buildRules = (
); );
@@ -145,12 +191,15 @@
isa = PBXNativeTarget; isa = PBXNativeTarget;
buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
buildPhases = ( buildPhases = (
91CC7839FB8AB75F3451971B /* [CP] Check Pods Manifest.lock */,
9740EEB61CF901F6004384FC /* Run Script */, 9740EEB61CF901F6004384FC /* Run Script */,
97C146EA1CF9000F007C117D /* Sources */, 97C146EA1CF9000F007C117D /* Sources */,
97C146EB1CF9000F007C117D /* Frameworks */, 97C146EB1CF9000F007C117D /* Frameworks */,
97C146EC1CF9000F007C117D /* Resources */, 97C146EC1CF9000F007C117D /* Resources */,
9705A1C41CF9048500538489 /* Embed Frameworks */, 9705A1C41CF9048500538489 /* Embed Frameworks */,
3B06AD1E1E4923F5004D2608 /* Thin Binary */, 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
C872E8491C8002F335779847 /* [CP] Embed Pods Frameworks */,
197332DD48574943AF74C0E1 /* [CP] Copy Pods Resources */,
); );
buildRules = ( buildRules = (
); );
@@ -222,6 +271,23 @@
/* End PBXResourcesBuildPhase section */ /* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */ /* Begin PBXShellScriptBuildPhase section */
197332DD48574943AF74C0E1 /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
);
name = "[CP] Copy Pods Resources";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
showEnvVarsInLog = 0;
};
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
isa = PBXShellScriptBuildPhase; isa = PBXShellScriptBuildPhase;
alwaysOutOfDate = 1; alwaysOutOfDate = 1;
@@ -238,6 +304,50 @@
shellPath = /bin/sh; shellPath = /bin/sh;
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
}; };
47B214803720B7D4C8CD5254 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputFileListPaths = (
);
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-RunnerTests-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
91CC7839FB8AB75F3451971B /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputFileListPaths = (
);
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
9740EEB61CF901F6004384FC /* Run Script */ = { 9740EEB61CF901F6004384FC /* Run Script */ = {
isa = PBXShellScriptBuildPhase; isa = PBXShellScriptBuildPhase;
alwaysOutOfDate = 1; alwaysOutOfDate = 1;
@@ -253,6 +363,23 @@
shellPath = /bin/sh; shellPath = /bin/sh;
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
}; };
C872E8491C8002F335779847 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
);
name = "[CP] Embed Pods Frameworks";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */ /* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */ /* Begin PBXSourcesBuildPhase section */
@@ -346,7 +473,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES; GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 12.0; IPHONEOS_DEPLOYMENT_TARGET = 13.0;
MTL_ENABLE_DEBUG_INFO = NO; MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos; SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = iphoneos; SUPPORTED_PLATFORMS = iphoneos;
@@ -379,6 +506,7 @@
}; };
331C8088294A63A400263BE5 /* Debug */ = { 331C8088294A63A400263BE5 /* Debug */ = {
isa = XCBuildConfiguration; isa = XCBuildConfiguration;
baseConfigurationReference = 2542757634BAD53EAB262497 /* Pods-RunnerTests.debug.xcconfig */;
buildSettings = { buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)"; BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
@@ -396,6 +524,7 @@
}; };
331C8089294A63A400263BE5 /* Release */ = { 331C8089294A63A400263BE5 /* Release */ = {
isa = XCBuildConfiguration; isa = XCBuildConfiguration;
baseConfigurationReference = 6983FF8A8204756CC5DB0EB7 /* Pods-RunnerTests.release.xcconfig */;
buildSettings = { buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)"; BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
@@ -411,6 +540,7 @@
}; };
331C808A294A63A400263BE5 /* Profile */ = { 331C808A294A63A400263BE5 /* Profile */ = {
isa = XCBuildConfiguration; isa = XCBuildConfiguration;
baseConfigurationReference = 59B1152CF608C2E887BB3A53 /* Pods-RunnerTests.profile.xcconfig */;
buildSettings = { buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)"; BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
@@ -473,7 +603,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES; GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 12.0; IPHONEOS_DEPLOYMENT_TARGET = 13.0;
MTL_ENABLE_DEBUG_INFO = YES; MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES; ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos; SDKROOT = iphoneos;
@@ -524,7 +654,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES; GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 12.0; IPHONEOS_DEPLOYMENT_TARGET = 13.0;
MTL_ENABLE_DEBUG_INFO = NO; MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos; SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = iphoneos; SUPPORTED_PLATFORMS = iphoneos;

View File

@@ -26,6 +26,7 @@
buildConfiguration = "Debug" buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
customLLDBInitFile = "$(SRCROOT)/Flutter/ephemeral/flutter_lldbinit"
shouldUseLaunchSchemeArgsEnv = "YES"> shouldUseLaunchSchemeArgsEnv = "YES">
<MacroExpansion> <MacroExpansion>
<BuildableReference <BuildableReference
@@ -54,11 +55,13 @@
buildConfiguration = "Debug" buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
customLLDBInitFile = "$(SRCROOT)/Flutter/ephemeral/flutter_lldbinit"
launchStyle = "0" launchStyle = "0"
useCustomWorkingDirectory = "NO" useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO" ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES" debugDocumentVersioning = "YES"
debugServiceExtension = "internal" debugServiceExtension = "internal"
enableGPUValidationMode = "1"
allowLocationSimulation = "YES"> allowLocationSimulation = "YES">
<BuildableProductRunnable <BuildableProductRunnable
runnableDebuggingMode = "0"> runnableDebuggingMode = "0">

View File

@@ -4,4 +4,7 @@
<FileRef <FileRef
location = "group:Runner.xcodeproj"> location = "group:Runner.xcodeproj">
</FileRef> </FileRef>
<FileRef
location = "group:Pods/Pods.xcodeproj">
</FileRef>
</Workspace> </Workspace>

View File

@@ -22,6 +22,12 @@
<string>????</string> <string>????</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>$(FLUTTER_BUILD_NUMBER)</string> <string>$(FLUTTER_BUILD_NUMBER)</string>
<key>NSCameraUsageDescription</key>
<string>示例需要使用相机拍照后上传到 OSS。</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>示例需要访问相册以选择图片进行上传和预览。</string>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>示例需要将长按查看的图片保存到系统相册。</string>
<key>LSRequiresIPhoneOS</key> <key>LSRequiresIPhoneOS</key>
<true/> <true/>
<key>UILaunchStoryboardName</key> <key>UILaunchStoryboardName</key>

View File

@@ -1,8 +1,7 @@
import 'package:dio/dio.dart';
import 'package:example/exif/customer_exif_Page.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/services.dart'; import 'package:flutter_easyloading/flutter_easyloading.dart';
import 'package:image_editor_plus/image_editor_plus.dart'; import 'package:flutter_common/flutter_common.dart';
import 'package:get/get.dart';
void main() { void main() {
runApp(const MyApp()); runApp(const MyApp());
@@ -11,174 +10,485 @@ void main() {
class MyApp extends StatelessWidget { class MyApp extends StatelessWidget {
const MyApp({super.key}); const MyApp({super.key});
// This widget is the root of your application.
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return MaterialApp( return GetMaterialApp(
title: 'Flutter Demo', title: 'flutter_common Demo',
debugShowCheckedModeBanner: false,
builder: EasyLoading.init(),
theme: ThemeData( theme: ThemeData(
// This is the theme of your application. scaffoldBackgroundColor: const Color(0xFFF5F7FB),
// colorScheme: ColorScheme.fromSeed(seedColor: const Color(0xFF4D6FD5)),
// TRY THIS: Try running your application with "flutter run". You'll see cardTheme: const CardThemeData(
// the application has a purple toolbar. Then, without quitting the app, color: Colors.white,
// try changing the seedColor in the colorScheme below to Colors.green margin: EdgeInsets.zero,
// and then invoke "hot reload" (save your changes or press the "hot elevation: 0,
// reload" button in a Flutter-supported IDE, or press "r" if you used ),
// the command line to start the app).
//
// Notice that the counter didn't reset back to zero; the application
// state is not lost during the reload. To reset the state, use hot
// restart instead.
//
// This works for code too, not just values: Most code changes can be
// tested with just a hot reload.
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
), ),
// home: const MyHomePage(title: 'Flutter Demo Home Page'), home: const MyHomePage(),
home: CustomerExifPage(),
); );
} }
} }
/// Dio 最简版:网络图片转 Uint8List
Future<Uint8List?> networkImageToUint8ListWithDio(String imageUrl) async {
final dio = Dio(); // 初始化 Dio 实例
try {
// 发起 GET 请求,响应类型设为字节数组(关键)
final response = await dio.get<List<int>>(
imageUrl,
options: Options(responseType: ResponseType.bytes),
);
// 响应成功且数据非空时,直接转为 Uint8List
return response.statusCode == 200 && response.data != null
? Uint8List.fromList(response.data!)
: null;
} catch (e) {
print('图片转换失败:$e'); // 捕获网络错误、URL 非法等异常
return null;
}
}
class MyHomePage extends StatefulWidget { class MyHomePage extends StatefulWidget {
const MyHomePage({super.key, required this.title}); const MyHomePage({super.key});
// This widget is the home page of your application. It is stateful, meaning
// that it has a State object (defined below) that contains fields that affect
// how it looks.
// This class is the configuration for the state. It holds the values (in this
// case the title) provided by the parent (in this case the App widget) and
// used by the build method of the State. Fields in a Widget subclass are
// always marked "final".
final String title;
@override @override
State<MyHomePage> createState() => _MyHomePageState(); State<MyHomePage> createState() => _MyHomePageState();
} }
class _MyHomePageState extends State<MyHomePage> { class _MyHomePageState extends State<MyHomePage> {
final int _counter = 0; static const String _ossAccessKeyId = 'LTAI5tRJh3W4TrfQC3mDK9Vp';
static const String _ossHost =
'https://jingheyijia-cop.oss-cn-chengdu.aliyuncs.com';
static const String _bindHost = 'https://static.cop.jingheyijia.com';
static const String _policy =
'eyJleHBpcmF0aW9uIjoiMjAyNi0wNi0zMFQyMTo0OTozNVoiLCJjb25kaXRpb25zIjpbWyJzdGFydHMtd2l0aCIsIiRrZXkiLCJ3eGFwcC1tYXAyL3VwbG9hZC8iXV19';
static const String _signature = 're2VV8BiN5oS2altXSmiTG/Y0wc=';
static const String _ossDirectory = 'wxapp-map2/upload/';
static const String _callback =
'eyJjYWxsYmFja1VybCI6Imh0dHBzOi8vdGVzdGluZy52aWN0b3JtZW4uY29tL2FwaS9haXN0b3JlL29zcy9jYWxsYmFjayIsImNhbGxiYWNrQm9keSI6ImZpbGVuYW1lPSR7b2JqZWN0fVx1MDAyNnNpemU9JHtzaXplfVx1MDAyNm1pbWVUeXBlPSR7bWltZVR5cGV9XHUwMDI2aGVpZ2h0PSR7aW1hZ2VJbmZvLmhlaWdodH1cdTAwMjZ3aWR0aD0ke2ltYWdlSW5mby53aWR0aH0iLCJjYWxsYmFja0JvZHlUeXBlIjoiYXBwbGljYXRpb24veC13d3ctZm9ybS11cmxlbmNvZGVkIn0=';
static const String _seedImageUrl =
'$_bindHost/wxapp-map2/upload/moment/2025625/app-yctgxYDwcPkh.jpg';
Future<void> _incrementCounter()async { String _singleDateText = '未选择';
String imageUrl = 'https://static.cop.jingheyijia.com/wxapp-map2/upload/moment/20251029/app-bpItvFOQufCL.jpg'; String _rangeDateText = '未选择';
Uint8List? imageBytes = await networkImageToUint8ListWithDio(imageUrl); String _imageStatus = '已预置 1 张示例图,点击缩略图预览,长按大图保存到相册';
ImageEditor.setI18n({ late List<String> _imageUrls;
'crop': '裁剪',
'rotate left': '左旋转', @override
'rotate right': '右旋转', void initState() {
'flip': '水平翻转', super.initState();
'brush': '涂抹', _imageUrls = [_seedImageUrl];
'link':'链接',
'save': '保存',
'text': '文本',
'blur': '模糊',
'filter': '滤镜',
'size': '大小',
'color': '颜色',
'background color': '背景颜色',
'background opacity': '背景透明度',
'reset': '重置',
'freeform': '自由裁剪',
'remove': '移除',
'emoji': '表情',
'slider color': '滑块颜色',
'color opacity': '透明度',
'blur radius': '模糊半径',
});
if(mounted){
final editedImage = await Navigator.push(
context,
MaterialPageRoute(
builder: (context) => ImageEditor(
image: imageBytes,
blurOption: null,
filtersOption: null,
brushOption: null,
textOption: null,
emojiOption: null,
),
),
);
}
} }
Future<void> _uploadImages() async {
await UploadImagesTool.uploadImagesTool(
context: context,
max: 9,
isShowLoading: true,
oSSAccessKeyId: _ossAccessKeyId,
policy: _policy,
callback: _callback,
signature: _signature,
ossDirectory: _ossDirectory,
ossHost: _ossHost,
chooseImagesTap: (list) {
final uploadedUrls = List<String>.from(list as List)
.where((item) => item.isNotEmpty)
.toList();
if (uploadedUrls.isEmpty) {
return;
}
setState(() {
_imageUrls = [..._imageUrls, ...uploadedUrls];
_imageStatus =
'已上传 ${uploadedUrls.length} 张图片,当前共 ${_imageUrls.length}';
});
},
);
}
void _openPreview(int index) {
if (_imageUrls.isEmpty) {
return;
}
LookImagesTool.lookImages(
listData: _imageUrls,
currentPage: index,
isShowEdit: true,
oSSAccessKeyId: _ossAccessKeyId,
policy: _policy,
callback: _callback,
signature: _signature,
ossDirectory: _ossDirectory,
ossHost: _ossHost,
onEditCallBack: (imageUrl, currentIndex) {
setState(() {
_imageUrls[currentIndex] = imageUrl;
_imageStatus = '${currentIndex + 1} 张图片已重新编辑并上传';
});
},
);
}
void _removeImage(int index) {
setState(() {
_imageUrls.removeAt(index);
_imageStatus = _imageUrls.isEmpty
? '暂无图片,请先上传后再体验预览和下载'
: '已删除 1 张图片,当前剩余 ${_imageUrls.length}';
});
}
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
// This method is rerun every time setState is called, for instance as done
// by the _incrementCounter method above.
//
// The Flutter framework has been optimized to make rerunning build methods
// fast, so that you can just rebuild anything that needs updating rather
// than having to individually change instances of widgets.
return Scaffold( return Scaffold(
appBar: AppBar( appBar: AppBar(
// TRY THIS: Try changing the color here to a specific color (to title: const Text('flutter_common 示例首页'),
// Colors.amber, perhaps?) and trigger a hot reload to see the AppBar centerTitle: true,
// change color while the other colors stay the same.
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
// Here we take the value from the MyHomePage object that was created by
// the App.build method, and use it to set our appbar title.
title: Text(widget.title),
), ),
body: Center( body: SafeArea(
// Center is a layout widget. It takes a single child and positions it child: ListView(
// in the middle of the parent. padding: const EdgeInsets.all(16),
child: Column( children: [
// Column is also a layout widget. It takes a list of children and _buildIntroCard(),
// arranges them vertically. By default, it sizes itself to fit its const SizedBox(height: 16),
// children horizontally, and tries to be as tall as its parent. _buildImageDemoCard(),
// const SizedBox(height: 16),
// Column has various properties to control how it sizes itself and _buildDemoCard(
// how it positions its children. Here we use mainAxisAlignment to title: '单日选择组件',
// center the children vertically; the main axis here is the vertical description: '使用 `CalendarChooseWidget` 的单选模式,适合筛选某一天的数据。',
// axis because Columns are vertical (the cross axis would be child: CalendarChooseWidget(
// horizontal). chooseIndex: 1,
// selectedDate: DateTime.now(),
// TRY THIS: Invoke "debug painting" (choose the "Toggle Debug Paint" dateTimeUtilsType: DateTimeUtilsType.yearMonthDayWord,
// action in the IDE, or press "p" in the console), to see the fontSize: 18,
// wireframe for each widget. fontWeight: FontWeight.w600,
mainAxisAlignment: MainAxisAlignment.center, tapAction: (value) {
children: <Widget>[ final startTime = value['startTime'] as DateTime?;
const Text( setState(() {
'You have pushed the button this many times:', _singleDateText = _formatDateWithWeekday(startTime);
});
},
),
resultText: _singleDateText,
), ),
Text( const SizedBox(height: 16),
'$_counter', _buildDemoCard(
style: Theme.of(context).textTheme.headlineMedium, title: '区间选择组件',
description: '默认展示开始和结束日期,适合做报表、订单或运营时间筛选。',
child: CalendarChooseWidget(
selectedDate: DateTime.now(),
dateTimeUtilsType: DateTimeUtilsType.yearMonthDay,
fontSize: 18,
fontWeight: FontWeight.w600,
tapAction: (value) {
final startTime = value['startTime'] as DateTime?;
final endTime = value['endTime'] as DateTime?;
setState(() {
_rangeDateText =
'${_formatDate(startTime)}${_formatDate(endTime)}';
});
},
),
resultText: _rangeDateText,
), ),
], ],
), ),
), ),
floatingActionButton: FloatingActionButton( );
onPressed: _incrementCounter, }
tooltip: 'Increment',
child: const Icon(Icons.add), Widget _buildIntroCard() {
), // This trailing comma makes auto-formatting nicer for build methods. return Card(
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(20)),
child: Padding(
padding: const EdgeInsets.all(20),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: const [
Text(
'项目结构速览',
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.w700,
color: Color(0xFF1A1A1A),
),
),
SizedBox(height: 12),
Text(
'lib/calendarcalendar 提供日期筛选能力,'
'lib/upload_image 包含 OSS 上传、图片预览、编辑和下载到相册的能力,'
'lib/utils 则放了日期、弹窗等通用工具。',
style: TextStyle(
fontSize: 15,
height: 1.6,
color: Color(0xFF4F5B67),
),
),
],
),
),
);
}
Widget _buildImageDemoCard() {
return Card(
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(20)),
child: Padding(
padding: const EdgeInsets.all(20),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
const Text(
'LookImagesTool 图片预览',
style: TextStyle(
fontSize: 18,
fontWeight: FontWeight.w700,
color: Color(0xFF1A1A1A),
),
),
const SizedBox(height: 8),
const Text(
'这个示例使用你提供的 OSS 配置上传图片,点击缩略图进入 `LookImagesTool` 预览,支持编辑后重新上传,也支持长按大图保存到手机相册。',
style: TextStyle(
fontSize: 14,
height: 1.6,
color: Color(0xFF5C6670),
),
),
const SizedBox(height: 14),
Wrap(
spacing: 8,
runSpacing: 8,
children: [
const _InfoChip(
label: 'Host',
value: 'jingheyijia-cop.oss-cn-chengdu.aliyuncs.com',
),
_InfoChip(label: 'Bind', value: _bindHost),
const _InfoChip(label: '目录', value: _ossDirectory),
],
),
const SizedBox(height: 16),
FilledButton.icon(
onPressed: _uploadImages,
icon: const Icon(Icons.cloud_upload_outlined),
label: const Text('上传图片到 OSS'),
),
const SizedBox(height: 16),
Wrap(
spacing: 12,
runSpacing: 12,
children: [
for (int index = 0; index < _imageUrls.length; index++)
_buildImageTile(
imageUrl: _imageUrls[index],
index: index,
),
],
),
const SizedBox(height: 14),
Text(
_imageStatus,
style: const TextStyle(
fontSize: 14,
fontWeight: FontWeight.w500,
color: Color(0xFF4D6FD5),
),
),
],
),
),
);
}
Widget _buildImageTile({
required String imageUrl,
required int index,
}) {
return SizedBox(
width: 104,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
ClipRRect(
borderRadius: BorderRadius.circular(16),
child: Material(
color: Colors.white,
child: InkWell(
onTap: () => _openPreview(index),
child: Stack(
children: [
SizedBox(
width: 104,
height: 104,
child: Image.network(
imageUrl,
fit: BoxFit.cover,
errorBuilder: (_, __, ___) {
return Container(
color: const Color(0xFFF1F4FA),
alignment: Alignment.center,
child: const Icon(
Icons.broken_image_outlined,
color: Color(0xFF7A8694),
),
);
},
),
),
Positioned(
left: 8,
top: 8,
child: Container(
padding: const EdgeInsets.symmetric(
horizontal: 8,
vertical: 4,
),
decoration: BoxDecoration(
color: Colors.black.withValues(alpha: 0.5),
borderRadius: BorderRadius.circular(12),
),
child: Text(
'${index + 1}',
style: const TextStyle(
color: Colors.white,
fontSize: 12,
fontWeight: FontWeight.w600,
),
),
),
),
Positioned(
right: 6,
top: 6,
child: GestureDetector(
onTap: () => _removeImage(index),
child: Container(
width: 24,
height: 24,
decoration: BoxDecoration(
color: Colors.black.withValues(alpha: 0.45),
shape: BoxShape.circle,
),
child: const Icon(
Icons.close,
size: 14,
color: Colors.white,
),
),
),
),
],
),
),
),
),
const SizedBox(height: 8),
Text(
'点击预览',
style: const TextStyle(
fontSize: 12,
color: Color(0xFF5C6670),
),
),
],
),
);
}
Widget _buildDemoCard({
required String title,
required String description,
required Widget child,
required String resultText,
}) {
return Card(
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(20)),
child: Padding(
padding: const EdgeInsets.all(20),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
title,
style: const TextStyle(
fontSize: 18,
fontWeight: FontWeight.w700,
color: Color(0xFF1A1A1A),
),
),
const SizedBox(height: 8),
Text(
description,
style: const TextStyle(
fontSize: 14,
height: 1.6,
color: Color(0xFF5C6670),
),
),
const SizedBox(height: 16),
Container(
width: double.infinity,
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 18),
decoration: BoxDecoration(
color: const Color(0xFFF7F9FC),
borderRadius: BorderRadius.circular(16),
border: Border.all(color: const Color(0xFFD9E1F2)),
),
child: child,
),
const SizedBox(height: 14),
Text(
'当前结果:$resultText',
style: const TextStyle(
fontSize: 14,
fontWeight: FontWeight.w500,
color: Color(0xFF4D6FD5),
),
),
],
),
),
);
}
String _formatDate(DateTime? date) {
if (date == null) {
return '未选择';
}
return DateTimeUtils.dateTimeUtilsTool(
dateTime: date.toIso8601String(),
dateTimeUtilsType: DateTimeUtilsType.yearMonthDay,
);
}
String _formatDateWithWeekday(DateTime? date) {
if (date == null) {
return '未选择';
}
return '${DateTimeUtils.dateTimeUtilsTool(
dateTime: date.toIso8601String(),
dateTimeUtilsType: DateTimeUtilsType.yearMonthDayWord,
)} ${DateTimeUtils.getWeekDay(date)}';
}
}
class _InfoChip extends StatelessWidget {
final String label;
final String value;
const _InfoChip({
required this.label,
required this.value,
});
@override
Widget build(BuildContext context) {
return Container(
padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 8),
decoration: BoxDecoration(
color: const Color(0xFFF1F4FA),
borderRadius: BorderRadius.circular(999),
),
child: RichText(
text: TextSpan(
style: const TextStyle(
fontSize: 12,
color: Color(0xFF5C6670),
),
children: [
TextSpan(
text: '$label: ',
style: const TextStyle(fontWeight: FontWeight.w700),
),
TextSpan(text: value),
],
),
),
); );
} }
} }

View File

@@ -7,9 +7,13 @@
#include "generated_plugin_registrant.h" #include "generated_plugin_registrant.h"
#include <file_selector_linux/file_selector_plugin.h> #include <file_selector_linux/file_selector_plugin.h>
#include <url_launcher_linux/url_launcher_plugin.h>
void fl_register_plugins(FlPluginRegistry* registry) { void fl_register_plugins(FlPluginRegistry* registry) {
g_autoptr(FlPluginRegistrar) file_selector_linux_registrar = g_autoptr(FlPluginRegistrar) file_selector_linux_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "FileSelectorPlugin"); fl_plugin_registry_get_registrar_for_plugin(registry, "FileSelectorPlugin");
file_selector_plugin_register_with_registrar(file_selector_linux_registrar); file_selector_plugin_register_with_registrar(file_selector_linux_registrar);
g_autoptr(FlPluginRegistrar) url_launcher_linux_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin");
url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar);
} }

View File

@@ -4,9 +4,11 @@
list(APPEND FLUTTER_PLUGIN_LIST list(APPEND FLUTTER_PLUGIN_LIST
file_selector_linux file_selector_linux
url_launcher_linux
) )
list(APPEND FLUTTER_FFI_PLUGIN_LIST list(APPEND FLUTTER_FFI_PLUGIN_LIST
jni
) )
set(PLUGIN_BUNDLED_LIBRARIES) set(PLUGIN_BUNDLED_LIBRARIES)

File diff suppressed because it is too large Load Diff

View File

@@ -28,6 +28,8 @@ environment:
# the latest version available on pub.dev. To see which dependencies have newer # the latest version available on pub.dev. To see which dependencies have newer
# versions available, run `flutter pub outdated`. # versions available, run `flutter pub outdated`.
dependencies: dependencies:
flutter_common:
path: ../
flutter: flutter:
sdk: flutter sdk: flutter
@@ -35,15 +37,13 @@ dependencies:
# Use with the CupertinoIcons class for iOS style icons. # Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.8 cupertino_icons: ^1.0.8
image_editor_plus: ^1.0.6 image_editor_plus: ^1.0.6
get: ^4.6.5
dio: ^5.9.0 dio: ^5.9.0
flutter_easyloading: ^3.0.5
image_picker: ^1.1.0 #相册单选 image_picker: ^1.1.0 #相册单选
# native_exif: ^0.6.2 # native_exif: ^0.6.2
# exif: ^3.3.0 # exif: ^3.3.0
flutter_common:
git:
url: https://code.keplerjai.com/wangliankun/flutter_common.git
dev_dependencies: dev_dependencies:
flutter_test: flutter_test:
sdk: flutter sdk: flutter

View File

@@ -83,38 +83,44 @@ class _CalendarChooseWidgetState extends State<CalendarChooseWidget> {
String get dealTimeString { String get dealTimeString {
String? time = ""; String? time = "";
if (endTime == null) { if (endTime == null) {
time = DateTimeUtils.dateTimeUtilsTool( time = _formatDisplayDate(startTime);
dateTime: startTime.toString(),
dateTimeUtilsType:
widget.dateTimeUtilsType ?? DateTimeUtilsType.yearMonthDay,
);
} else if (endTime == startTime) { } else if (endTime == startTime) {
time = DateTimeUtils.dateTimeUtilsTool( time = _formatDisplayDate(startTime);
dateTime: startTime.toString(),
dateTimeUtilsType:
widget.dateTimeUtilsType ?? DateTimeUtilsType.yearMonthDay,
);
} else { } else {
time = "${DateTimeUtils.dateTimeUtilsTool( time =
dateTime: startTime.toString(), "${_formatDisplayDate(startTime)} - ${_formatDisplayDate(endTime)}";
dateTimeUtilsType:
widget.dateTimeUtilsType ?? DateTimeUtilsType.yearMonthDay,
)} - ${DateTimeUtils.dateTimeUtilsTool(
dateTime: endTime.toString(),
dateTimeUtilsType:
widget.dateTimeUtilsType ?? DateTimeUtilsType.yearMonthDay,
)}";
} }
return time; return time;
} }
String _formatDisplayDate(DateTime? dateTime) {
if (dateTime == null) {
return '-- --';
}
final dateType = widget.dateTimeUtilsType ?? DateTimeUtilsType.yearMonthDay;
final formatted = DateTimeUtils.dateTimeUtilsTool(
dateTime: dateTime.toString(),
dateTimeUtilsType: dateType,
);
if (widget.chooseIndex == 1 &&
dateType == DateTimeUtilsType.yearMonthDayWord) {
return '$formatted ${DateTimeUtils.getWeekDay(dateTime)}';
}
return formatted;
}
///日历弹窗 ///日历弹窗
onTapDate() { onTapDate() {
final screenHeight = MediaQuery.of(context).size.height;
final singlePickerHeight =
screenHeight * 0.5 < 420 ? 420.0 : screenHeight * 0.5;
final rangePickerHeight =
screenHeight * 0.5 < 460 ? 460.0 : screenHeight * 0.5;
if (widget.chooseIndex == 1) { if (widget.chooseIndex == 1) {
ToastUtils.showBottomSheet( ToastUtils.showBottomSheet(
context: context, context: context,
title: '选择时间', title: '选择时间',
height: MediaQuery.of(context).size.height / 2, height: singlePickerHeight,
isShowConfirm: true, isShowConfirm: true,
contentWidget: CustomDatePicker( contentWidget: CustomDatePicker(
initialDate: DateTime.now(), initialDate: DateTime.now(),
@@ -131,7 +137,7 @@ class _CalendarChooseWidgetState extends State<CalendarChooseWidget> {
ToastUtils.showBottomSheet( ToastUtils.showBottomSheet(
context: context, context: context,
title: '选择时间', title: '选择时间',
height: MediaQuery.of(context).size.height / 2, height: rangePickerHeight,
isShowConfirm: true, isShowConfirm: true,
contentWidget: CustomCalendarRangePickerWidget( contentWidget: CustomCalendarRangePickerWidget(
firstDate: DateTime(DateTime.now().year - 2), firstDate: DateTime(DateTime.now().year - 2),

View File

@@ -867,6 +867,7 @@ class _DayHeaders extends StatelessWidget {
), ),
child: GridView.custom( child: GridView.custom(
shrinkWrap: true, shrinkWrap: true,
padding: EdgeInsets.zero,
gridDelegate: _monthItemGridDelegate, gridDelegate: _monthItemGridDelegate,
childrenDelegate: SliverChildListDelegate( childrenDelegate: SliverChildListDelegate(
labels, labels,

View File

@@ -9,7 +9,7 @@ import 'package:flutter/services.dart';
///日期弹窗显示 ///日期弹窗显示
class CustomDatePicker extends StatefulWidget { class CustomDatePicker extends StatefulWidget {
CustomDatePicker( CustomDatePicker(
{Key? key, {super.key,
required DateTime initialDate, required DateTime initialDate,
required DateTime firstDate, required DateTime firstDate,
required DateTime lastDate, required DateTime lastDate,
@@ -31,8 +31,7 @@ class CustomDatePicker extends StatefulWidget {
lastDate = DateUtils.dateOnly(lastDate), lastDate = DateUtils.dateOnly(lastDate),
currentDate = DateUtils.dateOnly(currentDate ?? DateTime.now()), currentDate = DateUtils.dateOnly(currentDate ?? DateTime.now()),
assert(onDateChanged != null), assert(onDateChanged != null),
assert(initialCalendarMode != null), assert(initialCalendarMode != null) {
super(key: key) {
assert( assert(
!this.lastDate.isBefore(this.firstDate), !this.lastDate.isBefore(this.firstDate),
'lastDate ${this.lastDate} must be on or after firstDate ${this.firstDate}.', 'lastDate ${this.lastDate} must be on or after firstDate ${this.firstDate}.',

View File

@@ -1,5 +1,6 @@
/// A Calculator. export 'calendarcalendar/calendar_choose_widget.dart';
class Calculator { export 'calendarcalendar/custom_calendar_range_picker_widget.dart';
/// Returns [value] plus 1. export 'calendarcalendar/custom_date_picker.dart';
int addOne(int value) => value + 1; export 'upload_image/look_images_widget.dart';
} export 'upload_image/upload_images_tool.dart';
export 'utils/date_utils.dart';

View File

@@ -19,8 +19,8 @@ class HttpUtils {
BaseOptions options = BaseOptions( BaseOptions options = BaseOptions(
baseUrl: baseUrl, baseUrl: baseUrl,
contentType: 'application/json; charset=utf-8', contentType: 'application/json; charset=utf-8',
connectTimeout: const Duration(milliseconds: 15000), connectTimeout: const Duration(seconds: 60),
receiveTimeout: const Duration(milliseconds: 15000), receiveTimeout: const Duration(seconds: 60),
responseType: ResponseType.json, responseType: ResponseType.json,
validateStatus: (status) { validateStatus: (status) {
return true; return true;
@@ -216,6 +216,7 @@ class HttpUtils {
* Dio库error统一处理 * Dio库error统一处理
*/ */
static void _formatError(DioException error) { static void _formatError(DioException error) {
EasyLoading.dismiss();
switch (error.type) { switch (error.type) {
case DioExceptionType.cancel: case DioExceptionType.cancel:
break; break;

View File

@@ -11,45 +11,50 @@ import 'package:image_gallery_saver_plus/image_gallery_saver_plus.dart';
import 'package:permission_handler/permission_handler.dart'; import 'package:permission_handler/permission_handler.dart';
class DownLoadImageTool { class DownLoadImageTool {
// 请求照片库权限 // 请求照片库权限
static Future<bool> requestPhotoPermission() async { static Future<bool> requestPhotoPermission() async {
// 检查当前权限状态 PermissionStatus status;
// var status = await Permission.photos.status; if (Platform.isIOS) {
var status = await Permission.storage.request(); status = await Permission.photosAddOnly.request();
if (status.isDenied) { } else {
// 请求权限
status = await Permission.photos.request(); status = await Permission.photos.request();
// 如果用户拒绝了权限,可以显示一个解释
if (status.isPermanentlyDenied) {
// 打开应用设置,让用户手动启用权限
await openAppSettings();
}
} }
return status.isGranted; if (status.isPermanentlyDenied) {
await openAppSettings();
}
return status.isGranted || status.isLimited;
} }
// 或者请求存储权限适用于Android // 或者请求存储权限适用于Android
static Future<bool> requestStoragePermission() async { static Future<bool> requestStoragePermission() async {
if (Platform.isIOS) {
return requestPhotoPermission();
}
if (Platform.isAndroid) { if (Platform.isAndroid) {
// 对于Android 13及以上版本 // 对于Android 13及以上版本
if (await DeviceInfoPlugin().androidInfo.then((info) => info.version.sdkInt) >= 33) { if (await DeviceInfoPlugin()
.androidInfo
.then((info) => info.version.sdkInt) >=
33) {
var status = await Permission.photos.request(); var status = await Permission.photos.request();
if(status == PermissionStatus.denied){ if (status.isPermanentlyDenied) {
await requestPhotoPermission(); await openAppSettings();
} }
return status.isGranted; return status.isGranted || status.isLimited;
} else { } else {
// 对于Android 13以下版本 // 对于Android 13以下版本
var status = await Permission.storage.request(); var status = await Permission.storage.request();
if (status.isPermanentlyDenied) {
await openAppSettings();
}
return status.isGranted; return status.isGranted;
} }
} else {
// iOS使用照片权限
return await requestPhotoPermission();
} }
return false;
} }
///保存到相册 ///保存到相册
@@ -98,10 +103,9 @@ class DownLoadImageTool {
final result = await ImageGallerySaverPlus.saveImage( final result = await ImageGallerySaverPlus.saveImage(
Uint8List.fromList(response.data), Uint8List.fromList(response.data),
quality: 60, quality: 60,
name: "hello", name: "flutter_common_${DateTime.now().millisecondsSinceEpoch}",
isReturnImagePathOfIOS: true, isReturnImagePathOfIOS: true,
); );
print('=result ============ $result');
return result; return result;
} }
@@ -127,7 +131,6 @@ class DownLoadImageTool {
EasyLoading.dismiss(); EasyLoading.dismiss();
return null; return null;
} }
} catch (e) { } catch (e) {
EasyLoading.dismiss(); EasyLoading.dismiss();
// debugPrint('Error fetching image: $e'); // debugPrint('Error fetching image: $e');

View File

@@ -1,23 +1,47 @@
import 'dart:io';
import 'package:dio/dio.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_common/upload_image/down_load_image_tool.dart';
import 'package:flutter_common/upload_image/ossUtil.dart';
import 'package:flutter_common/utils/toast_utils.dart';
import 'package:get/get.dart'; import 'package:get/get.dart';
import 'package:photo_view/photo_view.dart'; import 'package:image_editor_plus/image_editor_plus.dart';
import 'package:path_provider/path_provider.dart';
import 'package:photo_view/photo_view_gallery.dart'; import 'package:photo_view/photo_view_gallery.dart';
class LookImagesTool { class LookImagesTool {
static lookImages({ static lookImages({
required List<String> listData, required List<String> listData,
int? currentPage, int? currentPage,
Function? editCallback, void Function(String)? onCallBack,
void Function(String, int)? onEditCallBack,
String? oSSAccessKeyId,
Function? callBack,
bool? isShowEdit,
String? policy,
String? callback,
String? signature,
String? ossDirectory,
String? ossHost,
}) async { }) async {
showDialog( showDialog(
context: Get.context!, context: Get.context!,
useSafeArea: false, useSafeArea: false,
builder: (_) { builder: (_) {
return LookImagesWidget( return LookImagesWidget(
listData: listData, listData: listData,
currentPage: currentPage, currentPage: currentPage,
editCallback: editCallback, onCallBack: onCallBack,
); onEditCallBack: onEditCallBack,
oSSAccessKeyId: oSSAccessKeyId,
policy: policy,
callback: callback,
isShowEdit: isShowEdit,
signature: signature,
ossDirectory: ossDirectory,
ossHost: ossHost);
}); });
} }
} }
@@ -25,13 +49,29 @@ class LookImagesTool {
class LookImagesWidget extends StatefulWidget { class LookImagesWidget extends StatefulWidget {
final List<String> listData; final List<String> listData;
final int? currentPage; final int? currentPage;
final Function? editCallback; final String? oSSAccessKeyId;
final String? policy;
final String? callback;
final String? signature;
final String? ossDirectory;
final String? ossHost;
final void Function(String)? onCallBack;
final void Function(String, int)? onEditCallBack;
final bool? isShowEdit;
const LookImagesWidget({ const LookImagesWidget({
super.key, super.key,
required this.listData, required this.listData,
this.currentPage, this.currentPage,
this.editCallback, this.oSSAccessKeyId,
this.policy,
this.callback,
this.signature,
this.ossDirectory,
this.ossHost,
this.onCallBack,
this.onEditCallBack,
this.isShowEdit,
}); });
@override @override
@@ -39,18 +79,167 @@ class LookImagesWidget extends StatefulWidget {
} }
class _LookImagesWidgetState extends State<LookImagesWidget> { class _LookImagesWidgetState extends State<LookImagesWidget> {
List listData = []; List<String> listData = [];
late int currentPage; late int currentPage;
late int initialPage = 0; late int initialPage = 0;
/// Dio 最简版:网络图片转 Uint8List
Future<Uint8List?> networkImageToUint8ListWithDio(String imageUrl) async {
final dio = Dio(); // 初始化 Dio 实例
try {
// 发起 GET 请求,响应类型设为字节数组(关键)
final response = await dio.get<List<int>>(
imageUrl,
options: Options(responseType: ResponseType.bytes),
);
// 响应成功且数据非空时,直接转为 Uint8List
return response.statusCode == 200 && response.data != null
? Uint8List.fromList(response.data!)
: null;
} catch (e) {
debugPrint('图片转换失败:$e'); // 捕获网络错误、URL 非法等异常
return null;
}
}
Future<Uint8List?> editImage({required String url}) async {
Uint8List? imageBytes = await networkImageToUint8ListWithDio(url);
ImageEditor.setI18n({
'crop': '裁剪',
'rotate left': '左旋转',
'rotate right': '右旋转',
'flip': '水平翻转',
'brush': '涂抹',
'link': '链接',
'save': '保存',
'text': '文本',
'blur': '模糊',
'filter': '滤镜',
'size': '大小',
'color': '颜色',
'background color': '背景颜色',
'background opacity': '背景透明度',
'reset': '重置',
'freeform': '自由裁剪',
'remove': '移除',
'emoji': '表情',
'slider color': '滑块颜色',
'color opacity': '透明度',
'blur radius': '模糊半径',
});
if (mounted) {
Uint8List? editedImage = await Navigator.push(
context,
MaterialPageRoute(
builder: (context) => ImageEditor(
image: imageBytes,
blurOption: null,
filtersOption: null,
brushOption: null,
textOption: null,
emojiOption: null,
),
),
);
return editedImage;
}
return null;
}
/// 可选:根据字节头自动识别文件后缀(如图片、视频)
String getExtension(Uint8List uint8List) {
if (uint8List.length < 4) return "bin"; // 无法识别时返回二进制后缀
// PNG 头89 50 4E 47
if (uint8List[0] == 0x89 &&
uint8List[1] == 0x50 &&
uint8List[2] == 0x4E &&
uint8List[3] == 0x47) {
return "png";
}
// JPG 头FF D8 FF
else if (uint8List[0] == 0xFF &&
uint8List[1] == 0xD8 &&
uint8List[2] == 0xFF) {
return "jpg";
}
// MP4 头00 00 00 18 66 74 79 70
else if (uint8List.length >= 8 &&
uint8List[0] == 0x00 &&
uint8List[1] == 0x00 &&
uint8List[2] == 0x00 &&
uint8List[3] == 0x18 &&
uint8List[4] == 0x66 &&
uint8List[5] == 0x74 &&
uint8List[6] == 0x79 &&
uint8List[7] == 0x70) {
return "mp4";
}
// 其他格式可自行扩展(如 GIF、PDF 等)
else {
return "bin";
}
}
/// Uint8List 转临时 File 并且上传到oss并返回访问路径
Future<String?> uint8ListToTempFile(Uint8List uint8List,
{String fileName = "temp_file"}) async {
if (uint8List.isEmpty) return null;
try {
// 1. 获取临时存储目录(跨平台兼容)
Directory tempDir = await getTemporaryDirectory();
String tempPath = tempDir.path;
// 2. 拼接文件路径(可自定义后缀,如 .png、.mp4 等)
File tempFile =
File("$tempPath/$fileName.${getExtension(uint8List)}"); // 自动识别后缀(可选)
// 3. 将 Uint8List 写入文件
await tempFile.writeAsBytes(uint8List);
// print("临时文件路径:${tempFile.path}");
String imageUrl = await UploadOss.upload(
tempFile.path,
fileType: getExtension(uint8List),
oSSAccessKeyId: widget.oSSAccessKeyId ?? '',
ossHost: widget.ossHost ?? '',
ossDirectory: widget.ossDirectory ?? '',
policy: widget.policy ?? '',
callback: widget.callback ?? '',
signature: widget.signature ?? '',
);
// print("上传后的访问路径:$imageUrl");
return imageUrl;
} catch (e) {
debugPrint("转换临时文件失败:$e");
return null;
}
}
Future<void> _saveCurrentImage() async {
if (listData.isEmpty) {
ToastUtils.showToast(msg: '暂无可保存的图片');
return;
}
final result = await DownLoadImageTool.savePhoto(
imageUrl: listData[currentPage],
);
if (result != null) {
ToastUtils.showToast(msg: '已保存到相册');
}
}
@override @override
void initState() { void initState() {
listData = widget.listData; listData = List<String>.from(widget.listData);
if (widget.currentPage == null) { if (widget.currentPage == null) {
initialPage = 0; initialPage = 0;
currentPage = 0; currentPage = 0;
} else { } else {
// initialPage = 0;
currentPage = widget.currentPage ?? 0; currentPage = widget.currentPage ?? 0;
} }
super.initState(); super.initState();
@@ -61,30 +250,63 @@ class _LookImagesWidgetState extends State<LookImagesWidget> {
return Scaffold( return Scaffold(
body: Stack( body: Stack(
children: [ children: [
PhotoViewGallery.builder( GestureDetector(
itemCount: listData.length, behavior: HitTestBehavior.translucent,
pageController: PageController(initialPage: currentPage), onLongPress: _saveCurrentImage,
onPageChanged: (index) { child: PhotoViewGallery.builder(
setState(() { itemCount: listData.length,
currentPage = index; pageController: PageController(initialPage: currentPage),
}); onPageChanged: (index) {
}, setState(() {
builder: (_, index) { currentPage = index;
return PhotoViewGalleryPageOptions( });
imageProvider: NetworkImage( },
listData[index], builder: (_, index) {
), return PhotoViewGalleryPageOptions(
); imageProvider: NetworkImage(
}, listData[index],
),
);
},
),
), ),
Positioned( Positioned(
left: 15, left: 15,
top: 50, top: 50,
child: GestureDetector(onTap: () => Get.back(), child: Icon(Icons.arrow_back_ios, color: Colors.white))), child: GestureDetector(
onTap: () => Get.back(),
child: const Icon(Icons.arrow_back_ios, color: Colors.white),
),
),
Positioned( Positioned(
right: 15, right: 15,
top: 50, top: 50,
child: GestureDetector(onTap: () => widget.editCallback?.call(), child: Icon(Icons.edit, color: Colors.white))), child: GestureDetector(
onTap: () async {
Uint8List? imageFile =
await editImage(url: listData[currentPage]);
if (imageFile == null || imageFile.isEmpty) {
return;
}
String? url = await uint8ListToTempFile(imageFile);
if (url == null || url.isEmpty) {
ToastUtils.showToast(msg: '图片上传失败');
return;
}
setState(() {
listData[currentPage] = url;
});
widget.onEditCallBack?.call(url, currentPage);
widget.onCallBack?.call(url);
},
child: Visibility(
visible: widget.isShowEdit ?? false,
child: const Icon(Icons.edit, color: Colors.white),
),
),
),
//图片张数指示器 //图片张数指示器
Positioned( Positioned(
left: 0, left: 0,

View File

@@ -77,6 +77,10 @@ class UploadOss {
); );
print("response ===== $response"); print("response ===== $response");
EasyLoading.dismiss(); EasyLoading.dismiss();
if(fileType == 'jpg'){
/// 删除临时文件
File(path).deleteSync();
}
// 成功后返回文件访问路径 // 成功后返回文件访问路径
return "$ossHost/$ossDirectory$pathName"; return "$ossHost/$ossDirectory$pathName";
} on DioError catch (e) { } on DioError catch (e) {

View File

@@ -280,7 +280,7 @@ class _UploadImagesState extends State<UploadImages> {
title: const Text('上传图片'), title: const Text('上传图片'),
message: (max == null || max == 0) message: (max == null || max == 0)
? null ? null
: Text('请选择上传方式\n相册最多${max ?? 9}'), : Text('请选择上传方式\n相册最多$max张'),
actions: <Widget>[ actions: <Widget>[
CupertinoActionSheetAction( CupertinoActionSheetAction(
child: const Text('拍照上传'), child: const Text('拍照上传'),

View File

@@ -1,13 +1,16 @@
import 'dart:io'; import 'dart:io';
import 'dart:math';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter_common/upload_image/ossUtil.dart'; import 'package:flutter_common/upload_image/ossUtil.dart';
import 'package:flutter_image_compress/flutter_image_compress.dart';
import 'package:get/get.dart'; import 'package:get/get.dart';
import 'package:image_picker/image_picker.dart'; import 'package:image_picker/image_picker.dart';
// import 'package:images_picker/images_picker.dart'; // import 'package:images_picker/images_picker.dart';
// import 'package:images_picker/images_picker.dart'; // import 'package:images_picker/images_picker.dart';
import 'package:permission_handler/permission_handler.dart'; import 'package:permission_handler/permission_handler.dart';
import 'package:wechat_assets_picker/wechat_assets_picker.dart';
class UploadImagesTool { class UploadImagesTool {
static uploadImagesTool({ static uploadImagesTool({
@@ -26,7 +29,7 @@ class UploadImagesTool {
}) async { }) async {
await chooseCamera( await chooseCamera(
context: context, context: context,
max: max ?? 9, max: max,
oSSAccessKeyId: oSSAccessKeyId ?? '', oSSAccessKeyId: oSSAccessKeyId ?? '',
ossHost: ossHost ?? '', ossHost: ossHost ?? '',
ossDirectory: ossDirectory ?? '', ossDirectory: ossDirectory ?? '',
@@ -136,9 +139,7 @@ class UploadImagesTool {
) )
: CupertinoActionSheet( : CupertinoActionSheet(
title: const Text('上传图片'), title: const Text('上传图片'),
message: (max == null || max == 0) message: (max == null || max == 0) ? null : Text('请选择上传方式\n相册最多${max}'),
? null
: Text('请选择上传方式\n相册最多${max ?? 9}'),
actions: isAddOtherWidget != null actions: isAddOtherWidget != null
? <Widget>[ ? <Widget>[
isAddOtherWidget, isAddOtherWidget,
@@ -152,8 +153,7 @@ class UploadImagesTool {
policy: policy ?? '', policy: policy ?? '',
callback: callback ?? '', callback: callback ?? '',
signature: signature ?? '', signature: signature ?? '',
chooseImages: (list) => chooseImages: (list) => chooseImages?.call(list),
chooseImages?.call(list),
); );
Get.back(); Get.back();
}, },
@@ -169,8 +169,7 @@ class UploadImagesTool {
policy: policy ?? '', policy: policy ?? '',
callback: callback ?? '', callback: callback ?? '',
signature: signature ?? '', signature: signature ?? '',
chooseImages: (list) => chooseImages: (list) => chooseImages?.call(list),
chooseImages?.call(list),
); );
Get.back(); Get.back();
}, },
@@ -187,8 +186,7 @@ class UploadImagesTool {
policy: policy ?? '', policy: policy ?? '',
callback: callback ?? '', callback: callback ?? '',
signature: signature ?? '', signature: signature ?? '',
chooseImages: (list) => chooseImages: (list) => chooseImages?.call(list),
chooseImages?.call(list),
); );
Get.back(); Get.back();
}, },
@@ -205,8 +203,7 @@ class UploadImagesTool {
callback: callback ?? '', callback: callback ?? '',
signature: signature ?? '', signature: signature ?? '',
isShowLoading: isShowLoading, isShowLoading: isShowLoading,
chooseImages: (list) => chooseImages: (list) => chooseImages?.call(list),
chooseImages?.call(list),
); );
Get.back(); Get.back();
}, },
@@ -235,6 +232,9 @@ class UploadImagesTool {
}) async { }) async {
XFile? file = await ImagePicker().pickImage( XFile? file = await ImagePicker().pickImage(
source: ImageSource.camera, source: ImageSource.camera,
maxHeight: 1080,
maxWidth: 1920,
imageQuality: 80
); );
if (file == null) { if (file == null) {
Get.back(); Get.back();
@@ -265,7 +265,11 @@ class UploadImagesTool {
bool? isShowLoading, bool? isShowLoading,
}) async { }) async {
if (isVideo == true) { if (isVideo == true) {
XFile? video = await ImagePicker().pickVideo(source: ImageSource.gallery); final List<AssetEntity>? result = await AssetPicker.pickAssets(
Get.context!,
pickerConfig: AssetPickerConfig(maxAssets: 1, requestType: RequestType.video),
);
final File? video = await result?.first.file;
String path = await saveNetworkImgGallery( String path = await saveNetworkImgGallery(
video?.path ?? '', video?.path ?? '',
fileType: 'mp4', fileType: 'mp4',
@@ -277,11 +281,34 @@ class UploadImagesTool {
signature: signature ?? '', signature: signature ?? '',
); );
chooseImages?.call([path]); chooseImages?.call([path]);
print('video path ============ $path');
} else { } else {
List<XFile>? images = await ImagePicker().pickMultiImage(); /// 创建临时目录
final Directory tempDir = Directory.systemTemp.createTempSync('compressed_images_');
final List<AssetEntity>? result = await AssetPicker.pickAssets(
Get.context!,
pickerConfig: AssetPickerConfig(maxAssets: max ?? 50),
);
/// 临时存储选中的图片
final List<XFile> selectedFiles = [];
if (result != null && result.isNotEmpty) {
for (int i = 0; i < result.length; i++) {
final File? file = await result[i].file;
if (file != null) {
/// 获取文件扩展名
final String extension = file.absolute.path.split('.').last;
/// 压缩并保存到临时文件
final XFile? compressedFile = await FlutterImageCompress.compressAndGetFile(
file.absolute.path, '${tempDir.path}/${DateTime.now().millisecondsSinceEpoch}_compressed.$extension',
quality: 80, minWidth: 1920, minHeight: 1080);
if (compressedFile != null) {
selectedFiles.add(compressedFile);
}
}
}
}
/// 上传选中的图片
List<String> list = []; List<String> list = [];
for (var element in images) { for (var element in selectedFiles) {
String path = await saveNetworkImgGallery( String path = await saveNetworkImgGallery(
element.path, element.path,
oSSAccessKeyId: oSSAccessKeyId ?? '', oSSAccessKeyId: oSSAccessKeyId ?? '',
@@ -333,7 +360,7 @@ class UploadImagesTool {
String? signature, String? signature,
String? ossDirectory, String? ossDirectory,
String? ossHost, String? ossHost,
bool? isShowLoading, bool? isShowLoading,
}) async { }) async {
String string = await UploadOss.upload( String string = await UploadOss.upload(
path, path,

View File

@@ -1,12 +1,11 @@
import 'package:cached_network_image/cached_network_image.dart';
import 'package:easy_debounce/easy_debounce.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:flutter_widget_from_html_core/flutter_widget_from_html_core.dart'; import 'package:flutter_widget_from_html_core/flutter_widget_from_html_core.dart';
// import 'package:flutter_widget_from_html_core/flutter_widget_from_html_core.dart'; // import 'package:flutter_widget_from_html_core/flutter_widget_from_html_core.dart';
import 'package:transparent_image/transparent_image.dart'; import 'package:transparent_image/transparent_image.dart';
///字体样式 ///字体样式
class CustomerTextStyle extends TextStyle { class CustomerTextStyle extends TextStyle {
final Color? customerColor; final Color? customerColor;
@@ -97,17 +96,29 @@ class CustomerImagesNetworking extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Image.network( String? sizeParams = '';
key: Key(imageUrl), int tempHeight = 300;
imageUrl, int tempWidth = 300;
if (height != null) {
sizeParams = '?x-oss-process=image/resize,h_$tempHeight,w_$tempHeight';
}
if (width != null) {
tempWidth = width!.toInt() <= 300 ? 300 : width!.toInt();
sizeParams = '?x-oss-process=image/resize,h_$tempWidth,w_$tempWidth';
}
if (height != null && width != null) {
tempHeight = height!.toInt() <= 300 ? 300 : height!.toInt();
sizeParams = '?x-oss-process=image/resize,h_$tempHeight,w_$tempWidth';
}
return CachedNetworkImage(
imageUrl: imageUrl + sizeParams,
width: width, width: width,
height: height, height: height,
fit: fit, fit: fit,
errorBuilder: (_, object, s) { errorWidget: (_, object, s) {
return Container( return SizedBox(
width: width, width: width,
height: height, height: height,
padding: EdgeInsets.all((width ?? 0) / 2),
child: Center( child: Center(
child: Image.asset( child: Image.asset(
'assets/images/noContainer.png', 'assets/images/noContainer.png',
@@ -119,22 +130,44 @@ class CustomerImagesNetworking extends StatelessWidget {
); );
}, },
); );
return imageUrl.contains('http') == true // return Image.network(
? FadeInImage.memoryNetwork( // key: Key(imageUrl),
placeholder: kTransparentImage, // imageUrl,
width: width, // width: width,
height: height, // height: height,
image: imageUrl, // fit: fit,
fit: fit, // errorBuilder: (_, object, s) {
placeholderErrorBuilder: // return Container(
(_, Object object, StackTrace? stackTrace) { // width: width,
return errorWidget ?? const SizedBox(); // height: height,
}, // padding: EdgeInsets.all((width ?? 0) / 2),
imageErrorBuilder: (_, Object object, StackTrace? stackTrace) { // child: Center(
return errorWidget ?? const SizedBox(); // child: Image.asset(
}, // 'assets/images/noContainer.png',
) // // width: width /2,
: errorWidget ?? const SizedBox(); // // height: width /2,
// fit: fit ?? BoxFit.contain,
// ),
// ),
// );
// },
// );
// return imageUrl.contains('http') == true
// ? FadeInImage.memoryNetwork(
// placeholder: kTransparentImage,
// width: width,
// height: height,
// image: imageUrl,
// fit: fit,
// placeholderErrorBuilder:
// (_, Object object, StackTrace? stackTrace) {
// return errorWidget ?? const SizedBox();
// },
// imageErrorBuilder: (_, Object object, StackTrace? stackTrace) {
// return errorWidget ?? const SizedBox();
// },
// )
// : errorWidget ?? const SizedBox();
} }
} }

View File

@@ -1,10 +1,6 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_common/utils/file/video/lib/chewie.dart'; import 'package:flutter_common/utils/file/video/lib/chewie.dart';
import 'package:video_player/video_player.dart'; import 'package:video_player/video_player.dart';
class VideoPlayPage extends StatefulWidget { class VideoPlayPage extends StatefulWidget {
final String? videoUrl; final String? videoUrl;
const VideoPlayPage({super.key, this.videoUrl}); const VideoPlayPage({super.key, this.videoUrl});

View File

@@ -40,96 +40,99 @@ class _CustomerWebViewState extends State<CustomerWebView> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual, // SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual,
overlays: [SystemUiOverlay.bottom]); // overlays: [SystemUiOverlay.bottom]);
return Stack( return Stack(
alignment: Alignment.topLeft, alignment: Alignment.topLeft,
children: [ children: [
InAppWebView( Padding(
key: webViewKey, padding: const EdgeInsets.only(top: 16,bottom: 16),
// webViewEnvironment: webViewEnvironment, child: InAppWebView(
initialUrlRequest: URLRequest(url: WebUri(widget.url)), key: webViewKey,
// initialUrlRequest: // webViewEnvironment: webViewEnvironment,
// URLRequest(url: WebUri(Uri.base.toString().replaceFirst("/#/", "/") + 'page.html')), initialUrlRequest: URLRequest(url: WebUri(widget.url)),
// initialFile: "assets/index.html", // initialUrlRequest:
initialUserScripts: UnmodifiableListView<UserScript>([]), // URLRequest(url: WebUri(Uri.base.toString().replaceFirst("/#/", "/") + 'page.html')),
initialSettings: settings, // initialFile: "assets/index.html",
// contextMenu: contextMenu, initialUserScripts: UnmodifiableListView<UserScript>([]),
// pullToRefreshController: pullToRefreshController, initialSettings: settings,
onWebViewCreated: (controller) async { // contextMenu: contextMenu,
webViewController = controller; // pullToRefreshController: pullToRefreshController,
}, onWebViewCreated: (controller) async {
onLoadStart: (controller, url) { webViewController = controller;
setState(() { },
// this.url = url.toString(); onLoadStart: (controller, url) {
// urlController.text = this.url; setState(() {
}); // this.url = url.toString();
}, // urlController.text = this.url;
// onPermissionRequest: (controller, request) { });
// return PermissionResponse( },
// resources: request.resources, // onPermissionRequest: (controller, request) {
// action: PermissionResponseAction.GRANT); // return PermissionResponse(
// }, // resources: request.resources,
// shouldOverrideUrlLoading: // action: PermissionResponseAction.GRANT);
// (controller, navigationAction) async { // },
// var uri = navigationAction.request.url!; // shouldOverrideUrlLoading:
// // (controller, navigationAction) async {
// if (![ // var uri = navigationAction.request.url!;
// "http", //
// "https", // if (![
// "file", // "http",
// "chrome", // "https",
// "data", // "file",
// "javascript", // "chrome",
// "about" // "data",
// ].contains(uri.scheme)) { // "javascript",
// if (await canLaunchUrl(uri)) { // "about"
// // Launch the App // ].contains(uri.scheme)) {
// await launchUrl( // if (await canLaunchUrl(uri)) {
// uri, // // Launch the App
// ); // await launchUrl(
// // and cancel the request // uri,
// return NavigationActionPolicy.CANCEL; // );
// } // // and cancel the request
// } // return NavigationActionPolicy.CANCEL;
// // }
// return NavigationActionPolicy.ALLOW; // }
// }, //
// onLoadStop: (controller, url) { // return NavigationActionPolicy.ALLOW;
// pullToRefreshController?.endRefreshing(); // },
// setState(() { // onLoadStop: (controller, url) {
// this.url = url.toString(); // pullToRefreshController?.endRefreshing();
// urlController.text = this.url; // setState(() {
// }); // this.url = url.toString();
// }, // urlController.text = this.url;
// onReceivedError: (controller, request, error) { // });
// pullToRefreshController?.endRefreshing(); // },
// }, // onReceivedError: (controller, request, error) {
// onProgressChanged: (controller, progress) { // pullToRefreshController?.endRefreshing();
// if (progress == 100) { // },
// pullToRefreshController?.endRefreshing(); // onProgressChanged: (controller, progress) {
// } // if (progress == 100) {
// setState(() { // pullToRefreshController?.endRefreshing();
// this.progress = progress / 100; // }
// urlController.text = this.url; // setState(() {
// }); // this.progress = progress / 100;
// }, // urlController.text = this.url;
// onUpdateVisitedHistory: (controller, url, isReload) { // });
// setState(() { // },
// this.url = url.toString(); // onUpdateVisitedHistory: (controller, url, isReload) {
// urlController.text = this.url; // setState(() {
// }); // this.url = url.toString();
// }, // urlController.text = this.url;
onConsoleMessage: (controller, consoleMessage) { // });
print(consoleMessage); // },
}, onConsoleMessage: (controller, consoleMessage) {
print(consoleMessage);
},
),
), ),
Visibility( Visibility(
visible: widget.hideBack != true, visible: widget.hideBack != true,
child: GestureDetector( child: GestureDetector(
onTap: () => Navigator.pop(context), onTap: () => Navigator.pop(context),
child: Container( child: Container(
margin: const EdgeInsets.only(left: 16, top: 16), margin: const EdgeInsets.only(left: 16, top: 28),
width: 44, width: 44,
height: 44, height: 44,
decoration: BoxDecoration( decoration: BoxDecoration(

31
lib/utils/play_video.dart Normal file
View File

@@ -0,0 +1,31 @@
import 'package:flutter/material.dart';
import 'package:flutter_common/utils/showVideoPlay.dart';
class PlayVideoPage extends StatefulWidget {
final String videoUrl;
const PlayVideoPage({super.key, required this.videoUrl});
@override
State<PlayVideoPage> createState() => _PlayVideoPageState();
}
class _PlayVideoPageState extends State<PlayVideoPage> {
@override
void initState() {
// TODO: implement initState
super.initState();
}
@override
void dispose() {
// TODO: implement dispose
super.dispose();
}
@override
Widget build(BuildContext context) {
return ShowVideoPlayPage(url: widget.videoUrl);
}
}

View File

@@ -65,7 +65,7 @@ class PullRefreshListWidget extends StatelessWidget {
footer: footer ?? footer: footer ??
ClassicFooter( ClassicFooter(
loadingText: '正在加载...', loadingText: '正在加载...',
noDataText: '没有更多数据', noDataText: '暂无更多数据~',
idleText: '加载更多', idleText: '加载更多',
failedText: '加载失败', failedText: '加载失败',
canLoadingText: '松开加载更多', canLoadingText: '松开加载更多',

View File

@@ -0,0 +1,58 @@
import 'dart:collection';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_inappwebview/flutter_inappwebview.dart';
class ShowVideoPlayPage extends StatefulWidget {
final String url;
const ShowVideoPlayPage({super.key, required this.url});
@override
State<ShowVideoPlayPage> createState() => _ShowVideoPlayPageState();
}
class _ShowVideoPlayPageState extends State<ShowVideoPlayPage> {
InAppWebViewController? webViewController;
InAppWebViewSettings settings = InAppWebViewSettings(
isInspectable: kDebugMode,
mediaPlaybackRequiresUserGesture: false,
allowsInlineMediaPlayback: true,
iframeAllow: "camera; microphone",
iframeAllowFullscreen: true);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
leading: GestureDetector(
onTap: () => Navigator.pop(context),
child: Icon(
Icons.navigate_before,
color: Colors.white,
size: 32,
),
),
backgroundColor: Colors.black,
),
body: Container(
color: Colors.black,
child:InAppWebView(
initialUrlRequest: URLRequest(url: WebUri(widget.url)),
initialUserScripts: UnmodifiableListView<UserScript>([]),
initialSettings: settings,
onWebViewCreated: (controller) async {
webViewController = controller;
},
onLoadStart: (controller, url) {
setState(() {
});
},
onConsoleMessage: (controller, consoleMessage) {
print(consoleMessage);
},
),
),
);
}
}

View File

@@ -59,98 +59,113 @@ class ToastUtils {
bool isShowConfirm = false, bool isShowConfirm = false,
Color? barrierColor, Color? barrierColor,
EdgeInsetsGeometry? padding, EdgeInsetsGeometry? padding,
bool useSafeArea = false,
}) { }) {
cancelToast(); cancelToast();
return showDialog( return showDialog(
useSafeArea: useSafeArea,
context: context, context: context,
builder: (BuildContext ctx) { builder: (BuildContext ctx) {
return Container( final dialogHeight = height ?? MediaQuery.of(ctx).size.height / 2;
width: double.infinity, return Material(
height: MediaQuery.of(context).size.height / 2, type: MaterialType.transparency,
margin: EdgeInsets.only( child: Align(
top: height == null alignment: Alignment.bottomCenter,
? MediaQuery.of(context).size.height / 2 child: Container(
: (MediaQuery.of(context).size.height - height), width: double.infinity,
), decoration: const BoxDecoration(
padding: padding ?? const EdgeInsets.only(bottom: 40), color: Colors.white,
decoration: const BoxDecoration( borderRadius: BorderRadius.only(
color: Colors.white, topLeft: Radius.circular(12),
borderRadius: BorderRadius.only( topRight: Radius.circular(12),
topLeft: Radius.circular(12), ),
topRight: Radius.circular(12), ),
), child: SafeArea(
), top: false,
child: Column( child: SizedBox(
children: [ height: dialogHeight,
header ?? child: Padding(
Container( padding: padding ?? EdgeInsets.zero,
padding: const EdgeInsets.only(bottom: 5), child: Column(
decoration: const BoxDecoration(
border: Border(
bottom:
BorderSide(color: Color(0xffE1E1E1), width: 0.5),
),
),
child: Row(
children: [ children: [
GestureDetector( header ??
onTap: () => Navigator.of(context).pop(), Container(
child: Container( padding: const EdgeInsets.only(bottom: 5),
padding: decoration: const BoxDecoration(
const EdgeInsets.only(left: 6, right: 10), border: Border(
color: Colors.transparent, bottom: BorderSide(
child: Icon( color: Color(0xffE1E1E1),
Icons.keyboard_arrow_down_rounded, width: 0.5,
size: leftIconSize ?? 40, ),
), ),
), ),
), child: Row(
Expanded( children: [
child: Container( GestureDetector(
alignment: Alignment.center, onTap: () => Navigator.of(ctx).pop(),
child: Text( child: Container(
title ?? '头部', padding: const EdgeInsets.only(
style: TextStyle( left: 6,
color: const Color(0xff333333), right: 10,
fontSize: titleFontSize ?? 18, ),
fontWeight: FontWeight.bold, color: Colors.transparent,
child: Icon(
Icons.keyboard_arrow_down_rounded,
size: leftIconSize ?? 40,
),
),
),
Expanded(
child: Container(
alignment: Alignment.center,
child: Text(
title ?? '头部',
style: TextStyle(
color: const Color(0xff333333),
fontSize: titleFontSize ?? 18,
fontWeight: FontWeight.bold,
),
),
),
),
GestureDetector(
onTap: () {
if (isShowConfirm) {
if (onConfirm != null) {
onConfirm();
Navigator.of(ctx).pop();
}
}
},
child: Container(
padding: const EdgeInsets.only(
left: 10,
top: 8,
bottom: 8,
right: 18,
),
alignment: Alignment.center,
color: Colors.transparent,
child: Text(
'确定',
style: TextStyle(
color: isShowConfirm
? const Color(0xff4D6FD5)
: Colors.transparent,
fontSize: 16),
),
),
)
],
), ),
), ),
), Expanded(child: contentWidget ?? const SizedBox())
),
GestureDetector(
onTap: () {
if (isShowConfirm) {
if (onConfirm != null) {
onConfirm();
Navigator.pop(context);
}
}
},
child: Container(
padding: const EdgeInsets.only(
left: 10,
top: 8,
bottom: 8,
right: 18,
),
alignment: Alignment.center,
color: Colors.transparent,
child: Text(
'确定',
style: TextStyle(
color: isShowConfirm
? const Color(0xff4D6FD5)
: Colors.transparent,
fontSize: 16),
),
),
)
], ],
), ),
), ),
Expanded(child: contentWidget ?? const SizedBox()) ),
], ),
),
), ),
); );
}); });

File diff suppressed because it is too large Load Diff

View File

@@ -15,6 +15,7 @@ dependencies:
flutter_easyloading: ^3.0.0 flutter_easyloading: ^3.0.0
sticky_headers: ^0.3.0+2 #日历需要 sticky_headers: ^0.3.0+2 #日历需要
get: ^4.6.5 get: ^4.6.5
easy_debounce: ^2.0.3
flutter_screenutil: ^5.9.0 flutter_screenutil: ^5.9.0
flustars_flutter3: ^3.0.0 #工具类 SpUtilScreenUtil, DirectoryUtil等等。 flustars_flutter3: ^3.0.0 #工具类 SpUtilScreenUtil, DirectoryUtil等等。
pull_to_refresh: ^2.0.0 pull_to_refresh: ^2.0.0
@@ -29,7 +30,7 @@ dependencies:
transparent_image: ^2.0.1 #图片懒加载 transparent_image: ^2.0.1 #图片懒加载
# flutter_cached_pdfview: ^0.4.3 #pdf文件 # flutter_cached_pdfview: ^0.4.3 #pdf文件
# webview_flutter: ^4.8.0 # webview_flutter: ^4.8.0
video_player: ^2.6.1 #视频 video_player: ^2.10.0 #视频
# perfect_volume_control: ^1.0.5 #声音 # perfect_volume_control: ^1.0.5 #声音
screen_brightness: ^2.1.7 #亮度 screen_brightness: ^2.1.7 #亮度
provider: ^6.0.3 provider: ^6.0.3
@@ -38,6 +39,11 @@ dependencies:
url_launcher: ^6.1.10 url_launcher: ^6.1.10
flutter_inappwebview: ^6.1.5 flutter_inappwebview: ^6.1.5
device_info_plus: ^11.3.0 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: dev_dependencies:
flutter_test: flutter_test:

View File

@@ -1,12 +1,13 @@
import 'package:flutter_common/flutter_common.dart';
import 'package:flutter_test/flutter_test.dart'; import 'package:flutter_test/flutter_test.dart';
import 'package:flutter_common/flutter_common.dart';
void main() { void main() {
test('adds one to input values', () { test('exports date utility helpers', () {
final calculator = Calculator(); final formatted = DateTimeUtils.dateTimeUtilsTool(
expect(calculator.addOne(2), 3); dateTime: DateTime(2026, 4, 15).toIso8601String(),
expect(calculator.addOne(-7), -6); dateTimeUtilsType: DateTimeUtilsType.yearMonthDay,
expect(calculator.addOne(0), 1); );
expect(formatted, '2026-04-15');
}); });
} }