Richbar<T> class

Inheritance

Constructors

Richbar(String text, {Key? key, Icon? leading, double opacity = 0.5, double? maxWidth, OnTap? onPressed, BorderRadius? borderRadius, bool? showPulse = true, double? textSize = kfontSize, Duration? duration = kDuration, Color? textColor = kTextColor, bool? isDismissible = false, double backgroundOpaque = 0.5, Curve showCurve = Curves.easeIn, Curve dismissCurve = Curves.easeInOut, TextAlign? textAlignment = TextAlign.left, Color? backgroundColor = kBackgroundColor, FontWeight? textFontWeight = FontWeight.normal, Color? blockInteractionColor = kTransparentColor, EdgeInsetsGeometry? margin = const EdgeInsets.symmetric(), EdgeInsetsGeometry? padding = const EdgeInsets.all(8), RichbarStyle richbarStyle = RichbarStyle.floating, bool enableBackgroundInteraction = false, RichbarPosition richbarPosition = RichbarPosition.top, DismissableDirection? dismissableDirection = DismissableDirection.horizontal, RichbarStatusCallback? onStatusChanged, RichbarRoute<T?>? richbarRoute})

Properties

backgroundColor Color?
Defines the background color of Richbar widget
final
backgroundOpaque double
With an opacity of 1.0, background is fully opaque.
final
blockInteractionColor Color?
Default will be set to Colors.transparent or kTransparentColor
final
borderRadius BorderRadius?
If non-null, the corners of this box are rounded by this BorderRadius.
final
dismissableDirection DismissableDirection?
Defines whether the Richbar widget can be swiped horizontally or vertically
final
dismissCurve Curve
Curve animation applied when Richbar.dismiss(context) is called
final
duration Duration?
The length of time this animation should last.
final
enableBackgroundInteraction bool
Defines if user can interact with screen when Richbar is been displayed on screen
final
hashCode int
The hash code for this object.
no setterinherited
isDismissible bool?
Defines whether the Richbar widget can be swiped horizontally or vertically
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
leading Icon?
A widget to display before the text.
final
margin EdgeInsetsGeometry?
Empty space to surround the Border and content.
final
maxWidth double?
Defines the width of the Richbar especially on big screens
final
onPressed OnTap?
Called when the user taps this Richbar widget
final
onStatusChanged RichbarStatusCallback?
Calls listener every time the status of the richbar changes.
getter/setter pair
opacity double
With an opacity of 1.0, Richbar is fully opaque.
final
padding EdgeInsetsGeometry?
An immutable set of offsets in each of the four cardinal directions. Typically used for an offset from each of the four sides of a box. For example, the padding inside a box can be represented using this class. The EdgeInsets class specifies offsets in terms of visual edges, left, top, right, and bottom. These values are not affected by the TextDirection. To support both left-to-right and right-to-left layouts, consider using EdgeInsetsDirectional, which is expressed in terms of start, top, end, and bottom, where start and end are resolved in terms of a TextDirection (typically obtained from the ambient Directionality).
final
richbarPosition RichbarPosition
Defines the entry position of the Richbar widget either top or bottom
final
richbarRoute RichbarRoute<T?>?
getter/setter pair
richbarStyle RichbarStyle
Defines the z-coordinate at which to place this Richbar relative to its parent.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showCurve Curve
Curve animation applied when Richbar.show() is called
final
showPulse bool?
Configures how an AnimationController behaves when animation starts.
final
text String?
The text to be displayed
final
textAlignment TextAlign?
How the text should be aligned horizontally
final
textColor Color?
The color to use when painting the text
final
textFontWeight FontWeight?
The typeface thickness to use when painting the text (e.g., bold, FontWeight.w100).
final
textSize double?
The size to use when painting the text.
final

Methods

close([T? result]) Future<T?>
Closes the Richbar widget above the current contents of the app, With Material entrance and exit animations
createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<Richbar>
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
dismissed() bool
hidden() bool
init() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
show(BuildContext context) Future<T?>
Displays a Richbar widget above the current contents of the app, With Material entrance and exit animations
showing() bool
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