Skip to content

prefill does not worked image field #242

Description

@Eunno-An
final prefillContact = Contact(
        name: Name(last: name),
        photo: photoData.isNotEmpty ? Photo(fullSize: photoBytes) : null,
        organizations: [Organization(name: '$team $position')],
        phones: [
          if (smartPhoneNumber.isNotEmpty)
            Phone(number: smartPhoneNumber, label: Label(PhoneLabel.mobile)),
          Phone(number: "02-531-$extension", label: Label(PhoneLabel.work)),
        ],
        emails: [
          if (email.isNotEmpty)
            Email(address: email, label: Label(EmailLabel.work)),
        ],
      );

      try {
        final String? createdId = await FlutterContacts.native.showCreator(
          contact: prefillContact,
        );

image is showing on iOS, but not android.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions