Closed zzzaJ closed 1 year ago
Observing the same error on 1.10.28 version
I/flutter ( 4761): ----------------FIREBASE CRASHLYTICS----------------
I/flutter ( 4761): Null check operator used on a null value
I/flutter ( 4761):
I/flutter ( 4761): #0 StatefulElement.state
package:flutter/…/widgets/framework.dart:4712
I/flutter ( 4761): #1 Navigator.of
package:flutter/…/widgets/navigator.dart:2542
I/flutter ( 4761): #2 Flushbar.show
package:another_flushbar/flushbar.dart:233
I/flutter ( 4761): #3 _HomePageState._showFlushBar
package:groubing/…/pages/home_page.dart:358
I/flutter ( 4761): #4 _HomePageState._configureFcm.
I do have same issue
The reason for this error is that the Flushbar result value is null. Therefore, if the bool enables null, no error occurs.
Flushbar<bool?>? _flushBar;
_flushBar = Flushbar<bool?>()
When trying to show a FlushbarHelper.createSuccess() flusher, it fails with the following error and trace stack:
Unhandled Exception: Null check operator used on a null value
0 StatefulElement.state
package:flutter/…/widgets/framework.dart:4789
1 Navigator.of
package:flutter/…/widgets/navigator.dart:2730
2 Flushbar.show
package:another_flushbar/flushbar.dart:233
3 _LoginState.build.
package:app/…/auth/login.dart:258
I am not sure why this is the case, and any help or advice would be great.