Adjust video button position

pull/307/head
Xin Yao 4 years ago
parent 1bf79dc268
commit e3bb1030b2
  1. 20
      lib/src/widgets/toolbar.dart

@ -178,16 +178,6 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
filePickImpl: filePickImpl,
webImagePickImpl: webImagePickImpl,
),
if (onImagePickCallback != null && showCamera)
ImageButton(
icon: Icons.photo_camera,
iconSize: toolbarIconSize,
controller: controller,
imageSource: ImageSource.camera,
onImagePickCallback: onImagePickCallback,
filePickImpl: filePickImpl,
webImagePickImpl: webImagePickImpl,
),
if (onVideoPickCallback != null)
VideoButton(
icon: Icons.movie_creation,
@ -198,6 +188,16 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
filePickImpl: filePickImpl,
webVideoPickImpl: webImagePickImpl,
),
if (onImagePickCallback != null && showCamera)
ImageButton(
icon: Icons.photo_camera,
iconSize: toolbarIconSize,
controller: controller,
imageSource: ImageSource.camera,
onImagePickCallback: onImagePickCallback,
filePickImpl: filePickImpl,
webImagePickImpl: webImagePickImpl,
),
if (isButtonGroupShown[0] &&
(isButtonGroupShown[1] ||
isButtonGroupShown[2] ||

Loading…
Cancel
Save