Skip to content

Commit 080344f

Browse files
Sahil-Simformaditya-css
authored andcommitted
feat: ✨Added support for toolTipMargin in Showcase.withWidget (#521)
1 parent 68aa071 commit 080344f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/src/showcase/showcase.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,7 @@ class Showcase extends StatefulWidget {
481481
/// - `tooltipActions`: A list of custom actions (widgets) to display within the tooltip.
482482
/// - `tooltipActionConfig`: Configuration options for custom tooltip actions.
483483
/// - `floatingActionWidget`: Custom static floating action widget to show a static widget anywhere
484+
/// - `toolTipMargin`: The margin around the screen which tooltip try not to cross (defaults to 14dp).
484485
///
485486
/// **Differences from default constructor:**
486487
///
@@ -521,6 +522,7 @@ class Showcase extends StatefulWidget {
521522
this.tooltipActionConfig,
522523
this.scrollAlignment = 0.5,
523524
this.enableAutoScroll,
525+
this.toolTipMargin = 14,
524526
}) : showArrow = false,
525527
onToolTipClick = null,
526528
scaleAnimationDuration = const Duration(milliseconds: 300),
@@ -543,7 +545,6 @@ class Showcase extends StatefulWidget {
543545
descriptionPadding = null,
544546
titleTextDirection = null,
545547
descriptionTextDirection = null,
546-
toolTipMargin = 14,
547548
showcaseKey = key,
548549
assert(
549550
overlayOpacity >= 0.0 && overlayOpacity <= 1.0,

0 commit comments

Comments
 (0)