Open ablbol opened 2 years ago
From these 2 lines
Non-fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError: Null check operator used on a null value. Error thrown Instance of 'ErrorDescription'. at EmailModalBottomSheet.build.<fn>(build.java:58)
I guess supportedEmails[app.name]!
raise the error because app.name
is not present in your supportedEmails
assets map.
I don't know what mailApps list you are providing to your widget, but I suggest you filter supported mailApps first instead of using '!' operator.
final supportedApps = mailApps.where((app) => supportedEmails.containsKey(app.name)).toList();
And I don't think you need HookWidget
here :) StatelessWidget
is enough
Thank you for this great library. I am running the library on android 12 without any problems. But when my designer runs the app on android 9, she gets an exception. The device does have Gmail installed on it. I was able to see the exception in Crashlytics. Any one knows the problem ? Here is the exception (code that launches the email client is below):
Here is the class that launches the email client: