Update toolbar.dart

pull/463/head
mark8044 4 years ago committed by GitHub
parent 0dedb1c805
commit 616c220032
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      lib/src/widgets/toolbar.dart

@ -49,7 +49,7 @@ typedef WebVideoPickImpl = Future<String?> Function(
typedef MediaPickSettingSelector = Future<MediaPickSetting?> Function( typedef MediaPickSettingSelector = Future<MediaPickSetting?> Function(
BuildContext context); BuildContext context);
enum ToolbarAlignment { start, center, end } enum ToolbarAlignment { start, center, end, spaceAround, spaceBetween, spaceEvenly }
// The default size of the icon of a button. // The default size of the icon of a button.
const double kDefaultIconSize = 18; const double kDefaultIconSize = 18;
@ -452,6 +452,12 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
? WrapAlignment.center ? WrapAlignment.center
: (toolBarIconAlignment == ToolbarAlignment.end) : (toolBarIconAlignment == ToolbarAlignment.end)
? WrapAlignment.end ? WrapAlignment.end
: (toolBarIconAlignment == ToolbarAlignment.spaceAround)
? WrapAlignment.spaceAround
: (toolBarIconAlignment == ToolbarAlignment.spaceBetween)
? WrapAlignment.spaceBetween
: (toolBarIconAlignment == ToolbarAlignment.spaceEvenly)
? WrapAlignment.spaceEvenly
: WrapAlignment.center, : WrapAlignment.center,
runSpacing: 4, runSpacing: 4,
spacing: toolBarSectionSpacing ?? 4, spacing: toolBarSectionSpacing ?? 4,

Loading…
Cancel
Save