flutter_quill_extensions library

Extensions

QuillControllerExt on QuillController
Extension functions on QuillController that make it easier to insert the embed blocks
QuillMediaTypeX on QuillMediaType

Typedefs

ImageEmbedBuilderErrorWidgetBuilder = ImageErrorWidgetBuilder
ImageEmbedBuilderOnRemovedCallback = Future<void> Function(String imageUrl)
ImageEmbedBuilderProviderBuilder = ImageProvider<Object> Function(BuildContext context, String imageUrl)
ImageEmbedBuilderWillRemoveCallback = Future<bool> Function(String imageUrl)
MediaFilePicker = Future<XFile?> Function(QuillMediaType mediaType)
MediaFileUrl = String
MediaPickedCallback = Future<MediaFileUrl> Function(XFile file)
OnImageInsertCallback = Future<void> Function(String image, QuillController controller)
A callback will called when inserting a image in the editor it have the logic that will insert the image block using the controller
OnImageInsertedCallback = Future<void> Function(String image)
When a new image picked this callback will called and you might want to do some logic depending on your use case
OnRequestPickImage = Future<String?> Function(BuildContext context, ImagePickerService imagePickerService)
When request picking an image, for example when the image button toolbar clicked, it should be null in case the user didn't choose any image or any other reasons, and it should be the image file path as string that is exists in case the user picked the image successfully
OnRequestPickVideo = Future<String?> Function(BuildContext context, ImagePickerService imagePickerService)
When request picking an video, for example when the video button toolbar clicked, it should be null in case the user didn't choose any video or any other reasons, and it should be the video file path as string that is exists in case the user picked the video successfully
OnVideoInsertCallback = Future<void> Function(String video, QuillController controller)
A callback will called when inserting a video in the editor it have the logic that will insert the video block using the controller
OnVideoInsertedCallback = Future<void> Function(String video)
When a new video picked this callback will called and you might want to do some logic depending on your use case