ChildNodeTheme<T> class

Theme data for child node styling in FolderView

Annotations

Constructors

ChildNodeTheme({Widget? widget, Widget? widgetResolver(Node<T> node)?, double width = 20.0, double height = 20.0, EdgeInsets padding = EdgeInsets.zero, EdgeInsets margin = EdgeInsets.zero, TextStyle? textStyle, TextStyle? textStyleResolver(Node<T> node)?, String? labelResolver(Node<T> node)?, TextStyle? selectedTextStyle, TextStyle? selectedTextStyleResolver(Node<T> node)?, Color? selectedBackgroundColor, Color? hoverColor, Color? splashColor, Color? highlightColor, int clickInterval = 300, NodeTooltipTheme<T>? tooltipTheme})
Creates a ChildNodeTheme
const

Properties

clickInterval → int
Click interval in milliseconds for distinguishing single click from double click Only applies to child nodes (leaf nodes)
final
hashCode → int
The hash code for this object.
no setterinherited
height → double
Height of the icon widget
final
highlightColor → Color?
Highlight color for tap feedback
final
hoverColor → Color?
Hover color when mouse hovers over the node
final
labelResolver → String? Function(Node<T> node)?
Resolver function to dynamically determine the label text based on node data If returns null, falls back to node.label
final
margin → EdgeInsets
Margin around the icon widget
final
padding → EdgeInsets
Padding around the icon widget
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectedBackgroundColor → Color?
Background color for selected child nodes
final
selectedTextStyle → TextStyle?
Text style for selected child nodes
final
selectedTextStyleResolver → TextStyle? Function(Node<T> node)?
Resolver function to dynamically determine the selected text style based on node data If returns null, falls back to selectedTextStyle
final
splashColor → Color?
Splash color for tap animations
final
textStyle → TextStyle?
Text style for child nodes
final
textStyleResolver → TextStyle? Function(Node<T> node)?
Resolver function to dynamically determine the text style based on node data If returns null, falls back to textStyle
final
tooltipTheme → NodeTooltipTheme<T>?
Tooltip theme for child nodes
final
widget → Widget?
Widget to display for child icon
final
widgetResolver → Widget? Function(Node<T> node)?
Resolver function to dynamically determine the widget based on node data If returns null, falls back to widget
final
width → double
Width of the icon widget
final

Methods

copyWith({Widget? widget, Widget? widgetResolver(Node<T> node)?, double? width, double? height, EdgeInsets? padding, EdgeInsets? margin, TextStyle? textStyle, TextStyle? textStyleResolver(Node<T> node)?, String? labelResolver(Node<T> node)?, TextStyle? selectedTextStyle, TextStyle? selectedTextStyleResolver(Node<T> node)?, Color? selectedBackgroundColor, Color? hoverColor, Color? splashColor, Color? highlightColor, int? clickInterval, NodeTooltipTheme<T>? tooltipTheme}) → ChildNodeTheme<T>
Creates a copy of this theme with the given fields replaced with new values
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scale(double factor, {required double defaultFontSize}) → ChildNodeTheme<T>
Returns a scaled copy with all spatial fields and text size multiplied by factor. See FolderNodeTheme.scale for shared contract details.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

lerp<T>(ChildNodeTheme<T>? a, ChildNodeTheme<T>? b, double t) → ChildNodeTheme<T>
Linearly interpolate between two ChildNodeThemes