FlutterGen / flutter_gen

The Flutter code generator for your assets, fonts, colors, … — Get rid of all String-based APIs.
https://pub.dev/packages/flutter_gen
MIT License
1.44k stars 142 forks source link

Activating previous versions is impossible due to losen version constraints between command and core. #249

Closed renancaraujo closed 2 years ago

renancaraujo commented 2 years ago

Description

As a developer trying to activate flutter_gen 4.1.6

When executing

$  dart pub global activate flutter_gen 4.1.6

Then

$  fluttergen -v

It outputs

FlutterGen v4.2.0

Explanation

This happens because even though The package user activated the flutter_gen version 4.1.6, the flutter_gen_core resolved is 4.2.0 because of the losen versions constraints.

Since 4.2.0 included some breaking changes, this is very inconvenient.

wasabeef commented 2 years ago

@renancaraujo I apologize for the confusion. Could you use v4.1.6+1 ? There is no change in generating behavior.

$ dart pub global activate flutter_gen 4.1.6+1

$ fluttergen -v
FlutterGen v4.1.6+1
renancaraujo commented 2 years ago

Hello Mr @wasabeef, thanks for the release. It worked fine for me.