AntdNoticeBar class

@t 通告栏 @g 引导提示 @o 12 @d 展示一组消息通知。 @u 适用于当前页面内信息的通知,是一种较醒目的页面内通知方式。

Inheritance

Constructors

AntdNoticeBar.new({Key? key, AntdNoticeBarStyle? style, AntdStyleBuilder<AntdNoticeBarStyle, AntdNoticeBar>? styleBuilder, bool? closeable, Widget? closeIcon = const AntdIcon(icon: AntdIcons.close), AntdColor? color, String? content, Duration? delay = const Duration(milliseconds: 1000), double speed = 50.0, Widget? extra, Widget? icon = const AntdIcon(icon: AntdIcons.sound), VoidCallback? onClose, VoidCallback? onClick, bool? wrap = true})
const

Properties

closeable bool?
是否可关闭
final
closeIcon Widget?
自定义关闭按钮图标
final
color AntdColor?
通告栏的类型
final
content String?
公告内容
final
delay Duration?
开始滚动的延迟,单位 ms
final
extra Widget?
额外操作区域,显示在关闭按钮左侧
final
hashCode int
The hash code for this object.
no setterinherited
icon Widget?
额外操作区域,显示在关闭按钮左侧
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onClick VoidCallback?
点击事件
final
onClose VoidCallback?
关闭时的回调
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
speed double
滚动的速度
final
style AntdNoticeBarStyle?
样式
finalinherited
styleBuilder AntdStyleBuilder<AntdNoticeBarStyle, AntdNoticeBar>?
动态样式
finalinherited
wrap bool?
是否多行展示
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<StatefulWidget>
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
getDefaultStyle(BuildContext context, AntdTheme theme, AntdMapToken token) AntdNoticeBarStyle
override
getFinalStyle(BuildContext context, AntdNoticeBarStyle style, AntdMapToken token) AntdNoticeBarStyle
inherited
getInputStyle(BuildContext context) AntdNoticeBarStyle?
inherited
getStyle(BuildContext context) AntdNoticeBarStyle
inherited
getStyleBuilder(BuildContext context) AntdStyleBuilder<AntdNoticeBarStyle, AntdNoticeBar>?
inherited
getThemeStyle(BuildContext context, AntdTheme theme) AntdStyleBuilder<AntdNoticeBarStyle, AntdNoticeBar>?
override
getWidget(BuildContext context) AntdNoticeBar
override
margeStyle(AntdNoticeBarStyle defaultStyle, AntdNoticeBarStyle? style) AntdNoticeBarStyle
override
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, 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

Operators

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