BrnNoticeBarWithButton class

描述: 左边标签,右边按钮的通知

  1. 支持十种默认样式
  2. 支持设置或者隐藏左右图标
  3. 支持跑马灯
Inheritance
Available Extensions

Constructors

BrnNoticeBarWithButton({Key? key, required String content, Color? backgroundColor, Color? contentTextColor, String? leftTagText, Color? leftTagBackgroundColor, Color? leftTagTextColor, Color? rightButtonBorderColor, String? rightButtonText, Color? rightButtonTextColor, VoidCallback? onRightButtonTap, bool marquee = false, Widget? leftWidget, Widget? rightWidget, EdgeInsets? padding, double minHeight = 54})
const

Properties

backgroundColor Color?
通知的背景色
final
content String
通知的内容
final
contentTextColor Color?
通知的文字颜色
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
leftTagBackgroundColor Color?
左边标签的背景颜色
final
leftTagText String?
左边标签的文字
final
leftTagTextColor Color?
左边标签的文字颜色
final
leftWidget Widget?
自定义左边的控件
final
marquee bool
是否跑马灯 默认值false
final
minHeight double
最小高度。leftWidget、rightWidget 都为空时,限制的最小高度。 可以通过该属性控制组件高度,内容会自动垂直居中。默认值 54。
final
onRightButtonTap VoidCallback?
右边按钮点击回调
final
padding EdgeInsets?
内容的内边距
final
rightButtonBorderColor Color?
右边按钮的边框颜色
final
rightButtonText String?
右边按钮的文字
final
rightButtonTextColor Color?
右边按钮的文字颜色
final
rightWidget Widget?
自定义右边的控件
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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