dartlangeditorflutterflutter-appsflutter-examplesflutter-packageflutter-widgetquillquill-deltaquilljsreactquillrich-textrich-text-editorwysiwygwysiwyg-editor
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
774 B
31 lines
774 B
1 year ago
|
import 'package:cross_file/cross_file.dart' show XFile;
|
||
|
|
||
|
import 'image_options.dart';
|
||
|
|
||
|
export 'package:cross_file/cross_file.dart' show XFile;
|
||
|
|
||
|
export 'image_options.dart';
|
||
|
|
||
|
abstract class ImagePickerInterface {
|
||
|
const ImagePickerInterface();
|
||
|
Future<XFile?> pickImage({
|
||
|
required ImageSource source,
|
||
|
double? maxWidth,
|
||
|
double? maxHeight,
|
||
|
int? imageQuality,
|
||
|
CameraDevice preferredCameraDevice = CameraDevice.rear,
|
||
|
bool requestFullMetadata = true,
|
||
|
});
|
||
|
Future<XFile?> pickMedia({
|
||
|
double? maxWidth,
|
||
|
double? maxHeight,
|
||
|
int? imageQuality,
|
||
|
bool requestFullMetadata = true,
|
||
|
});
|
||
|
Future<XFile?> pickVideo({
|
||
|
required ImageSource source,
|
||
|
CameraDevice preferredCameraDevice = CameraDevice.rear,
|
||
|
Duration? maxDuration,
|
||
|
});
|
||
|
}
|