Closed SittiphanSittisak closed 4 months ago
My solution
class MyCircularMenuItem extends CircularMenuItem {
final String tooltip;
MyCircularMenuItem({
@required VoidCallback onTap,
IconData icon,
Color color,
this.tooltip,
}) : super(
onTap: onTap,
icon: icon,
color: color,
);
@override
Widget build(BuildContext context) {
Widget result = super.build(context);
if (tooltip != null && tooltip.isNotEmpty) {
result = Tooltip(
message: tooltip,
child: result,
);
}
return result;
}
}
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
This issue has been automatically closed because it has not had any recent activity.
I want to show a hint like a tooltip widget for each item. How to do this?
At this moment I need to edit the file at
pub.dev\circular_menu-2.0.1\lib\src\circular_menu_item.dart
aboutCircularMenuItem
class for adding theTooltip
widget.like this code below: