update list tile

null_safety
张萌 4 years ago
parent 7203195114
commit afac514016

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

Loading…
Cancel
Save