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);