Skip to content

Commit 2d0cd0e

Browse files
fix: 🐛 make Showcase-wrapped widgets clickable (#620)
* fix: 🐛 Set MouseRegion opaque property to false for improved interaction in TargetWidget, TooltipWrapper, and FloatingActionWidget --------- Co-authored-by: Vasu Nageshri <vasu.nageshri@simformsolutions.com>
1 parent 6915925 commit 2d0cd0e

4 files changed

Lines changed: 5 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- Fixed [#645](https://github.com/SimformSolutionsPvtLtd/showcaseview/issues/645) - Prevent re-entrant calls to _onComplete during rapid barrier taps. Fixed by @[apizon](https://github.com/apizon)
77
- Fixed [#639](https://github.com/SimformSolutionsPvtLtd/showcaseview/issues/639) - Add null-safety guards for async sequence transitions. Fixed by @[vasu-nageshri](https://github.com/vasu-nageshri)
88
- Fixed [#622](https://github.com/SimformSolutionsPvtLtd/showcaseview/issues/622) - Resolve Semantics issue when using `go_router` and `showSemanticsDebugger` flag. Fixed by @[Sahil-Simform](https://github.com/Sahil-Simform)
9+
- Fix [#620](https://github.com/SimformSolutionsPvtLtd/showcaseview/pull/620)- Set MouseRegion opaque property to false for improved interaction in TargetWidget, TooltipWrapper, and FloatingActionWidget. Fixed by @[RuslanTsitser](https://github.com/RuslanTsitser)
910

1011
## [5.0.2]
1112

lib/src/showcase/target_widget.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ class TargetWidget extends StatelessWidget {
9797
child: disableDefaultChildGestures
9898
? IgnorePointer(child: targetWidgetContent)
9999
: MouseRegion(
100+
opaque: false,
100101
cursor: SystemMouseCursors.click,
101102
child: targetWidgetContent,
102103
),

lib/src/tooltip/tooltip_wrapper.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ class _ToolTipWrapperState extends State<ToolTipWrapper>
176176

177177
final defaultToolTipWidget = widget.container != null
178178
? MouseRegion(
179+
opaque: false,
179180
cursor: widget.onTooltipTap == null
180181
? MouseCursor.defer
181182
: SystemMouseCursors.click,
@@ -187,6 +188,7 @@ class _ToolTipWrapperState extends State<ToolTipWrapper>
187188
),
188189
)
189190
: MouseRegion(
191+
opaque: false,
190192
cursor: widget.onTooltipTap == null
191193
? MouseCursor.defer
192194
: SystemMouseCursors.click,

lib/src/widget/floating_action_widget.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ class FloatingActionWidget extends StatelessWidget {
171171
bottom: bottom,
172172
width: width,
173173
height: height,
174-
child: Material(color: Colors.transparent, child: child),
174+
child: Material(type: MaterialType.transparency, color: Colors.transparent, child: child),
175175
);
176176
}
177177
}

0 commit comments

Comments
 (0)