Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BREAKING CHANGES] refactor: moved style and package_parameter_enabled to under assets.outputs. #294

Merged
merged 10 commits into from
Sep 27, 2022

Conversation

wasabeef
Copy link
Member

@wasabeef wasabeef commented Sep 14, 2022

What does this change?

Moved style and package_parameter_enabled settings from asset to under assets.outputs.

Before v4.3.0

flutter_gen:
  # ...
  assets:
    enabled: true
    package_parameter_enabled: true
    style: snake-case
    outputs:
      class_name: MyAssets

v5.0.0 or later.

flutter_gen:
  # ...
  assets:
    enabled: true
    outputs:
      class_name: MyAssets
      package_parameter_enabled: true
      style: snake-case

Screenshots

Warning message
Screen Shot 2022-09-27 at 16 25 20

@wasabeef wasabeef added this to the v5.0.0 milestone Sep 15, 2022
@wasabeef wasabeef changed the title [WIP] refactor: moved style and package_parameter_enabled to under assets.outputs. refactor: moved style and package_parameter_enabled to under assets.outputs. Sep 27, 2022
@wasabeef wasabeef merged commit 9a7aeec into main Sep 27, 2022
@wasabeef wasabeef deleted the migrate-style-and-package-param branch September 27, 2022 08:36
@wasabeef wasabeef changed the title refactor: moved style and package_parameter_enabled to under assets.outputs. [BREAKING CHANGES] refactor: moved style and package_parameter_enabled to under assets.outputs. Sep 28, 2022
@wasabeef wasabeef mentioned this pull request Sep 28, 2022
@foxanna
Copy link

foxanna commented Oct 22, 2022

Thanks for the giant warning sign in the output! 😅 Otherwise, I would have missed it.

@lt692
Copy link

lt692 commented Nov 29, 2022

Please update documentation on pub.dev

flutter_gen:
output: lib/generated <--how do i set this in new version??
integrations:
flutter_svg: true
rive: true
assets:
enabled: true
package_parameter_enabled: false

@Take-A-Byte
Copy link

@It692 Did you find the answer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants