Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sourav-Sonkar committed Aug 17, 2024
1 parent 4f464e3 commit e4602ca
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,17 @@ SuperTooltip(
//...
)
```
<img src="https://github.com/bensonarafat/super_tooltip/blob/master/screenshots/screenshot2.png?raw=true" width="250"/>

## DecorationBuilder

For passing custom shape for popup or pass custom decoration,you can use the `decorationBuilder` which will give you access target property
To customize the shape of the popup or apply your own decoration, you can utilize the `decorationBuilder` property. This allows you to access the `target` property and define a custom shape or decoration for the tooltip.

```dart
SuperTooltip(
decorationBuilder:(target){
return ShapeDecoration(
//...
//...
shape: CustomShape(
//...
target: target,
Expand All @@ -142,7 +145,6 @@ SuperTooltip(
)
```

<img src="https://github.com/bensonarafat/super_tooltip/blob/master/screenshots/screenshot2.png?raw=true" width="250"/>

## Barrier

Expand Down

0 comments on commit e4602ca

Please sign in to comment.