【发布时间】:2019-12-29 23:18:22
【问题描述】:
如果 post.text == 1 时的条件 我设置了名为 externews 的小部件
Widget exteranews(BuildContext context) {
double siz11 = 15.0 * MediaQuery.of(context).size.width / 414.0;
}
如果与该容器一起使用,如何使用
Container(
if (checkothers) child: exteranews(context),
),
我设置String checkothers = post.text;
我读到我必须设置小部件才能使用运行 exteranews() 但如何使用它的 if 条件
【问题讨论】:
标签: flutter