- Support for nullsafety-feature of Dart 2.12
-
Support for processing (init/generate/monitor) multi projects (the main project and its sub projects in one workspace)
-
Support for auto merging old asset specifications when specifying new assets
This is can help you to auto keep the manually added asset specifications.
-
Support for processing non-implied resource file
- non-implied resource file: the resource file which is outside of
lib/
directory, for example:~/path/to/flutter_r_demo/assets/images/test.png
~/path/to/flutter_r_demo/assets/images/3.0x/test.png
- implied resource file: the resource file which is inside of
lib/
directory, for example:~/path/to/flutter_r_demo/lib/assets/images/hot_foot_N.png
~/path/to/flutter_r_demo/lib/assets/images/3.0x/hot_foot_N.png
- non-implied resource file: the resource file which is outside of
-
New recommended flutter resource structure
- New asset generation algorithm to support all kinds of standard or nonstandard image/text resource structure
- New asset-id generation algorithm to support assets with the same filename but different path
- New recommended flutter resource structure
- Improve generate-capability to support nonstandard image resource structure
- Add recommend-capability to display the recommended flutter resource structure
- Support for processing font assets (
.ttf
,.otf
,.ttc
) - Improve robustness
- improve robustness
- fix bug
- optimize flr help command
- fix bad info in flr.gemspec
- modify the way the Flr configuration is stored: discard the flrfile.yaml file and write the configuration to the pubspec.yaml file
flr generate
andflr monitor
are combined intoflr run [--auto]
- generate
r.g.dart
instead ofR.dart
- new
R
class:- discards
R_X
code struct, and usesR.x
code struct - unifies the access way of all types asset resources: using the asset resource ID function, such as
R.image.test()
,R.svg.test(width: 100, height: 100)
,R.text.test_json()
- provides
AssetResource
class to acces the asset metadata, such asassetName
,packageName
,fileBasename
- discards
- increase the range of legal character sets :
0-9
,A-Z
,a-z
,_
,+
,-
,.
,·
,!
,@
,&
,$
,¥
- colored terminal output
flr generate
supports checking and outputtting assets with bad filename- fix bug
- support auto service that automatically specify assets in
pubspec.yaml
and generateR.dart
file, which can be triggered manually or by monitoring asset changes - support for processing image assets (
.png
,.jpg
,.jpeg
,.gif
,.webp
,.icon
,.bmp
,.wbmp
,.svg
) - support for processing text assets (
.txt
,.json
,.yaml
,.xml
) - support for processing image asset variants
- support for processing asset which’s filename is bad:
- filename has illegal character (such as
blank
,~
,@
,#
) which is outside the range of valid characters (0-9
,A-Z
,a-z
,_
,$
) - filename begins with a number or character
_
or character$
- filename has illegal character (such as