Big resource (font) files
shinsenter opened this issue · 7 comments
shinsenter commented
Asset files which referenced in pubspec.yaml
are too big.
I want to keep only fonts which used in the project.
flutter_icons/fonts/MaterialCommunityIcons.ttf
flutter_icons/fonts/FontAwesome.ttf
flutter_icons/fonts/FontAwesome5_Solid.ttf
flutter_icons/fonts/FontAwesome5_Brands.ttf
flutter_icons/fonts/Ionicons.ttf
flutter_icons/fonts/MaterialIcons.ttf
flutter_icons/fonts/weathericons.ttf
flutter_icons/fonts/Entypo.ttf
flutter_icons/fonts/AntDesign.ttf
flutter_icons/fonts/SimpleLineIcons.ttf
flutter_icons/fonts/Foundation.ttf
flutter_icons/fonts/Feather.ttf
flutter_icons/fonts/Zocial.ttf
flutter_icons/fonts/FontAwesome5_Regular.ttf
flutter_icons/fonts/Octicons.ttf
flutter_icons/fonts/EvilIcons.ttf
2534290808 commented
Later I will develop commands to mask unused sets of icons,so stay tuned
2534290808 commented
Now you can just keep the font you used. See how to use
b02505048 commented
Hi there, I do as per you mentioned but get the error
Resolving dependencies...
+ charcode 1.1.3
+ collection 1.14.12
+ io 0.3.4
+ meta 1.1.8
+ path 1.7.0
+ source_span 1.7.0
+ split_icon 0.3.1+1
+ string_scanner 1.0.5
+ term_glyph 1.1.0
+ yaml 2.2.1
Downloading split_icon 0.3.1+1...
Downloading io 0.3.4...
Downloading yaml 2.2.1...
Downloading path 1.7.0...
Precompiling executables...
Failed to precompile split_icon:temp:
Dart_LoadScriptFromKernel: The binary program does not contain 'main'.
Precompiled split_icon:split_icon.
Precompiled split_icon:main.
pub finished with exit code 1
Do I miss any requirements? Thank you!
2534290808 commented
Dart_LoadScriptFromKernel: The binary program does not contain 'main'.
Can you provide more detailed information using the flutter doctor
command?
b02505048 commented
@2534290808 Sure! Here you go
$ flutter doctor -v
[✓] Flutter (Channel stable, v1.17.0, on Mac OS X 10.15.4 19E287, locale en-US)
• Flutter version 1.17.0 at /Users/b02505048/devtools/flutter
• Framework revision e6b34c2b5c (7 weeks ago), 2020-05-02 11:39:18 -0700
• Engine revision 540786dd51
• Dart version 2.8.1
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /usr/local/share/android-sdk
• Platform android-29, build-tools 28.0.3
• ANDROID_HOME = /usr/local/share/android-sdk
• Java binary at: /Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/bin/java
• Java version Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.5, Build version 11E608c
• CocoaPods version 1.9.1
[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
[✓] VS Code (version 1.21.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.9.1
[!] Connected device
! No devices available
shinsenter commented
split_icon installation failed.
Dart_LoadScriptFromKernel: The binary program does not contain 'main'.
Precompiled split_icon:main.
Precompiled split_icon:split_icon.
pub finished with exit code 1
OliverRhyme commented
Hi there, I do as per you mentioned but get the error
Resolving dependencies... + charcode 1.1.3 + collection 1.14.12 + io 0.3.4 + meta 1.1.8 + path 1.7.0 + source_span 1.7.0 + split_icon 0.3.1+1 + string_scanner 1.0.5 + term_glyph 1.1.0 + yaml 2.2.1 Downloading split_icon 0.3.1+1... Downloading io 0.3.4... Downloading yaml 2.2.1... Downloading path 1.7.0... Precompiling executables... Failed to precompile split_icon:temp: Dart_LoadScriptFromKernel: The binary program does not contain 'main'. Precompiled split_icon:split_icon. Precompiled split_icon:main. pub finished with exit code 1
Do I miss any requirements? Thank you!
Same here