Skip to content

[pdfviewer] Upgrade device_info_plus constraint to allow ^13.0.0 #2526

@MohamedGawdat

Description

@MohamedGawdat

Summary

syncfusion_flutter_pdfviewer 33.1.44 pins device_info_plus: ^12.1.0. This blocks downstream apps that depend on device_info_plus ^13.0.0 from using pdfviewer without forking — flutter pub get fails with a version-solving error.

Why v13 should be allowed

The device_info_plus 13.0.0 release was a platform min-SDK bump; the Dart API surface used by pdfviewer is unchanged. lib/src/pdfviewer.dart only uses:

  • DeviceInfoPlugin()
  • .androidInfo, .webBrowserInfo
  • AndroidDeviceInfo.version.sdkInt
  • AndroidDeviceInfo.systemFeatures
  • WebBrowserInfo.maxTouchPoints

None of these were touched in v13. The only removal in v13 (IosDeviceInfo.utsname) is not used here.

Proposed change

In packages/syncfusion_flutter_pdfviewer/pubspec.yaml:

device_info_plus: '>=12.1.0 <14.0.0'

Happy to open a PR if this is acceptable.

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