From b01f6a3bf0e4e72a9c6e312d31bfa2f1d235d899 Mon Sep 17 00:00:00 2001 From: CodeDoctorDE Date: Sun, 27 Oct 2024 10:08:28 +0100 Subject: [PATCH] Add tooltip --- packages/material_leap/lib/src/widgets/context_region.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/material_leap/lib/src/widgets/context_region.dart b/packages/material_leap/lib/src/widgets/context_region.dart index 2d94d3c..4bfc747 100644 --- a/packages/material_leap/lib/src/widgets/context_region.dart +++ b/packages/material_leap/lib/src/widgets/context_region.dart @@ -84,8 +84,10 @@ class _ContextRegionState extends State { child: widget.builder( context, widget.buttonBuilder?.call(context, controller, null) ?? - defaultMenuButton(calculateLocalOffset: true)( - context, controller, null), + defaultMenuButton( + calculateLocalOffset: true, + tooltip: widget.tooltip, + )(context, controller, null), controller), ), );