update list tile

null_safety
张萌 4 years ago
parent 7f35b9007b
commit f62363848d

@ -34,7 +34,7 @@ class _ASListTileState extends State<ASListTile> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Container( return Container(
margin: EdgeInsets.symmetric(vertical: 8.w,horizontal: 10.w), margin: EdgeInsets.symmetric(vertical: 8.w, horizontal: 10.w),
alignment: Alignment.centerLeft, alignment: Alignment.centerLeft,
child: Row( child: Row(
crossAxisAlignment: crossAxisAlignment:
@ -59,7 +59,7 @@ class _ASListTileState extends State<ASListTile> {
) )
: widget.text, : widget.text,
), ),
SizedBox(width: 20.w,height: 20.w,child: widget.trail ,) widget.trail ?? SizedBox()
], ],
), ),
); );

Loading…
Cancel
Save