Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

checkbox in flutter

CheckboxListTile(
    title: Text("title text"),
    value: checkedValue,
    onChanged: (newValue) { 
                 setState(() {
                   checkedValue = newValue; 
                 }); 
               },
    controlAffinity: ListTileControlAffinity.leading,  //  <-- leading Checkbox
  )
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #checkbox #flutter
ADD COMMENT
Topic
Name
8+3 =