From 03c10b23117c73bf0688761e5c46ddb0b9478b3c Mon Sep 17 00:00:00 2001 From: mark8044 <87546778+mark8044@users.noreply.github.com> Date: Mon, 9 May 2022 20:01:32 -0700 Subject: [PATCH] Update toolbar.dart --- lib/src/widgets/toolbar.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/src/widgets/toolbar.dart b/lib/src/widgets/toolbar.dart index 728bf9e8..883b4b6d 100644 --- a/lib/src/widgets/toolbar.dart +++ b/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 customIcons = const [], ///Map of font sizes in [int] Map? 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 customIcons; + @override Size get preferredSize => Size.fromHeight(toolbarHeight);