flutter-studio / flutter-icons

Customizable Icons for Flutter :boom:
Apache License 2.0
332 stars 123 forks source link

Instead of the Icon, only a question mark in a rectangle? #31

Open maximilianscheffel opened 4 years ago

maximilianscheffel commented 4 years ago

I am the only one with that problem? Code same like the Example. Or any Ideas?

2534290808 commented 4 years ago

The pubspec in the example has the following Settings:

flutter_icons:
   includes:
      -ant

if the split_icon command is run, the example will only load the TTF of AntDesign into the package.

ChangJoo-Park commented 4 years ago

@2534290808 , I tried split_icon, it failed :(

❯ pub global activate split_icon

Resolving dependencies... (1.6s)
+ 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...
Precompiling executables...
Failed to precompile split_icon:temp:
Dart_LoadScriptFromKernel: The binary program does not contain 'main'.
Precompiled split_icon:main.
Precompiled split_icon:split_icon.
❯ split_icon

zsh: command not found: split_icon
2534290808 commented 4 years ago

Can you provide more detailed information using theflutter doctor command?

edisonywh commented 4 years ago

I am facing the same issue here, any update?

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, 1.20.0-8.0.pre.75, on Mac OS X 10.15 19A582a, locale
    en)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
[✓] Android Studio (version 3.5)
[✓] Connected device (1 available)

• No issues found!

EDIT: I just tried with normal Flutter material icons, but even that doesn't work. Looks like it's a Flutter issue?

EDIT 2: Another quick update, I restarted my iOS simulator and it worked. Not sure if it had to down with me removing cupertino_icons & uses-material-design: true, but I've added them back in and it works now, YMMV.