We're getting null exception errors in _isAvailable function for Pixel Android phones for Widgets wrapped in KeyboardAction with enabled set to false.
The reason for this is that setConfig is never called in initState, leading to config being set to null. Then, whenever AppLifeCycleState switches, _isAvailable will be called which force unwraps config leading to the exception.
Thanks.
Related error in Sentry / Console:
`[sentry.platformError] [error] Uncaught Platform Error
[sentry.platformError] _TypeError (Null check operator used on a null value)
[sentry.platformError] #0 KeyboardActionstate._isAvailable (package:keyboard_actions/keyboard_actions.dart:127:18)
Hi,
We're getting null exception errors in _isAvailable function for Pixel Android phones for Widgets wrapped in KeyboardAction with enabled set to false.
The reason for this is that setConfig is never called in initState, leading to config being set to null. Then, whenever AppLifeCycleState switches, _isAvailable will be called which force unwraps config leading to the exception.
Thanks.
Related error in Sentry / Console:
`[sentry.platformError] [error] Uncaught Platform Error [sentry.platformError] _TypeError (Null check operator used on a null value) [sentry.platformError] #0 KeyboardActionstate._isAvailable (package:keyboard_actions/keyboard_actions.dart:127:18)
1 KeyboardActionstate._focusChanged (package:keyboard_actions/keyboard_actions.dart:267:9)