update list tile

null_safety
张萌 4 years ago
parent 7203195114
commit afac514016

@ -61,13 +61,15 @@ class _ASListTileState extends State<ASListTile> {
), ),
), ),
Expanded( Expanded(
child: widget.text is String child: widget.text == null
? Text( ? Text('')
widget.text, : widget.text is String
maxLines: 2, ? Text(
style: TextStyle(color: kTextSubColor, fontSize: 14.sp), widget.text,
) maxLines: 2,
: widget.text, style: TextStyle(color: kTextSubColor, fontSize: 14.sp),
)
: widget.text,
), ),
widget.trail ?? SizedBox() widget.trail ?? SizedBox()
], ],

Loading…
Cancel
Save