@@ -58,6 +58,7 @@ class SuperTooltip extends StatefulWidget {
58
58
final bool showDropBoxFilter;
59
59
final double sigmaX;
60
60
final double sigmaY;
61
+ final List <BoxShadow >? boxShadows;
61
62
62
63
SuperTooltip ({
63
64
Key ? key,
@@ -128,6 +129,7 @@ class SuperTooltip extends StatefulWidget {
128
129
this .showDropBoxFilter = false ,
129
130
this .hideTooltipOnBarrierTap = true ,
130
131
this .toggleOnTap = false ,
132
+ this .boxShadows,
131
133
}) : assert (showDropBoxFilter ? showBarrier ?? false : true ,
132
134
'showDropBoxFilter or showBarrier can\' t be false | null' ),
133
135
super (key: key);
@@ -216,7 +218,7 @@ class _SuperTooltipState extends State<SuperTooltip>
216
218
child: GestureDetector (
217
219
onTap: () {
218
220
if (widget.toggleOnTap && _superTooltipController! .isVisible) {
219
- _superTooltipController! .hideTooltip ();
221
+ _superTooltipController! .hideTooltip ();
220
222
} else {
221
223
_superTooltipController! .showTooltip ();
222
224
}
@@ -402,14 +404,15 @@ class _SuperTooltipState extends State<SuperTooltip>
402
404
ShapeDecoration (
403
405
color: backgroundColor,
404
406
shadows: hasShadow
405
- ? < BoxShadow > [
406
- BoxShadow (
407
- blurRadius: shadowBlurRadius,
408
- spreadRadius: shadowSpreadRadius,
409
- color: shadowColor,
410
- offset: shadowOffset,
411
- ),
412
- ]
407
+ ? widget.boxShadows ??
408
+ < BoxShadow > [
409
+ BoxShadow (
410
+ blurRadius: shadowBlurRadius,
411
+ spreadRadius: shadowSpreadRadius,
412
+ color: shadowColor,
413
+ offset: shadowOffset,
414
+ ),
415
+ ]
413
416
: null ,
414
417
shape: BubbleShape (
415
418
arrowBaseWidth: widget.arrowBaseWidth,
0 commit comments