flutter_quill_extensions library
Classes
- FlutterQuillEmbeds
- FlutterQuillExtensions
- QuillEditorImageEmbedBuilder
- QuillEditorImageEmbedConfigurations
- QuillEditorImageEmbedConfigurations for desktop, mobile and other platforms excluding web, it's configurations that is needed for the editor
- QuillEditorUnknownEmbedBuilder
- QuillEditorVideoEmbedBuilder
- QuillEditorVideoEmbedConfigurations
- QuillEditorWebImageEmbedBuilder
- QuillEditorWebImageEmbedConfigurations
- QuillEditorWebVideoEmbedBuilder
- QuillEditorWebVideoEmbedConfigurations
- Configurations for Flutter Editor Extensions shared between toolbar and editor
- QuillToolbarCameraButton
- QuillToolbarCameraButtonExtraOptions
- QuillToolbarCameraButtonOptions
- QuillToolbarFormulaButton
- QuillToolbarFormulaButtonExtraOptions
- QuillToolbarFormulaButtonOptions
- QuillToolbarImageButton
- QuillToolbarImageButtonExtraOptions
- QuillToolbarImageButtonOptions
- QuillToolbarImageConfigurations
- Configurations for dealing with images, on insert a image on request picking a image
- QuillToolbarMediaButtonExtraOptions
- QuillToolbarMediaButtonOptions
- QuillToolbarVideoButton
- QuillToolbarVideoButtonExtraOptions
- QuillToolbarVideoButtonOptions
- QuillToolbarVideoConfigurations
- Configurations for dealing with videos, on insert a video on request picking a video
- SaveImageResult
Extensions
- QuillControllerExt on QuillController
-
Extension functions on
QuillController
that make it easier to insert the embed blocks - QuillMediaTypeX on QuillMediaType
Functions
-
convertImageToUint8List(
String image) → Future< Uint8List?> -
defaultOnImageInsertCallback(
) → OnImageInsertCallback -
defaultOnVideoInsertCallback(
) → OnVideoInsertCallback -
isBase64(
String str) → bool -
isHttpBasedUrl(
String url) → bool -
isImageBase64(
String imageUrl) → bool -
isYouTubeUrl(
String videoUrl) → bool -
saveImage(
{required String imageUrl, required ImageSaverService imageSaverService}) → Future< SaveImageResult>
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