[BUG][DART] Update Intl package version
Created by: Nikarous
Bug Report Checklist
- [ x] Have you provided a full/minimal spec to reproduce the issue?
- [ x] Have you validated the input using an OpenAPI validator (example)?
- [x ] Have you tested with the latest master to confirm the issue still exists?
- [x ] Have you searched for related issues/PRs?
- [x ] What's the actual output vs expected output?
Description
When I use OpenApi Generator (5.0.1) to generate models for Flutter app it fails during app building with error:
Because every version of flutter_localizations from sdk depends on intl 0.17.0 and every version of core_design from path depends on intl ^0.16.1, flutter_localizations from sdk is incompatible with core_design from path.
So, because login depends on both core_design from path and flutter_localizations any from sdk, version solving failed.
This started to happen after upgrade to Flutter 2.0
openapi-generator version
I tested 5.0.1 and 5.0.0-beta2
Generation Details
java -jar openapi-generator-cli.jar generate -i ${OPENAPI_DRIVER_SPEC_FILE} -g dart -c open-generator-config.yaml --enable-post-process-file --global-property models,supportingFiles
config:
# Config options for the dart-hhtp generator pubName: model_generator pubVersion: 0.0.1 pubDescription: <project name>
Steps to reproduce
Generate models, run flutter pub get.
Suggest a fix
Upgrade intl package version to 0.17.0+