Skip to content

[huawei_map] Black screen after splash screen when package is imported #435

@ChristianLloydSalon

Description

@ChristianLloydSalon

When importing the huawei_map plugin (from the flutter-hms-map path), the app shows a black screen for about 3–4 seconds right after the splash screen before the first Flutter frame appears.
This delay happens even if the plugin isn’t used in the widget tree. Simply importing the package causes the issue.

If the import (or the entire dependency) is removed, the problem disappears immediately and the app launches smoothly with no delay.

Note: I’m using this forked version of the plugin because the official huawei_map package on pub.dev is currently not working or not maintained. This fork (https://github.com/fleoparra/hms-flutter-plugin.git, path: flutter-hms-map) is the only version that builds successfully.

Steps to Reproduce

  1. Add the following dependency in pubspec.yaml:
   huawei_map:
     git:
       url: https://github.com/fleoparra/hms-flutter-plugin.git
       path: flutter-hms-map
  1. Run the app on a Huawei or Android device.

Expected Behavior:
App should transition immediately from the splash screen to the first Flutter frame (no visible delay).

Actual Behavior
The screen stays black for ~2–4 seconds after the splash screen before the app UI appears.

Environment

  • Flutter version: 3.29
  • Device: Huawei nova 13i (EMUI 14.2.0), Vivo Y22s (Android 14)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions