I'm using SingleChildScrollView inside PageView which is inside _panel().
panelBuilder: (ScrollController sc) => _panel(sc)
So when I'm passing sc into my SingleChildScrollView it causes an error, which says, that ScrollController is used multiple times, this is clear.
But if remove controller: sc from my SingleChildScrollView, the SingleChildScrollView start work incorrectly, scroll happens simulteniusly on SingleChildScrollView and SlidingUpPanel. Similar issue here
So, how to reuse one controller from SlidingUpPanel for multiple SingleChildScrollView?
Also I tried one SingleChildScrollView like a parent for PageView, but PageView always fails with the issue of infinity height.
I'm using SingleChildScrollView inside PageView which is inside
_panel()
.So when I'm passing
sc
into mySingleChildScrollView
it causes an error, which says, that ScrollController is used multiple times, this is clear.But if remove
controller: sc
from mySingleChildScrollView
, theSingleChildScrollView
start work incorrectly, scroll happens simulteniusly onSingleChildScrollView
andSlidingUpPanel
. Similar issue hereSo, how to reuse one controller from SlidingUpPanel for multiple SingleChildScrollView?
Also I tried one SingleChildScrollView like a parent for PageView, but PageView always fails with the issue of infinity height.