What is the reason
Is this the reason _items.isNotEmpty ?
part of the code
return Column(children: [
_items.isNotEmpty
? Expanded(
child: ListView.builder(
physics: ClampingScrollPhysics(),
shrinkWrap: true,
itemCount: _items.length,
itemBuilder: (context, index) {
2
Answers
Wherever you are using the
ScrollController
properties before using it, adding this condition will fix this problemAdd controller property to your ListView.