Display helpful information when hovering over or long-pressing on widgets
HuxTooltip
:
HuxTooltip
.
Prop | Type | Default | Description |
---|---|---|---|
message | String | required | The text to display in the tooltip |
child | Widget | required | The widget below this tooltip |
backgroundColor | Color? | Theme surface | Background color of the tooltip |
textColor | Color? | Theme text | Text color of the tooltip |
preferBelow | bool | true | Whether to prefer showing below the child |
excludeFromSemantics | bool | false | Whether to exclude from semantics tree |
verticalOffset | double | 10.0 | Vertical offset from the child |
waitDuration | Duration | 500ms | How long to wait before showing |
showDuration | Duration | 3000ms | How long to show the tooltip |
decoration | Decoration? | Default theme | Custom decoration for the tooltip |
textStyle | TextStyle? | Default theme | Custom text style |
height | double? | Auto | Height of the tooltip |
padding | EdgeInsetsGeometry? | 12x8 | Padding inside the tooltip |
margin | EdgeInsetsGeometry? | 8 | Margin around the tooltip |
richMessage | InlineSpan? | null | Rich text message (overrides message) |
Prop | Type | Default | Description |
---|---|---|---|
icon | IconData? | null | The icon to display alongside the message (rendered as an Icon widget) |
iconColor | Color? | Theme text color | Color of the icon |
iconSize | double | 16.0 | Size of the icon |