InfoModal class
用于展示信息的modal,封装了key和value的基本信息
基本的文本展示只需 传入keyPart和valuePart为字符串 复杂的展示 需要传入Widget,BrnInfoModal的若干静态方法 提供了丰富简便的富文本使用方式
Constructors
- InfoModal({dynamic keyPart, dynamic valuePart, bool isArrow = false, VoidCallback? valueClickCallback})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isArrow → bool
-
右侧是否包含箭头
如果有箭头那么 key-value一行展示
final
- keyPart ↔ dynamic
-
方便业务调用,具备两种类型 string 和 widget
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- valueClickCallback → VoidCallback?
-
value的点击回调
final
- valuePart ↔ dynamic
-
方便业务调用,具备两种类型 string 和 widget
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
keyHeadIconInfo(
String keyTitle, String valueTitle, {Widget? headIcon, double? fontSize, double? itemSpacing, TextStyle? keyTextStyle, TextStyle? valueTextStyle, bool isArrow = false, VoidCallback? valueClickCallback, PairInfoTableConfig? themeData}) → InfoModal - key的前面有一个自定义的icon icon和文本间距是8
-
keyOrValueLastQuestionInfo(
BuildContext context, String keyTitle, String valueTitle, {bool keyShow = false, bool valueShow = true, double? fontSize, double? itemSpacing, TextStyle? keyTextStyle, TextStyle? valueTextStyle, Function? keyCallback, Function? valueCallback, bool isArrow = false, VoidCallback? valueClickCallback, PairInfoTableConfig? themeData}) → InfoModal - key或者value的文本的最后带有问号
-
valueLastClickInfo(
BuildContext context, String keyTitle, String valueTitle, String clickValue, {double? fontSize, double? itemSpacing, TextStyle? valueTextStyle, dynamic clickCallback(String? clickValue)?, bool isArrow = false, VoidCallback? valueClickCallback, Color? linkColor, PairInfoTableConfig? themeData}) → InfoModal - -----------以下静态方法为常见显示的快捷构造----------- value的最后一部分带有可点击的超链接
-
valueRichTextInfo(
String keyTitle, String valueTitle, {double? fontSize, required double itemSpacing, TextStyle? valueTextStyle, bool isArrow = false, HyperLinkCallback? richTextLinkClick, VoidCallback? valueClickCallback, PairInfoTableConfig? themeData}) → InfoModal - value是富文本