TxTip.rich constructor
const
TxTip.rich(
- InlineSpan? textSpan, {
- Key? key,
- Widget? icon,
- EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry? padding,
- Color? backgroundColor,
- Color? foregroundColor,
- TextStyle? textStyle,
- BorderRadius? borderRadius,
- VisualDensity? visualDensity,
- VoidCallback? onClose,
使用textSpan创建一个提示
textSpan不能为null
Implementation
const TxTip.rich(
this.textSpan, {
super.key,
this.icon,
this.margin,
this.padding,
this.backgroundColor,
this.foregroundColor,
this.textStyle,
this.borderRadius,
this.visualDensity,
this.onClose,
}) : data = null;