Also get the solution on StackOverflow but it's not working in my case
'_positions.isNotEmpty': ScrollController not attached to any scroll views
PageView throws '_positions.isNotEmpty': ScrollController not attached to any scroll views
Widget _buildIntroSlider() {
return Container(
padding: EdgeInsets.symmetric(horizontal: 46.0),
child: Stack(
alignment: AlignmentDirectional.bottomCenter,
children: <Widget>[
PageView.builder(
scrollDirection: Axis.horizontal,
controller: _pageController,
onPageChanged: _onPageChanged,
itemCount: slideList.length,
itemBuilder: (ctx, i) =>
SlideItem(slide: slideList[i], bold: false),
),
],
),
);
}