Casilla de verificación en flutter

Ejemplos de código

6
0

casilla de verificación en flutter

CheckboxListTile(
    title: Text("title text"),
    value: checkedValue,
    onChanged: (newValue) { 
                 setState(() {
                   checkedValue = newValue; 
                 }); 
               },
    controlAffinity: ListTileControlAffinity.leading,  //  <-- leading Checkbox
  )
1
0

casilla de verificación aleteo

bool _value = true;

Checkbox(
  value: _value,
  onChanged: (bool newValue) {
    setState(() {
      _value = newValue;
    });
  },
)
0
0

comprobar botón aleteo

// Please format your code

  CheckboxListTile _ = CheckboxListTile(
    title: const Text("title text"),
    value: checkedValue,
    onChanged: (newValue) {
      setState(() {
        checkedValue = newValue;
      });
    },
    controlAffinity: ListTileControlAffinity.leading, //  <-- leading Checkbox
  );

Páginas relacionadas

Páginas de ejemplo relacionadas

En otros idiomas

Esta página está en otros idiomas

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................