File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,17 @@ import 'package:flutter/material.dart';
3
3
class QuillCustomButton {
4
4
const QuillCustomButton ({
5
5
this .icon,
6
+ this .iconColor,
6
7
this .onTap,
7
8
this .tooltip,
8
9
});
9
10
10
11
///The icon widget
11
12
final IconData ? icon;
12
13
14
+ ///The icon color;
15
+ final Color ? iconColor;
16
+
13
17
///The function when the icon is tapped
14
18
final VoidCallback ? onTap;
15
19
Original file line number Diff line number Diff line change @@ -570,7 +570,11 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
570
570
highlightElevation: 0 ,
571
571
hoverElevation: 0 ,
572
572
size: toolbarIconSize * kIconButtonFactor,
573
- icon: Icon (customButton.icon, size: toolbarIconSize),
573
+ icon: Icon (
574
+ customButton.icon,
575
+ size: toolbarIconSize,
576
+ color: customButton.iconColor,
577
+ ),
574
578
tooltip: customButton.tooltip,
575
579
borderRadius: iconTheme? .borderRadius ?? 2 ,
576
580
onPressed: customButton.onTap,
You can’t perform that action at this time.
0 commit comments