SimpleTooltip class
Constructors
SimpleTooltip ({Key ? key , required Widget child , TooltipDirection tooltipDirection = TooltipDirection.up , required Widget content , required bool show , EdgeInsets ballonPadding = const EdgeInsets.symmetric(horizontal: 20, vertical: 16) , double ? maxWidth , double ? minWidth , double ? maxHeight , double ? minHeight , double ? bottom , double ? right , double ? top , double ? left , double arrowTipDistance = 6 , double arrowLength = 20 , double minimumOutSidePadding = 20.0 , double arrowBaseWidth = 20.0 , double borderRadius = 10 , double borderWidth = 2.0 , Color borderColor = const Color(0xFF50FFFF) , Duration animationDuration = const Duration(milliseconds: 460) , Color backgroundColor = const Color(0xFFFFFFFF) , List <BoxShadow > customShadows = const [BoxShadow(color: Color(0x45222222), blurRadius: 8, spreadRadius: 2)] , dynamic tooltipTap ()?, bool hideOnTooltipTap = false , RouteObserver <PageRoute > ? routeObserver })
const
Properties
animationDuration
→ Duration
sets the duration of the tooltip entrance animation
defaults to 460
milliseconds
final
arrowBaseWidth
→ double
The width of the arrow at its base
final
arrowLength
→ double
The length of the Arrow
final
arrowTipDistance
→ double
The distance of the tip of the arrow's tip to the center of the target
final
backgroundColor
→ Color
The color of the border
final
ballonPadding
→ EdgeInsets
Sets the content padding
defautls to: const EdgeInsets.symmetric(horizontal: 20, vertical: 16),
final
borderColor
→ Color
The color of the border
final
borderRadius
→ double
The corder radii of the border
final
borderWidth
→ double
the stroke width of the border
final
bottom
→ double ?
final
child
→ Widget
The child which the tooltip will target to
final
content
→ Widget
Defines the content that its placed inside the tooltip ballon
final
customShadows
→ List <BoxShadow >
Set a custom list of BoxShadow
defaults to const BoxShadow(color: const Color(0x45222222), blurRadius: 8, spreadRadius: 2),
final
hashCode
→ int
The hash code for this object.
no setter inherited
hideOnTooltipTap
→ bool
If you want to automatically dismiss the tooltip whenever a user taps on it, set this flag to true
For more control on when to dismiss the tooltip please rely on the show property and tooltipTap handler
defaults to false
final
key
→ Key ?
Controls how one widget replaces another widget in the tree.
final inherited
left
→ double ?
final
maxHeight
→ double ?
final
maxWidth
→ double ?
final
minHeight
→ double ?
final
minimumOutSidePadding
→ double
The minium padding from the Tooltip to the screen limits
final
minWidth
→ double ?
minWidth , minHeight , maxWidth , maxHeight optional size constraints.
If a constraint is not set the size will ajust to the content
final
right
→ double ?
final
routeObserver
→ RouteObserver <PageRoute > ?
Pass a RouteObserver
so that the widget will listen for route transition and will hide tooltip when
the widget's route is not active
final
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
show
→ bool
If true, it will display the tool , if false it will hide it
final
tooltipDirection
→ TooltipDirection
Sets the tooltip direction
defaults to TooltipDirection.up
final
tooltipTap
→ (dynamic Function() ?)
Set a handler for listening to a tap
event on the tooltip (This is the recommended way to put your logic for dismissing the tooltip)
final
top
→ double ?
top , right , bottom , left position the Tooltip absolute relative to the whole screen
final