Flutter条件添加 widgets 到 list 问题: How to conditionally add widgets to a list? 解决方法: Dart 2.2 以后, 支持了下面的语法 Column( children: [ if (foo != null) Text(foo), Bar(), ], ); ……继续阅读 » 1个月前 (12-14) 33浏览 0评论 0个赞