Update toolbar.dart (#1070)

Add color property to the basic factory function
pull/1073/head
Rajat Sharma 2 years ago committed by GitHub
parent 68f6ce30b7
commit 8e2043fcc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      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,

Loading…
Cancel
Save