font_asset 0.2.0
font_asset: ^0.2.0 copied to clipboard
A hooks protocol extension for declaring and tree-shaking font assets from build and link hooks in Flutter.
0.2.0 #
- Add
hook/build.dart,hook/link.dart, andtreeShakeFontAssetspowered bypackage:font_subset(^0.2.1) andpackage:record_use(^1.1.0) to tree-shake icon fonts directly insidepackage:font_asset's link hook. - Add
treeShake: trueparameter toaddFont,addFontFamily, andFontFileto automatically route icon fonts toToLinkHook('font_asset')when linking is enabled.
0.1.0 #
- Breaking: Upgrade to
hooks: ^2.0.0. - Breaking: Remove
hook/build.dart,hook/link.dart, the bundledfont-subsetbinary andIconTreeShaker. Fonts declared through this package are bundled by Flutter like fonts declared inpubspec.yaml, so Flutter's own icon tree shaker (--tree-shake-icons) applies to them. - Breaking: Remove
addMaterialFont; useuses-material-design: true. - Breaking:
addFontFamilynow takesList<FontFile>with paths relative to the package root (likeaddFont) and supportsstyle. - Add
name,style,id,==/hashCodetoFontAssetand fix decoding of Windows file paths. - Add input/output validation and
outputFilestoFontAssetsExtension. - Register font files as hook
dependenciesso builds rerun when they change.
0.0.9 #
- Allow for font families
0.0.8 #
- Get flutterRoot from config
0.0.7 #
- Remove appdill mention
0.0.6 #
- Add icon treeshaker from Flutter.
0.0.5 #
- Add icon treeshaker from Flutter.
0.0.4 #
- Add extension for build hook.
0.0.3 #
- Make weight optional.
0.0.2 #
- Add font asset class.
0.0.1 #
- Initial version.