Code Monkey home page Code Monkey logo

flutterassetsgenerator's People

Contributors

cr1992 avatar gnassro avatar lijoeallen avatar zhousongchao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

flutterassetsgenerator's Issues

【Feedback】意见反馈

有任何意见建议,可以在这里提,我会尽量满足
Any comments and suggestions can be made here, I will try my best to meet

执行的时候可以用命令行吗?

如题,
a

  • b
    • assert
      如上,我的项目结构,android studio打开的是A目录,但我的资源是在子目录B下,我直接点build执行生成命令的时候会提示Please configure your assets path in pubspec.yaml ,希望大佬可以提供一个命令行执行的方式,或者可以解决这个问题的办法,(每次生成都要重新打开子目录确实有点麻烦。)

[建议]文件名映射规则

希望可以支持文件名多种格式转为驼峰命名规则如:
apple-banana.jpg
apple_banana.jpg
AppleBanana等

plugin useless when developing flutter package

when developing flutter package and trying to use assets with this package, it will give the error of Unable to load asset:, because to load asset when working on package the asset path must be leading with 'packages/<package_name>/'.
in this case FlutterAssetsGenerator will be useless when working on flutter package project

针对spine动画文件支持

image player.atlas player.png player.skel 这三个文件是一套动画,自动生成没有给生成skel文件,是不是重名问题

can't change generated file path

flutter_assets_generator:

Optional. Sets the directory of generated localization files. The provided value should be a valid path on lib dir. Default: generated

output_dir: lib/core/app_constants

I tried this but it always gives me :
Schema validation: Property 'output_dir' is not allowed
also, i tried to change it from the tools but it won't accept sub-folder

image
it gives me an error or it generates nothing.

problem with variable names

I have assets file with "-" character in name, when its reference is created it shows error in variable name.
I'm fixing it by renaming the file "-" to "_", but I don't want to do that manually, what I want is the plugin to be able to automatically rename the reference file.
Can you add it?

image

[Feature Request] Separate and create existing dart file.

The current plugin offers a similar function through the named_with_parent option, but I find it somewhat lacking. In my opinion, it would be good to provide a feature that allows for the specification of a certain path and filename, and then generates it as a separate dart file.

path: /assets/fonts/a_font
name: a_font
=> a_fonts.dart

path: /assets/fonts/b_font
name: b_font
=> b_fonts.dart

path: /assets/images
name: images
=> images.dart

当assets多于一个时,生成的资源文件出错

我的pubspec.yaml文件中assets配置如下:
image
结果生成的.dart如下:
image
正常来说
static const String ic_album_art = 'assets-b/logo/ic_album_art.png';
static const String ic_background = 'assets-b/background/ic_background.png';
应该是
static const String ic_album_art = 'assets-a/logo/ic_album_art.png';
static const String ic_background = 'assets-a/background/ic_background.png';
请帮忙改正.

This is just improvment Not an issue

Please add a field where user can change the generated variable name to their own code style LIKE (camel case, lower camel case etc) & also separate each folder assets (icons or images etc) with a comment.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.