Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

conditionalstatement in widget flutter

Container(
  color: Colors.white,
  child: ('condition')
  ? Widget1(...)
  : Widget2(...)
)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #conditionalstatement #widget #flutter
ADD COMMENT
Topic
Name
6+8 =