Hint for target content with a delay and optional custom content.
TxTooltip
| Parameter | Type | Default | Meaning |
|---|---|---|---|
| text | String | required | Text to display. |
| child | Widget | required | Content or target widget. |
| disabled | bool | false | Disables interaction. |
| waitDuration | Duration | Duration.zero | Delay before the tooltip. |
| showDuration | Duration | const Duration(seconds: 3) | Tooltip duration after activation. |
| preferBelow | bool | false | Prefers placement below the target. |
| triggerMode | TooltipTriggerMode | TooltipTriggerMode.longPress | Native tooltip trigger mode. |
| visible | bool? | null | Controls visibility. |
| content | Widget? | null | Custom content or file contents as a Blob. |
import 'package:flutter/material.dart';
import 'package:tecexpress/tecexpress.dart';
Widget example() {
return const TxTooltip(text: 'More information', child: Text('Help'));
}