BorderedSnackBar class

A custom SnackBar widget that displays a bordered SnackBar with various styles.

The BorderedSnackBar supports different types of notifications such as success, error, warning, and help. It can be customized with colors, icons, text styles, and auto-close behavior.

Inheritance
Available extensions

Constructors

BorderedSnackBar({Key? key, required String title, required String message, required ProKitNotificationType notificationType, Color? color, TextStyle? titleTextStyle, TextStyle? messageTextStyle, required ProKitSnackBarType snackBarType, double? width, double? height, Widget? customIcon, bool autoClose = true, Duration autoCloseDuration = const Duration(seconds: 4)})
Creates a BorderedSnackBar widget.
const

Properties

autoClose bool
Whether the SnackBar should close automatically after a duration. Defaults to true.
final
autoCloseDuration Duration
The duration after which the SnackBar closes automatically. Defaults to 4 seconds.
final
color Color?
Optional color for the SnackBar's border and icon.
final
customIcon Widget?
Optional custom icon to display instead of the default icon.
final
hashCode int
The hash code for this object.
no setterinherited
height double?
Optional custom height for the SnackBar.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
message String
The message content of the SnackBar.
final
messageTextStyle TextStyle?
Optional text style for the message.
final
notificationType ProKitNotificationType
The type of notification to be displayed (e.g., success, error).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
snackBarType ProKitSnackBarType
The style of the SnackBar, whether it is bordered or not.
final
title String
The title of the SnackBar.
final
titleTextStyle TextStyle?
Optional text style for the title.
final
width double?
Optional custom width for the SnackBar.
final

Methods

center() Widget

Available on Widget, provided by the WidgetPadding extension

Wrap the Widget with Center
createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() BorderedSnackBarState
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
isVisible(bool isVisible) Widget

Available on Widget, provided by the VisibilityExtension extension

Shows or hides the widget based on isVisible.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onTap(VoidCallback onTap) Widget

Available on Widget, provided by the WidgetTap extension

Wraps the widget with an InkWell to provide onTap functionality.
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, int wrapWidth = 65}) 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
wrapWithPadding(EdgeInsets padding) Widget

Available on Widget, provided by the WidgetPadding extension

Wraps the widget with given EdgeInsets padding.

Operators

operator ==(Object other) bool
The equality operator.
inherited