StackedNotificationCards class
This package will let you
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- StackedNotificationCards
Constructors
-
StackedNotificationCards({Key? key, required List<
NotificationCard> notificationCards, required Color cardColor, required String notificationCardTitle, required VoidCallback onTapClearAll, required Widget clearAllNotificationsAction, required Widget clearAllStacked, required Widget cardClearButton, required Widget cardViewButton, required OnTapSlidButtonCallback onTapClearCallback, required OnTapSlidButtonCallback onTapViewCallback, required Widget actionTitle, required Widget showLessAction, List<BoxShadow> ? boxShadow, TextStyle titleTextStyle = const TextStyle(fontWeight: FontWeight.w500), TextStyle? subtitleTextStyle, double cardCornerRadius = 8, double cardsSpacing = 10, double padding = 0}) -
const
Properties
- actionTitle → Widget
-
This widget is shown at the top-left of all notifications
final
-
boxShadow
→ List<
BoxShadow> ? -
Shadow behind every NotificationCard.
final
- cardClearButton → Widget
-
This widget is stacked behind each NotificationCard visible when NotificationCard is slide.
Used to clear the notification.
final
- cardColor → Color
-
Color of each card.
final
- cardCornerRadius → double
-
Corner radius of NotificationCard.
final
- cardsSpacing → double
-
Spacing between NotificationCards when they are expanded.
final
- cardViewButton → Widget
-
This widget is stacked behind each NotificationCard visible when NotificationCard is slide.
Used to view details notification.
final
- clearAllNotificationsAction → Widget
-
This widget is show the top-right after headerShowLess. Visible when the
cards are expanded.
final
- clearAllStacked → Widget
-
When notifications are stacked this widget is shown behind the card.
visible when the card is slide
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
notificationCards
→ List<
NotificationCard> -
List of
NotificationCard
s to show.final - notificationCardTitle → String
-
Title of all NotificationCards, this will be same when they are in a list.
final
- onTapClearAll → VoidCallback
-
Callback when clearAllStacked or clearAllNotificationsAction button pressed.
final
- onTapClearCallback → OnTapSlidButtonCallback
-
Callback when tapped on cardClearButton widget after sliding card. This callback
is used to clear the card. Also tigger a shirnk animation.
final
- onTapViewCallback → OnTapSlidButtonCallback
-
Callback when tapped on cardViewButton widget after sliding card. This callback
is used to show more details about the notification
final
- padding → double
-
Padding around the whole widget.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showLessAction → Widget
-
This widget is shown at the top-right of all notifications and has on tap clearAll callback.
final
- subtitleTextStyle → TextStyle?
-
TextStyle of each NotificationCard's subtitle.
final
- titleTextStyle → TextStyle
-
TextStyle of each NotificationCard's title.
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
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