Skip to content

type 'Null' is not a subtype of type 'String' #4

Description

@ablbol

I was using open_mail_app package, but since I moved to Flutter 3.29.3, the open_mail_app stopped working. So I tried this library, which works in iOS but fails for Android. Here is the error message I am getting:

new MailApp.fromJson (open_mail_app_plus.dart:410)
OpenMailAppPlus._getAndroidMailApps.<fn> (open_mail_app_plus.dart:263)
Iterable.toList (dart:core)
OpenMailAppPlus._getAndroidMailApps (open_mail_app_plus.dart:265)
OpenMailAppPlus.getMailApps (open_mail_app_plus.dart:249)
EmailMixins.openMailApp (email_mixins.dart:8)

Line 8 in EmailMixins has the following code:

final apps = await OpenMailAppPlus.getMailApps();

I am importing the package like this:

import 'package:open_mail_app_plus/open_mail_app_plus.dart';

Please look at it and let me know.
Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions