Skip to content

Commit

Permalink
Merge pull request #79 from bensonarafat/features
Browse files Browse the repository at this point in the history
fix: Custom decoration
  • Loading branch information
bensonarafat authored Sep 28, 2023
2 parents 6333db5 + 5092f8e commit 8d6f7e4
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 28 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@


# [2.0.7] - 28.09.2023
* Fix custom decoration
# [2.0.6] - 28.09.2023
* Fix custom decoration and hide tooltip on tab

Expand Down
53 changes: 27 additions & 26 deletions lib/src/super_tooltip.dart
Original file line number Diff line number Diff line change
Expand Up @@ -371,32 +371,33 @@ class _SuperTooltipState extends State<SuperTooltip>
closeButtonSize: closeButtonSize,
showCloseButton: showCloseButton,
),
decoration: ShapeDecoration(
color: backgroundColor,
shadows: hasShadow
? <BoxShadow>[
BoxShadow(
blurRadius: shadowBlurRadius,
spreadRadius: shadowSpreadRadius,
color: shadowColor,
),
]
: null,
shape: BubbleShape(
arrowBaseWidth: widget.arrowBaseWidth,
arrowTipDistance: widget.arrowTipDistance,
borderColor: widget.borderColor,
borderRadius: widget.borderRadius,
borderWidth: widget.borderWidth,
bottom: bottom,
left: left,
preferredDirection: preferredDirection,
right: right,
target: target,
top: top,
bubbleDimensions: widget.bubbleDimensions,
),
),
decoration: widget.decoration ??
ShapeDecoration(
color: backgroundColor,
shadows: hasShadow
? <BoxShadow>[
BoxShadow(
blurRadius: shadowBlurRadius,
spreadRadius: shadowSpreadRadius,
color: shadowColor,
),
]
: null,
shape: BubbleShape(
arrowBaseWidth: widget.arrowBaseWidth,
arrowTipDistance: widget.arrowTipDistance,
borderColor: widget.borderColor,
borderRadius: widget.borderRadius,
borderWidth: widget.borderWidth,
bottom: bottom,
left: left,
preferredDirection: preferredDirection,
right: right,
target: target,
top: top,
bubbleDimensions: widget.bubbleDimensions,
),
),
child: widget.content,
),
),
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: super_tooltip
description: Super flexible Tooltip class that gets opend in the screens overlay
version: 2.0.6
homepage: https://github.com/escamoteur/super_tooltip
version: 2.0.7
homepage: https://github.com/bensonarafat/super_tooltip


environment:
Expand Down

0 comments on commit 8d6f7e4

Please sign in to comment.