I am getting an error in scroll view controller. Here is error:
flutter: 'package:flutter/src/widgets/scroll_controller.dart': Failed assertion: line 149 pos 12: '_positions.isNotEmpty': ScrollController not attached to any scroll views.
I used following code and I hope due to this it is generating:
return ListView(
controller: _mealScrollController,
children: <Widget>[
Container(
height: screenSize.height * 0.35,
),
WorkWidget(workTime: workTime.morning),
WorkWidget(workTime: workTime.morning),
WorkWidget(workTime: workTime.noon),
WorkWidget(workTime: workTime.evening),
WorkWidget(workTime: workTime.lateevening),
WorkWidget(workTime: workTime.night),
WorkWidget(workTime: workTime.midnight),
Container(
child: Center(
child: RotateWidget(
child: Icon(
Icons.refresh,
size: AppSize.medium,
),
onTap: widget.callBack,
),
),
),
],
);
_mealScrollController-jumpTooranimateTo, or try to getpositionvalue. Could you post this part of code?