GuideBubble class

The guide bubble used as the (patched) showcaseview container for both tooltip and spotlight steps.

A faithful port of React Native's tooltip/callout body in DigiaProvider.tsx: title, optional body and a trailing action row, styled from the flat step config (background, border, shadow, radius, colors, buttons). It draws no arrow — the patched Showcase.withWidget draws a placement-aware arrow at the resolved side, so the bubble stays exact while the arrow stays correct.

Inheritance

Constructors

GuideBubble({required String title, required String body, required double maxWidth, required double padding, required Color backgroundColor, required Color borderColor, required double borderWidth, required double cornerRadius, required bool shadow, required Color titleColor, required double titleSize, required FontWeight titleWeight, required Color bodyColor, required double bodySize, required Color buttonPrimaryBackgroundColor, required Color buttonPrimaryTextColor, required Color buttonGhostTextColor, required List<GuideAction> actions, required VariableScope scope, required ValueChanged<GuideAction> onAction, Key? key})
const
GuideBubble.spotlight({required SpotlightStep step, required VariableScope scope, required ValueChanged<GuideAction> onAction})
Builds a bubble for a SpotlightStep (its callout).
factory
GuideBubble.tooltip({required TooltipStep step, required VariableScope scope, required ValueChanged<GuideAction> onAction})
Builds a bubble for a TooltipStep.
factory

Properties

actions List<GuideAction>
final
backgroundColor Color
final
body String
final
bodyColor Color
final
bodySize double
final
borderColor Color
final
borderWidth double
final
buttonGhostTextColor Color
final
buttonPrimaryBackgroundColor Color
final
buttonPrimaryTextColor Color
final
cornerRadius double
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
maxWidth double
final
onAction ValueChanged<GuideAction>
final
padding double
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scope VariableScope
final
shadow bool
final
title String
final
titleColor Color
final
titleSize double
final
titleWeight FontWeight
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited