Skip to content

Commit 45ae40d

Browse files
committed
Add hover and splash color to dropdown node
1 parent 07a5db8 commit 45ae40d

File tree

2 files changed

+57
-26
lines changed

2 files changed

+57
-26
lines changed

lib/src/api/nodes/dropdown_node.dart

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,12 @@ class DropdownProperties with SerializableMixin, EquatableMixin {
144144
/// Color of dropdown button when it is focused.
145145
ColorRGBA focusColor;
146146

147+
/// Color of dropdown button and menu item when it is hovered.
148+
ColorRGBA? hoverColor;
149+
150+
/// Splash Color of dropdown button.
151+
ColorRGBA? splashColor;
152+
147153
/// The z-coordinate of the dropdown overlay.
148154
int elevation;
149155

@@ -180,6 +186,8 @@ class DropdownProperties with SerializableMixin, EquatableMixin {
180186
this.icon = const MultiSourceIconModel.icon(show: false),
181187
this.dropdownColor = ColorRGBA.white,
182188
this.focusColor = ColorRGBA.white,
189+
this.hoverColor,
190+
this.splashColor,
183191
this.elevation = 8,
184192
this.borderRadius = CornerRadius.zero,
185193
this.underline = true,
@@ -220,6 +228,8 @@ class DropdownProperties with SerializableMixin, EquatableMixin {
220228
MultiSourceIconModel? icon,
221229
ColorRGBA? dropdownColor,
222230
ColorRGBA? focusColor,
231+
ColorRGBA? hoverColor,
232+
ColorRGBA? splashColor,
223233
int? elevation,
224234
CornerRadius? borderRadius,
225235
bool? underline,
@@ -242,6 +252,8 @@ class DropdownProperties with SerializableMixin, EquatableMixin {
242252
icon: icon ?? this.icon,
243253
dropdownColor: dropdownColor ?? this.dropdownColor,
244254
focusColor: focusColor ?? this.focusColor,
255+
hoverColor: hoverColor ?? this.hoverColor,
256+
splashColor: splashColor ?? this.splashColor,
245257
elevation: elevation ?? this.elevation,
246258
borderRadius: borderRadius ?? this.borderRadius,
247259
underline: underline ?? this.underline,
@@ -265,6 +277,8 @@ class DropdownProperties with SerializableMixin, EquatableMixin {
265277
icon,
266278
dropdownColor,
267279
focusColor,
280+
hoverColor,
281+
splashColor,
268282
elevation,
269283
borderRadius,
270284
underline,

lib/src/api/nodes/dropdown_node.g.dart

Lines changed: 43 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)