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

Release v5.0.0 #299

Merged
merged 1 commit into from
Sep 28, 2022
Merged

Release v5.0.0 #299

merged 1 commit into from
Sep 28, 2022

Conversation

wasabeef
Copy link
Member

@wasabeef wasabeef commented Sep 28, 2022

Feature

  • #285 #298 Add Lottie files integration.
    // Assets.lottie.hamburgerArrow.lottie()
    SizedBox(
      width: 200,
      height: 200,
      child: Assets.lottie.hamburgerArrow.lottie(
        fit: BoxFit.contain,
      ),
    ),
  • #286 Allow users to change generated class name for assets, fonts, and colors.
    flutter_gen:
      assets:
        # Optional
        outputs: 
          class_name: MyAssets # Default is `Assets`
    
      fonts:
        # Optional
        outputs:
          class_name: MyFontFamily # Default is `FontFamily`
    
      colors:
        # Optional
        outputs:
          class_name: MyColorName # Default is `ColorName`
  • #291 Add values list to generated classes for each directory.
    Assets.images.values // <List<AssetGenImage>>[chip1, chip2, logo, profileJpg, profilePng];
  • #292 Support an ImageProvider.
    // Assets.images.chip.provider()
    Container(
      height: 400,
      decoration: BoxDecoration(
        image: DecorationImage(
          image: Assets.images.chip.provider(),
        ),
      ),
      child: const Center(child: Text('Deco')),
    ),
    
  • #294 [BREAKING CHANGES] Moved the style and package_parameter_enabled to under assets.outputs scope.
    # ❌ Before
    flutter_gen:
      # ...
      assets:
        package_parameter_enabled: true
        style: snake-case
        outputs:
          class_name: MyAssets
    
    # ⭕️ After
    flutter_gen:
      # ...
      assets:
        outputs:
          class_name: MyAssets
          package_parameter_enabled: true
          style: snake-case

Bug fix

  • #287 Delete the generated files then flutter_gen won't generate files again

@wasabeef wasabeef merged commit c848f32 into main Sep 28, 2022
@wasabeef wasabeef deleted the release-500 branch September 28, 2022 09:19
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.

1 participant