Richbar<T> class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- Richbar
Constructors
-
Richbar({Key? key, String? title, double? titleFontSize, Alignment? titleAlignment = Alignment.topLeft, FontWeight titleFontWeight = FontWeight.w300, Color? titleTextColor = defaultTextColor, String? text = "Dismiss", double? textFontSize, bool? showPulse = true, Color? textColor = defaultTextColor, VoidCallback? onPressed, Color? blockInteractionColor = Colors.transparent, FontWeight? textFontWeight, Color? backgroundColor = defaultBackgroundColor, Color? actionColor, OnTap? onPanDown, Duration? duration, bool? isDismissible = false, double? maxWidth, EdgeInsets margin = const EdgeInsets.symmetric(), EdgeInsets padding = const EdgeInsets.all(15), BorderRadius? borderRadius, RichbarPosition richbarPosition = RichbarPosition.top, RichbarDimissibleDirection richbarDimissibleDirection = RichbarDimissibleDirection.vertical, RicharStyle richbarStyle = RicharStyle.floating, Curve showCurve = Curves.easeOutCirc, Curve dismissCurve = Curves.easeOutCirc, double blur = 0.5, bool enableBackgroundInteraction = false, RichbarStatusCallback? onStatusChanged, RichbarRoute<
T?> ? richbarRoute})
Properties
- actionColor → Color?
-
action button color
final
- backgroundColor → Color?
-
Widget tray background color default color will be purple
final
- blockInteractionColor → Color?
-
final
- blur → double
-
action button blur 0.4 will be default
final
- borderRadius → BorderRadius?
-
adds border radius to the action button
final
- dismissCurve → Curve
-
Curve animation applied when dismiss() is called Curves.easeIn will be default
final
- duration → Duration?
-
time frame for the whole thing to come up and display and hide
final
- enableBackgroundInteraction → bool
-
whether user can interact with screen when bar is displaying
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDismissible → bool?
-
whether user can dismiss the widget
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- margin → EdgeInsets
-
custom marging on bar
final
- maxWidth → double?
-
use to control the width of the bar especially on big screens
final
- onPanDown → OnTap?
-
a callback function that registers when user clikcs the widget / tray
final
- onPressed → VoidCallback?
-
final
- onStatusChanged → RichbarStatusCallback?
-
to listen to richbar events
final
- padding → EdgeInsets
-
custom padding on bar
final
- richbarDimissibleDirection → RichbarDimissibleDirection
-
dismiss direction horizontal swipe or vertical
final
- richbarPosition → RichbarPosition
-
Richbar can be set on RichbarPosition.top or RichbarPosition.bottom
final
-
richbarRoute
↔ RichbarRoute<
T?> ? -
getter/setter pair
- richbarStyle → RicharStyle
-
Richbar can be floating or be grounded to the edge of the screen.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showCurve → Curve
-
Curve animation applied when show() is called Curves.easeIn will be default
final
- showPulse → bool?
-
Slow down animation
final
- text → String?
-
action text to be displayed to the user default text will be dismissed
final
- textColor → Color?
-
action text color
final
- textFontSize → double?
-
action text size
final
- textFontWeight → FontWeight?
-
action text font weight will be bold w700-800
final
- title → String?
-
The message to be displayed to the user
final
- titleAlignment → Alignment?
-
final
- titleFontSize → double?
-
message text size
final
- titleFontWeight → FontWeight
-
message text weight default will be normal w400
final
- titleTextColor → Color?
-
message text color default color will be white
final
Methods
-
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
-
dismiss(
[T? result]) → Future< T?> -
dismissed(
) → bool -
init(
) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
show(
BuildContext context) → Future< T?> -
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