Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Big resource (font) files #23

Closed
shinsenter opened this issue Feb 21, 2020 · 7 comments
Closed

Big resource (font) files #23

shinsenter opened this issue Feb 21, 2020 · 7 comments

Comments

@shinsenter
Copy link

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
Copy link
Contributor

Later I will develop commands to mask unused sets of icons,so stay tuned

@2534290808
Copy link
Contributor

Now you can just keep the font you used. See how to use

@b02505048
Copy link

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
Copy link
Contributor

Dart_LoadScriptFromKernel: The binary program does not contain 'main'.

Can you provide more detailed information using the flutter doctor command?

@b02505048
Copy link

@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
Copy link
Author

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants