|
|
|
@ -49,7 +49,7 @@ typedef WebVideoPickImpl = Future<String?> Function( |
|
|
|
|
typedef MediaPickSettingSelector = Future<MediaPickSetting?> Function( |
|
|
|
|
BuildContext context); |
|
|
|
|
|
|
|
|
|
enum ToolbarAlignment{ left, center, right } |
|
|
|
|
enum ToolbarAlignment{ start, center, end } |
|
|
|
|
|
|
|
|
|
// The default size of the icon of a button. |
|
|
|
|
const double kDefaultIconSize = 18; |
|
|
|
@ -447,11 +447,11 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget { |
|
|
|
|
child: multiRowsDisplay ?? true |
|
|
|
|
? Wrap( |
|
|
|
|
alignment: |
|
|
|
|
(toolBarIconAlignment==ToolbarAlignment.left) |
|
|
|
|
(toolBarIconAlignment==ToolbarAlignment.start) |
|
|
|
|
? WrapAlignment.start |
|
|
|
|
:(toolBarIconAlignment==ToolbarAlignment.center) |
|
|
|
|
? WrapAlignment.center |
|
|
|
|
:(toolBarIconAlignment==ToolbarAlignment.right) |
|
|
|
|
:(toolBarIconAlignment==ToolbarAlignment.end) |
|
|
|
|
? WrapAlignment.end : WrapAlignment.center, |
|
|
|
|
runSpacing: 4, |
|
|
|
|
spacing: toolBarSectionSpacing ?? 4, |
|
|
|
|