Closed cybex-dev closed 3 weeks ago
Follows using setState({}) inside onCodeChanged resulting in build error if currentCode is null rather than just empty.
setState({})
onCodeChanged
currentCode
Code in question: https://github.com/jaumard/sms_autofill/blob/master/lib/sms_autofill.dart#L119
Hey maybe instead of adding a note what we can do it wrap that call into an addPostFrameCallback, that will prevent any crash. What do you think?
Follows using
setState({})
insideonCodeChanged
resulting in build error ifcurrentCode
is null rather than just empty.Code in question: https://github.com/jaumard/sms_autofill/blob/master/lib/sms_autofill.dart#L119