buildTipLabelWidget static method
获取问号
Implementation
static Widget buildTipLabelWidget(
String? tipLabel, VoidCallback? onTip, FormItemConfig themeData) {
return Offstage(
offstage: (tipLabel == null),
child: GestureDetector(
onTap: () {
if (onTip != null) {
onTip();
}
},
child: Row(
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[
Container(
padding: const EdgeInsets.only(left: 6, right: 7),
child: FormUtil.getQuestionMarkIcon()),
Container(
child: Text(
tipLabel ?? "",
style: FormUtil.getTipsTextStyle(themeData),
),
),
],
),
),
);
}