You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to reproduce the instagram comment sheet interaction (both resizable, scrollable and with stops).
But it seems that the sheet package doesn't handle resizing and scrolling when using SheetRoute.
In route_example_page.dart i added those lines : (i also exposed resizable and minResizableExtent in my fork for the moment)
The first sheet (without ListView) opens correctly, but the second sheet (with ListView) cannot be opened:
RPReplay_Final1689063638.MP4
I tried to find the problem but couldn't... From what I can see in SheetPosition.setPixels, the newPixels value decreases after a short time, which leads to closing the sheet.
The text was updated successfully, but these errors were encountered:
I've run into the same problem (v1.0.0) on complex pages with scrollable widgets, the sheet however was still opening for "simpler" pages... so this HACK got born:
HookBuilder(
builder: (context) {
// HACK ¯\_(ツ)_/¯// this looks weird but the sheet fails to expand for complex// widget trees, therefore we pretend to be simple widget for// the first part of the transitionfinal startRender =useState(false);
useEffect(
() {
Future.delayed(transitionDuration *0.5).then((_) {
if (context.mounted) {
startRender.value =true;
}
});
returnnull;
},
[],
);
return startRender.value ? child :constSizedBox();
},
)
I've set transitionDuration to 300ms, provided it to sheet as well, et voila 🎉 Hopefully @jamesblasco can figure out what is up with this 🙇
Hi,
I'm trying to reproduce the instagram comment sheet interaction (both resizable, scrollable and with stops).
But it seems that the sheet package doesn't handle resizing and scrolling when using
SheetRoute
.In route_example_page.dart i added those lines : (i also exposed
resizable
andminResizableExtent
in my fork for the moment)The first sheet (without ListView) opens correctly, but the second sheet (with ListView) cannot be opened:
RPReplay_Final1689063638.MP4
I tried to find the problem but couldn't... From what I can see in
SheetPosition.setPixels
, thenewPixels
value decreases after a short time, which leads to closing the sheet.The text was updated successfully, but these errors were encountered: