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"