title: CheckboxListTile not working while working with real time database from firebase
body: <p>I'm trying to create a List of data from online server Firebase using StreamBuilder bu the checkbox won't get checked.</p>
  
  <p>I have used StreamBuilder to get the data and used LisTile widget to build the list items but the checkboxtilelist widget won't work after defining setState() function. And buildBody is defined under build Widget class.</p>
  
  <pre><code>Widget buildBody(BuildContext context) {
    return StreamBuilder&lt;QuerySnapshot&gt;(
      stream: Firestore.instance.collection('hisab').snapshots(),
      builder: (context, snapshots) {
        if (!snapshots.hasData) {
          return LinearProgressIndicator();
        }
        return _buildList(context, snapshots.data.documents);
      }
    );
  }
  
  Widget _buildList(BuildContext context, List&lt;DocumentSnapshot&gt; snapshot) {
    return ListView(
      padding: EdgeInsets.only(top: 20.0),
      children: snapshot.map((data) =&gt; _buildListitem(context, data)).toList(),
    );
  }
  
  Widget _buildListitem(BuildContext context, DocumentSnapshot data) {
    final record = Record.fromSnapshot((data));
    bool _values = false;
    void _onChanged(bool newValue) {
      setState(() {
        _values = newValue;
      });
    }
  
    return Padding(
      padding: EdgeInsets.symmetric(horizontal: 18.0, vertical: 9.0),
      child: Container(
        decoration: BoxDecoration(
          border: Border.all(color: Colors.white),
          borderRadius: BorderRadius.circular(5.0),
        ),
        child: new ListTile(
          onTap: () {
            _onChanged(!_values);
          },
          leading: CircleAvatar(child: Text(record.name[0])),
          title: new Column(
            children: &lt;Widget&gt;[
              new CheckboxListTile(
                title: Text(record.name),
                value: _values,
                onChanged: _onChanged,
              )
            ],
          ),
        ),
      ),
    );
  }
  </code></pre>