Closed adil192 closed 11 months ago
Facing similar issue when I build for web.
https://github.com/flutter/flutter/issues/132711#issuecomment-1684036767
Said space char must be included in font, can we have a hotfix to add the space char? I think flutter probably won't change the behaviour in recent future.
Hi everyone. Thanks for providing so much information, it really helps a lot.
As this is a bug in a fairly new feature of flutter, I believe they will provide a fix on their end soon. Should they decide that having a space character is a requirement for icon tree shaking, we'll have a look at how to implement a fix on the package level.
@michaelspiss Flutter is investigating regarding this bug and they probably fix this in next hotfix release. Hope for the best. 🤞
https://github.com/flutter/flutter/issues/132711#issuecomment-1684152978
Can confirm that this is fixed in Flutter 3.13.1
Describe the bug A clear and concise description of what the bug is.
To Reproduce Run
flutter build web
Expected behavior Successful build. The build succeeds when you remove this package.
Desktop (please complete the following information):
Additional context See the Flutter issue here: https://github.com/flutter/flutter/issues/132711. I don't know if this needs to be fixed here or with Flutter
Logs
Codepoint 32 not found in font, aborting
``` Adils-MacBook-Air:ricochlime adilhanney$ flutter build web Codepoint 32 not found in font, aborting. Font asset "CupertinoIcons.ttf" was tree-shaken, reducing it from 283452 to 1272 bytes (99.6% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app. Font asset "MaterialIcons-Regular.otf" was tree-shaken, reducing it from 1645184 to 7588 bytes (99.5% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app. Codepoint 32 not found in font, aborting. Codepoint 32 not found in font, aborting. Target web_release_bundle failed: IconTreeShakerException: Font subsetting failed with exit code 255. To disable icon tree shaking, pass --no-tree-shake-icons to the requested flutter build command #0 IconTreeShaker.subsetFont (package:flutter_tools/src/build_system/targets/icon_tree_shaker.dart:216:7)