hmb_tooltip 0.0.2 hmb_tooltip: ^0.0.2 copied to clipboard
A Custom Tooltip component
A Custom Tooltip component
Features #
A Custom Tooltip component
Getting started #
flutter pub add hmb_tooltip
Usage #
@override
Widget build(BuildContext context) {
return ASTooltip(
content: Obx(
() {
return ASDurationCountdown(
endTime: widget.endedAt.value ?? DateTime.now(),
childBuilder: (duration) {
return ASText14(
'Your session is running out in ${duration.durationTime} ',
color: ASColors.white,
fontWeight: FontWeight.w400,
height: 18 / 14,
);
},
);
},
),
offsetRight: -20,
offsetTop: 5,
width: 248.w,
color: ASColors.color5F5CB0,
defaultShow: false,
alignment: ArrowAlign.topRight,
milliseconds: 0,
child: ASDurationOnlineView(
onlines: widget.onlines,
duration: widget.duration,
),
initialCallback: (tooltipState) {
this.tooltipState = tooltipState;
// Future.delayed(const Duration(seconds: 12), () {
// tooltipState.show(context);
// });
},
dismissCallback: () {
tooltipState = null;
},
);
}
Additional information #
A Custom Tooltip component