sliding_up_panel icon indicating copy to clipboard operation
sliding_up_panel copied to clipboard

Hot reload causes controller attached = false

Open astronaako opened this issue 3 years ago • 2 comments

When using controller with SlidingUpPanel in StatelessWidget Page, Hot reload causes isAttached Property to return false. Full app restart or Flutter Hot Restart gets it back to working however

astronaako avatar Mar 30 '21 09:03 astronaako

Make sure you're initializing the controller outside of the widget build so that it persists. Paste your code if you're still having trouble.

willbryant avatar Apr 04 '21 03:04 willbryant

I had the same problem. Build a StatefulWidget wrapper around yourSlidingUpPanel and declare the controller as state.

fxjordan avatar Apr 08 '21 21:04 fxjordan