Richbar<T > class
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 setter inherited
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.
final inherited
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 setter inherited
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