Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

How do you add a label (title text) to a Checkbox in Flutter?

bool isChecked = false;
CheckboxListTile(
            title: Text('CheckboxTitle'),
            subtitle: Text('subtitle'),
            secondary: Icon(Icons.delete),
            controlAffinity: ListTileControlAffinity.leading, // ListTileControlAffinity.trailing
            value: isChecked,
            onChanged: (v) {
              setState(() {
                isChecked = v!;
              });
            },
          ),
 
PREVIOUS NEXT
Tagged: #How #add #label #Checkbox
ADD COMMENT
Topic
Name
9+8 =