SankethBK / local_session_timeout

Redirect user to authentication page if the application doesn't receive any user interaction, or been running in the background for "x" duration.
https://pub.dev/packages/local_session_timeout
BSD 3-Clause "New" or "Revised" License
12 stars 19 forks source link

Upgrading to Flutter 3.0 shows warning #2

Closed officiallx closed 2 years ago

officiallx commented 2 years ago

Error Message /D:/flutter_windows_3.0.3-stable/.pub-cache/hosted/pub.dartlang.org/local_session_timeout-0.2.0/lib/src/session_timeout_manager.dart:35:20: Warning: Operand of null-aware operation '?.' has type 'WidgetsBinding' which excludes null.

Because of this warning, when session timeout has ended it is not navigating to Login Page.

SankethBK commented 2 years ago

@officiallx thank you for reporting the issue. I will look into it

SankethBK commented 2 years ago

Have fixed it in version 2.0.0