Tooltip constructor
const
Tooltip({
- Key? key,
- required String message,
- required Widget child,
- bool preferBelow = true,
- Color? background,
- Color? textColor,
- IconData? icon,
- double borderRadius = 8,
- EdgeInsets margin = const EdgeInsets.all(8),
- EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
- Duration waitDuration = const Duration(milliseconds: 400),
- double verticalOffset = 24,
Implementation
const Tooltip({
super.key,
required this.message,
required this.child,
this.preferBelow = true,
this.background,
this.textColor,
this.icon,
this.borderRadius = 8,
this.margin = const EdgeInsets.all(8),
this.padding = const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
this.waitDuration = const Duration(milliseconds: 400),
this.verticalOffset = 24,
});