Skip to content

Upgrading device_info_plus 2 to 3

Breaking2.2.0 → 3.2.4Breaking1Platform1New3Changed2Fixed4Other4

BreakingUpgrade verdict

1 breaking change and a platform requirement change.

  • The package is now split into two packages, which can change how you import and depend on it.
  • You need a newer Flutter SDK to use this version, because older ones fail to register the plugin correctly.
2 items need code or config changes
Breaking1
Refactors package_info_plus to a two-package federated architecture.
Platform1
Increases the minimum Flutter version to fix dartPluginClass registration.
dartPluginClass

Generated by DepDelta from published Dart source. Not mixed with prose notes.

  • removed: static set DeviceInfoPlugin.disableDeviceInfoPlatformOverride(bool override)
  • added: field DeviceInfoPlugin.async: Future<BaseDeviceInfo> get deviceInfo