Failed Assertion Error
I am using sliver and I faced this issue.
Flutter exception 'package:flutter/src/widgets/sliver.dart': Failed assertion 'child != null' is not true
Solution :
Expanded(
child: StreamBuilder<Object>( stream: null, builder: (context, snapshot) { return ListView( scrollDirection: Axis.vertical, padding: EdgeInsets.all(10.0), children: _listViewData.reversed.map((data) { return Dismissible( key: Key(data), child: ListTile( title: Text(data), ), ); }).toList(), ); } ), ),