Flogs icon indicating copy to clipboard operation
Flogs copied to clipboard

Support Flutter 3.10.0 when using flutter_localizations package from SDK

Open onlyamessenger opened this issue 1 year ago • 1 comments

The flutter_localizations package from the Flutter SDK itself, uses intl version 0.18.0. Flogs depends on intl version ^0.17.0. This causes pub dependency conflicts.

Example pubspec.yaml:

environment:
  sdk: '>=3.0.0 <4.0.0'

dependencies:
  flutter:
    sdk: flutter
  flutter_localizations:
    sdk: flutter
  flogs: ^2.0.1

Output of flutter pub get:

Because your_app depends on flutter_localizations from sdk which depends on intl 0.18.0, intl 0.18.0 is required. So, because your_app depends on intl ^0.17.0, version solving failed.

onlyamessenger avatar May 16 '23 08:05 onlyamessenger

Can currently get around this using a dependency_overrides entry:

dependency_overrides:
  intl: ^0.18.0

onlyamessenger avatar May 16 '23 08:05 onlyamessenger