FKPhotos class
图片操作工具类 拍照/录像/媒体选择/图片压缩
Constructors
- FKPhotos()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
albumPicker(
BuildContext context, {List< AssetEntity> ? selectedAssets, RequestType requestType = RequestType.image, int maxAssets = 1}) → Future<List< AssetEntity> ?> - 资源选择器(图片/视频)
-
cameraPicker(
BuildContext context, {bool isAllowRecording = false, bool isOnlyAllowRecording = false, bool enableAudio = false, Duration maximumRecordingDuration = const Duration(seconds: 15), ResolutionPreset resolutionPreset = ResolutionPreset.high}) → Future< AssetEntity?> - 拍照/视频
-
compressAndGetFile(
File file, String targetPath, {int minWidth = 1920, int minHeight = 1080, int quality = 85}) → Future< File?> - 压缩图片
-
compressAsset(
String assetName, {int minWidth = 1920, int minHeight = 1080, int quality = 85}) → Future< Uint8List?> - 压缩图片
-
compressFile(
File file, {int minWidth = 1920, int minHeight = 1080, int quality = 85}) → Future< Uint8List?> - 压缩图片
-
compressList(
Uint8List list, {int minWidth = 1920, int minHeight = 1080, int quality = 85}) → Future< Uint8List> - 压缩图片
-
deleteAsset(
String id) → Future< bool> - 删除资源文件
-
saveToAlbum(
{String? url, AssetEntity? asset, String? base64Img, Uint8List? uint8list, String? path}) → Future< AssetEntity?> - 保存图片到相册