OrderedTip class
Tips show in order.
Make SimpleTip more flexable.
Example:
Widget build(context) {
final key = GlobalKey<TipGrouperState>();
return OrderedTip(
id: 'id1',
grouper: key,
order: 1,
message: 'Tip for profile',
child: TextButton(
onPressed: navigateToProfile,
child: Text('Profile'),
),
);
}
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- OrderedTip
Constructors
-
OrderedTip({Key? key, required String id, GlobalKey<
TipGrouperState> ? grouper, String? title, String? message, Widget? content, int version = 0, int order = 0, BoxConstraints boxConstraints = const BoxConstraints(minHeight: 24.0), Decoration? decoration, TextStyle textStyle = const TextStyle(), EdgeInsets padding = const EdgeInsets.all(8.0), EdgeInsets margin = const EdgeInsets.symmetric(horizontal: 16.0), double verticalOffset = 24.0, String closerText = 'OK', Duration waitDuration = const Duration(milliseconds: 300), bool excludeFromSemantics = false, bool preferBelow = true, required Widget child}) -
const
Properties
- boxConstraints → BoxConstraints
-
Tip's content constraints
final
- child → Widget
-
The widget below this widget in the tree.
final
- closerText → String
-
Text of button to close tip.
final
- content → Widget?
-
Content of SimpleTip
final
- decoration → Decoration?
-
Tip's container decoration
final
- excludeFromSemantics → bool
-
Whether the tip's message should be excluded from the semantics
tree.
final
-
grouper
→ GlobalKey<
TipGrouperState> ? -
State of grouper that contains many OrderedTip
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
ID of this tip.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- margin → EdgeInsets
-
The empty space that surrounds the tip.
final
- message → String?
-
Message of SimpleTip
final
- order → int
-
The order to show the tip, lower order higher priority.
final
- padding → EdgeInsets
-
The amount of space by which to inset the tip's content.
final
- preferBelow → bool
-
Whether the tips defaults to being displayed below the widget.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textStyle → TextStyle
-
Tip's text default style
final
- title → String?
-
Title of SimpleTip
final
- version → int
-
The version it should be.
final
- verticalOffset → double
-
The vertical gap between the widget and the displayed tip.
final
- waitDuration → Duration
-
The length of time that a tip will wait for showing.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → OrderedTipState -
Creates the mutable state for this widget at a given location in the tree.
override
-
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}) → 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