I met the same issue.Try to change slivers: const <Widget>[ to slivers: <Widget>[.
slivers: const <Widget>[
slivers: <Widget>[
Removing the const from return CustomScrollView( fixed it for me.
const
return CustomScrollView(
final products = model.getProducts(); return CustomScrollView( // <--- here semanticChildCount: products.length, slivers: <Widget>[