Closed jiazhengshi closed 2 years ago
It's not necessary, neither the instance nor the window can be null. If this was the case it wouldn't compile otherwise.
@jiazhengshi - It seems this issue occurs in the stable channel and https://github.com/Jesway/Flutter-Translate/pull/85 fixes it.
thanks
https://github.com/Jesway/Flutter-Translate/blob/master/lib/src/utils/device_locale.dart#L13