diff --git a/lib/list_tile/as_list_tile.dart b/lib/list_tile/as_list_tile.dart index 5025cf2..8e60a89 100644 --- a/lib/list_tile/as_list_tile.dart +++ b/lib/list_tile/as_list_tile.dart @@ -61,13 +61,15 @@ class _ASListTileState extends State { ), ), 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() ],