title: Flutter Checkbox not changing/updating/working
body: <p>I am trying to learn checkboxes in Flutter.</p>
  
  <p>The problem is, when I want to use checkboxes in Scaffold(body:) it is working. But I want to use it in different places like an item in ListView.</p>
  
  <pre><code>return Center(
      child: Checkbox(
    value: testValue,
    onChanged: (bool value) {
      setState() {
        testValue = value;
      }
    },
  ));
  </code></pre>
  
  <p>But it is not working, updating and changing anything.</p>
  
  <p>Edit: I solved my problem with putting checkbox in a StatefulBuilder. Thanks to @cristianbregant</p>
  
  <pre><code> return StatefulBuilder(
      builder: (BuildContext context, StateSetter setState) {
    return Center(
      child: CheckboxListTile(
        title: const Text('Animate Slowly'),
        value: _valueCheck,
        onChanged: (bool value) {
          setState(() {
            _valueCheck = value;
          });
        },
        secondary: const Icon(Icons.hourglass_empty),
      ),
    );
  });
  </code></pre>