conditionalstatement in widget flutter

52

Container(
  color: Colors.white,
  child: ('condition')
  ? Widget1(...)
  : Widget2(...)
)
condition? Text("True"): null,

Comments

Submit
0 Comments