Open aidandavis opened 4 years ago
I have solved my issue, but I'm not sure it's THE solution. Posting here to aid anyone in future.
I had a ListView.builder()
inside the DraggableScrollbar
. The ListView had a paramater shrinkwrap
, which I had set to true
.
I removed it (defaults to false), and no more errors. I guess having it false means that the list size is fixed.
@aidandavis Thanks it's work :)
I am getting the same error. In my case I am using the Beamer
package and a LinearPercentIndicator
is on a screen which is not currently rendered.
I am getting the same error. In my case I am using the
Beamer
package and aLinearPercentIndicator
is on a screen which is not currently rendered.
I resolved this issue by checking if my widget is currently the top element in the stack (visible) by using the check found in this Stackoverflow Answer:
if (ModalRoute.of(context)?.isCurrent ?? false)
Padding(
padding: const EdgeInsets.only(top: 32.0, bottom: 8.0),
child: LinearPercentIndicator(
percent: 0.5,
animation: true,
lineHeight: 10,
backgroundColor: Colors.pink,
padding: EdgeInsets.zero,
progressColor: Colors.yellow,
barRadius: const Radius.circular(5),
),
),
Hey, I'm using this widget elsewhere in my app without issues, but I can't work out what's going wrong here. This is the error I get when I scroll: