-
Notifications
You must be signed in to change notification settings - Fork 47
Can not attach SnappingSheetController #63
Comments
I have the code set up like the example and I got the same error maitycyrus mentioned: I readjusted my code where I then
`
... Now I"m getting a Null check operator on a null value error: [VERBOSE-2:ui_dart_state.cc(186)] Unhandled Exception: Null check operator used on a null value |
@maitycyrus You are right regarding the fault in the README, you should pass in the variable instead of creating a new controller. If you got the time, could you send the code for when you are using the controller? @redmacdev1988 Seems that I can not replicate the error. Could you send the code for the entire widget that contains the SnappingSheet widget and uses the controller? |
import 'package:flutter/material.dart'; void main() { class MyApp extends StatelessWidget {
} class MyHomePage extends StatefulWidget { final String title; @OverRide class _MyHomePageState extends State { @OverRide
} |
... code reproducing the bug |
Same error, same everything |
I think the problem is the initState method in _SnappingSheetState it does not get called when hot reloading. It works if I run on restart. |
Can you check my PR #74? I checked with the example above, everything is working fine now. |
I always get the error:
Also, I think there is a mistake in your readme of how to attach the SnappingSheetController. You call the constructor of the controller twice. I tried it both way, and it did not work.
The text was updated successfully, but these errors were encountered: