Update toolbar.dart

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

@ -64,6 +64,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
this.multiRowsDisplay = true,
this.color,
this.filePickImpl,
this.customIcons = const [],
this.locale,
Key? key,
}) : super(key: key);
@ -110,6 +111,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
FilePickImpl? filePickImpl,
WebImagePickImpl? webImagePickImpl,
WebVideoPickImpl? webVideoPickImpl,
List<QuillCustomIcon> customIcons = const [],
///Map of font sizes in [int]
Map<String, int>? fontSizeValues,
@ -173,6 +175,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
toolbarSectionSpacing: toolbarSectionSpacing,
toolbarIconAlignment: toolbarIconAlignment,
multiRowsDisplay: multiRowsDisplay,
customIcons: customIcons,
locale: locale,
children: [
if (showUndo)
@ -486,6 +489,9 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
/// More https://github.com/singerdmx/flutter-quill#translation
final Locale? locale;
/// List of custom icons
final List<QuillCustomIcon> customIcons;
@override
Size get preferredSize => Size.fromHeight(toolbarHeight);

Loading…
Cancel
Save