AnchoredHelper class
This widget is an helper based on the position of a widget you must have an ancestor of type HelperOrchestrator
to create a You can change widgetFactory to create your own anchored widget or use one of
AnchoredHoleHelper.anchorFactory
You are free to add a positiv button / negativ button or an onTap function on the anchor.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- AnchoredHelper
Constructors
- AnchoredHelper({required String anchorKeyId, Function? onLeftBtnTap, Function? onRightTap, Text? rightBtnText, Text? leftBtnText, Text? title, Text? description, Function? onError, ButtonStyle? leftBtnStyle, ButtonStyle? rightBtnStyle, Function? onTapAnchor, Key? key, required Color bgColor, Anchor? anchor, AnchorWidgetFactory widgetFactory = AnchoredCircleHoleHelper.anchorFactory})
-
const
Properties
- anchor → Anchor?
-
If you want to use a custom position. Else we will use the HelperOrchestrator
to get this using the anchorKeyId
final
- anchorKeyId → String
-
The reference to the Key created by HelperOrchestrator
final
- bgColor → Color
-
A Color as Overlayed background
final
- description → Text?
-
A Text widget to show as description
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- leftBtnStyle → ButtonStyle?
-
Buttons material style
final
- leftBtnText → Text?
-
A Text widget to show within the left button
final
- onError → Function?
-
Functions to call when widgets encounters any errors
final
- onLeftBtnTap → Function?
-
Functions to call when user tap on left or right button
final
- onRightTap → Function?
-
Functions to call when user tap on left or right button
final
- onTapAnchor → Function?
-
function called when user type on anchor position
final
- rightBtnStyle → ButtonStyle?
-
Buttons material style
final
- rightBtnText → Text?
-
A Text widget to show within the right button
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → Text?
-
A Text widget to show as title
final
- widgetFactory → AnchorWidgetFactory
-
factory to create the all background with the hole
Use one of these
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _AnchoredHelperState -
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