Update toolbar.dart

pull/462/head
mark8044 4 years ago committed by GitHub
parent 3ec76723a2
commit 3c632ea622
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      lib/src/widgets/toolbar.dart

@ -49,6 +49,8 @@ typedef WebVideoPickImpl = Future<String?> Function(
typedef MediaPickSettingSelector = Future<MediaPickSetting?> Function(
BuildContext context);
enum ToolbarAlignment{ left, center, right }
// The default size of the icon of a button.
const double kDefaultIconSize = 18;
@ -72,7 +74,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
required QuillController controller,
double toolbarIconSize = kDefaultIconSize,
double toolBarSectionSpacing = 4,
WrapAlignment toolBarIconAlignment = WrapAlignment,
ToolbarAlignment toolBarIconAlignment = ToolbarAlignment.center,
bool showBoldButton = true,
bool showItalicButton = true,
bool showSmallButton = false,
@ -415,7 +417,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
final List<Widget> children;
final double toolBarHeight;
final double? toolBarSectionSpacing;
final WrapAlignment? toolBarIconAlignment;
final toolBarIconAlignment? toolBarIconAlignment;
final bool? multiRowsDisplay;
/// The color of the toolbar.

Loading…
Cancel
Save