Skip to content

Calling to PackageInfo.fromPlatform() before the runApp() call will cause an exception #453

@Nicoeevee

Description

@Nicoeevee

Calling to PackageInfo.fromPlatform() before the runApp() call will cause an exception. See fluttercommunity/plus_plugins#309

final packageInfo = await PackageInfo.fromPlatform();

plugins {
id("com.android.application") version "8.9.1" apply false
id("org.jetbrains.kotlin.android") version "2.1.0" apply false
}

environment:
sdk: ^3.9.0
flutter: ">=3.35.2"

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