Initial commit

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
谢宇宁
2026-11-05 10:38:11 +07:00
co-authored by Claude Opus 5.5
commit 2d26ea8f90
1071 changed files with 100151 additions and 0 deletions
@@ -0,0 +1,33 @@
library image_gallery_saver;
import 'dart:typed_data';
import 'package:image_gallery_saver_plus/image_gallery_saver_plus.dart';
class ImageGallerySaver {
static Future<dynamic> saveImage(
Uint8List imageBytes, {
int quality = 80,
String? name,
bool isReturnImagePathOfIOS = false,
}) async {
return await ImageGallerySaverPlus.saveImage(
imageBytes,
quality: quality,
name: name,
isReturnImagePathOfIOS: isReturnImagePathOfIOS,
);
}
static Future<dynamic> saveFile(
String file, {
String? name,
bool isReturnPathOfIOS = false,
}) async {
return await ImageGallerySaverPlus.saveFile(
file,
name: name,
isReturnPathOfIOS: isReturnPathOfIOS,
);
}
}
+13
View File
@@ -0,0 +1,13 @@
name: image_gallery_saver
description: Lightweight compatibility wrapper for the deprecated image_gallery_saver API.
publish_to: "none"
version: 2.0.3+compat
environment:
sdk: ">=3.0.0 <4.0.0"
flutter: ">=3.0.0"
dependencies:
flutter:
sdk: flutter
image_gallery_saver_plus: ^4.0.1