From e3bb1030b289fbadb604bbfbc56352448c767b68 Mon Sep 17 00:00:00 2001 From: Xin Yao Date: Tue, 20 Jul 2021 10:53:38 -0700 Subject: [PATCH] Adjust video button position --- lib/src/widgets/toolbar.dart | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/src/widgets/toolbar.dart b/lib/src/widgets/toolbar.dart index 69ce56b2..f31819eb 100644 --- a/lib/src/widgets/toolbar.dart +++ b/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] ||