Closed Arfmann21 closed 2 years ago
@Arfmann21 Can you please share the stacktrace and the code where you put this listener?
@Arfmann21 The reason it is not mentioned in the docs where to put it, is that it depends on the usecase. What's your usecase?
FYI: You should not put it anywhere before MaterialApp
widget. Certainly not in the AdaptiveTheme builder.
As title, using
gives the error "Null check operator used on a null value".
I've tried putting in inside initState and AdaptiveTheme builder, none of it worked.
In documentation, there aren't any info on where to put this method.