Estatativa condicional no flagelo de widgets
Container(
color: Colors.white,
child: ('condition')
? Widget1(...)
: Widget2(...)
)
Arrogant Armadillo
Container(
color: Colors.white,
child: ('condition')
? Widget1(...)
: Widget2(...)
)
condition? Text("True"): null,
Container(
color: Colors.white,
child: ('condition')
? Widget1(...)
: Widget2(...)
)