|
|
@ -74,6 +74,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget { |
|
|
|
bool showHistory = true, |
|
|
|
bool showHistory = true, |
|
|
|
bool showHorizontalRule = false, |
|
|
|
bool showHorizontalRule = false, |
|
|
|
bool multiRowsDisplay = true, |
|
|
|
bool multiRowsDisplay = true, |
|
|
|
|
|
|
|
bool showCamera = true, |
|
|
|
OnImagePickCallback? onImagePickCallback, |
|
|
|
OnImagePickCallback? onImagePickCallback, |
|
|
|
FilePickImpl? filePickImpl, |
|
|
|
FilePickImpl? filePickImpl, |
|
|
|
WebImagePickImpl? webImagePickImpl, |
|
|
|
WebImagePickImpl? webImagePickImpl, |
|
|
@ -172,7 +173,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget { |
|
|
|
filePickImpl: filePickImpl, |
|
|
|
filePickImpl: filePickImpl, |
|
|
|
webImagePickImpl: webImagePickImpl, |
|
|
|
webImagePickImpl: webImagePickImpl, |
|
|
|
), |
|
|
|
), |
|
|
|
if (onImagePickCallback != null) |
|
|
|
if (onImagePickCallback != null && showCamera) |
|
|
|
ImageButton( |
|
|
|
ImageButton( |
|
|
|
icon: Icons.photo_camera, |
|
|
|
icon: Icons.photo_camera, |
|
|
|
iconSize: toolbarIconSize, |
|
|
|
iconSize: toolbarIconSize, |
|
|
|