From 8e2043fcc242371827e9907e19d933d2bf94387e Mon Sep 17 00:00:00 2001 From: Rajat Sharma Date: Fri, 27 Jan 2023 01:15:29 +0100 Subject: [PATCH] Update toolbar.dart (#1070) Add color property to the basic factory function --- lib/src/widgets/toolbar.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/src/widgets/toolbar.dart b/lib/src/widgets/toolbar.dart index 188af5f6..ec7821ce 100644 --- a/lib/src/widgets/toolbar.dart +++ b/lib/src/widgets/toolbar.dart @@ -116,6 +116,10 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget { /// The locale to use for the editor toolbar, defaults to system locale /// More at https://github.com/singerdmx/flutter-quill#translation Locale? locale, + + /// The color of the toolbar + Color? color, + Key? key, }) { final isButtonGroupShown = [ @@ -167,6 +171,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget { return QuillToolbar( key: key, + color: color, toolbarHeight: toolbarIconSize * 2, toolbarSectionSpacing: toolbarSectionSpacing, toolbarIconAlignment: toolbarIconAlignment,