初始化
This commit is contained in:
@@ -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,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user