class _SomePageState extends State<SomePage> {
Signature signaturePad;
@override
void didChangeDependencies() {
super.didChangeDependencies();
signaturePage = Signature(
height: 300.0,
penColor: Theme.of(context).accentColor,
);
signaturePad.clear() // Here I have a crash "the method clear was called on null"
}
}
At break point I see that inner key is null. It looks like createState method is not called.
Code for reproducing:
At break point I see that inner
key
is null. It looks likecreateState
method is not called.