t×tecexpressby TeKOcloud
DEv0.7.1
Navigation & feedback / FLUTTER

TxTooltip.

Interactive preview

Hint for target content with a delay and optional custom content.

TxTooltip

ParameterTypeDefaultMeaning
textStringrequiredText to display.
childWidgetrequiredContent or target widget.
disabledboolfalseDisables interaction.
waitDurationDurationDuration.zeroDelay before the tooltip.
showDurationDurationconst Duration(seconds: 3)Tooltip duration after activation.
preferBelowboolfalsePrefers placement below the target.
triggerModeTooltipTriggerModeTooltipTriggerMode.longPressNative tooltip trigger mode.
visiblebool?nullControls visibility.
contentWidget?nullCustom content or file contents as a Blob.
dart
import 'package:flutter/material.dart';
import 'package:tecexpress/tecexpress.dart';

Widget example() {

  return const TxTooltip(text: 'More information', child: Text('Help'));
}