BrnActionCardTitle class

右侧为箭头的卡片标题组件

组件的展示规则: 1:标题不可以折行,当辅助widget和subwidget过多时,标题...截断 2: 展示出sub和ac 3: 标题字体为18 4: subTitle的宽度最大84

布局间距: 标题文本和 subWidget的间距为8dp subWidget和最右侧的widget的间距为8dp

布局规则: 该组件的整体实现是Row,最右侧是固定的箭头,因此左侧文本部分过长会被截断

整个组件是可以响应点击事件的onTap,如果onTap是null,那么只是普通的展示组件,不会影响用户的其他点击事件

标题为文本 BrnActionCardTitle( title: '箭头标题', onTap: () { BrnToast.show('BrnActionCardTitle is clicked', context); }, )

相关按钮如下:

Inheritance
Available Extensions

Constructors

BrnActionCardTitle({Key? key, required String title, String? accessoryText, VoidCallback? onTap, String? subTitle, Widget? subTitleWidget, BrnCardTitleConfig? themeData})
create BrnActionCardTitle

Properties

accessoryText String?
箭头左边的文字
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onTap VoidCallback?
标题点击
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subTitle String?
标题右侧的小文字
final
subTitleWidget Widget?
标题右侧的显示widget
final
themeData BrnCardTitleConfig?
the theme config of themeData
final
title String
标题显示文案:必填参数
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