TF-1184 improve UI UX of ToolbarRichText in web

This commit is contained in:
sherlockvn
2023-02-07 16:11:04 +07:00
committed by Dat Vu
parent addeb22f3d
commit 2e601fcc26
3 changed files with 14 additions and 10 deletions
@@ -21,10 +21,12 @@ class ToolbarRichTextWebBuilder extends StatelessWidget with RichTextButtonMixin
final RichTextWebController richTextWebController;
final ImagePaths _imagePaths = Get.find<ImagePaths>();
final EdgeInsetsGeometry? padding;
ToolbarRichTextWebBuilder({
Key? key,
required this.richTextWebController
required this.richTextWebController,
this.padding,
}) : super(key: key);
@override
@@ -34,7 +36,7 @@ class ToolbarRichTextWebBuilder extends StatelessWidget with RichTextButtonMixin
final opacity = codeViewEnabled ? 0.5 : 1.0;
return Container(
padding: const EdgeInsets.only(left: 20, top: 8, bottom: 8),
padding: padding,
alignment: Alignment.centerLeft,
child: Wrap(
crossAxisAlignment: WrapCrossAlignment.center,