Comments (16)
No problem will do tonight (London time)
from font_awesome_flutter.
Oh dang, sorry I missed this -- not sure why Github didn't send me a notification for this! Is this still a problem on your end? The example works fine for me using the 5.0.0 package, but perhaps you're running into something I'm not.
from font_awesome_flutter.
Hi I just checked out your projects and run your example as it is and getting the above on the simulator and my mobile as well. Here is the 'doctor' output maybe that can help?
Regards,
Adam
[√] Flutter (on Microsoft Windows [Version 10.0.16299.125], locale en-GB, channel master)
• Flutter at C:\DevTools\Flutter
• Framework revision 4d2c2aaaa1 (5 days ago), 2017-12-27 07:30:31 -0800
• Engine revision 7c126001d8
• Tools Dart version 1.25.0-dev.11.0
• Engine Dart version 2.0.0-edge.9e8a3e2d31621c1bdf6139d068e7898a2ac2ab5a
[√] Android toolchain - develop for Android devices (Android SDK 26.0.3)
• Android SDK at C:\DevTools\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-26, build-tools 26.0.3
• ANDROID_HOME = C:\DevTools\Android\sdk
• Java binary at: C:\DevTools\Android\AndroidStudio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
[√] Android Studio (version 3.0)
• Android Studio at C:\DevTools\Android\AndroidStudio
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
[√] IntelliJ IDEA Community Edition (version 2017.3)
• Flutter plugin version 20.0.3
• Dart plugin version 173.4127.31
[√] Connected devices
• SM A300FU • c096d8a0 • android-arm • Android 6.0.1 (API 23)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 7.1.1 (API 25) (emulator)
from font_awesome_flutter.
Sorry accidentally closed the issue.
from font_awesome_flutter.
Haha, dang it!
Using the same version of Flutter, the example is working for me on the iOS / Android Emulator as well as on my Pixel phone. The only difference I spot is that you're on Windows and I'm on a Mac.
I'll try this example out on my Windows device to see if that's the difference. Ideas:
- Edit the
pubspec.yaml
in theexample
to reference the 5.0.0 package rather than using thepath: ../
? E.g.font_awesome_flutter: 5.0.0
. - If that doesn't work, download the attached Font Awesome zip. Unzip the Font Assets into the
assets
folder of this lib. In thepubspec.yaml
of the library itself, try using thettf
instead of thewoff
. - Try alpha branch
Thanks for letting me know
from font_awesome_flutter.
Hey @kostaa, could you please help me by trying one thing: I've actually been migrating this library to the latest version of Font Awesome (5.0.2). Could you please try the example in the font-awesome-5
branch to see if that works for ya? I'm using TTF formats now instead of the WOFF format and it seems to work a bit better on my machine as well.
Thanks!
from font_awesome_flutter.
Hi Brian,
Sorry have not gone very far on this.
Having gradle build issues not sure what causes it.
Will let you know once I manage to sort it out.
Regards,
Adam
from font_awesome_flutter.
Hey Adam, no worries at all! Thanks for your efforts.
from font_awesome_flutter.
I'm having the same issue as well.
When I try to import using:
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
I get an error in VSCode:
[dart] Target of URI doesn't exist: 'package:font_awesome_flutter/font_awesome_flutter.dart'.
I've tried with:
font_awesome_flutter: ^5.0.0
and downloading the package and using:
font_awesome_flutter:
path: ../
Developing on Windows 7
Testing on Android
from font_awesome_flutter.
Thanks for the report @Gnorme -- Hrm, that error seems like a bit of an odd one. Are you able to build the project at all with flutter run
starting the example
directory, or does that report the same "Can't find package" error?
As long as you've run flutter packages get
in the root of the example
directory (not the main library), the package should certainly exist. Have you have this trouble with any other packages?
from font_awesome_flutter.
@Gnorme @kostaa Hey all, thanks again for reporting this! I got my Windows machine up and running again today, and was able to reproduce the problem.
It turns out the official CupertinoIcons
from the Flutter Tea also have this problem. This means there's a problem at the Flutter level. I've filed a bug with the Flutter team:
In addition, I also saw the Target of URI doesn't exist
error on Windows. To make it work, I had to open the example
folder as it's own project rather than as part of the whole package, then it started to work. I don't know why...
This works on Mac without issue, so I think it's a problem with the Dart analyzer. Please consider filing a bug on the official github repo for the dart SDK to report this issue!
from font_awesome_flutter.
Hmm... I was able to get the error to go away in the example by opening it as it's own project but I'm trying to use it in my own project which is already separate and I'm still getting the error.
I've run flutter packages get
and I can still build my project with flutter run
after adding font_awesome_flutter to my dependencies and importing. I get the boxes with X where the icons should be though which is why I thought it might be related. I have not had this issue with any other packages.
Edit: I copied and pasted my project folder, renamed it, and reopened it and the error went away. Weird.
from font_awesome_flutter.
@Gnorme Yah, I think there are two separate problems reported here:
- The boxes issue, which I think is a real bug with Flutter (even the official Flutter packages suffer from this problem, Issue reported here: flutter/flutter#13870). For some reason, these fonts don't work on Windows but do on Mac.
- The
Target of URI doesn't exist
issue, which seems to relate to the dart analyzer. For some reason, the dart analyzer is unable to find a package that exists in the pubspec. You may want to file a follow-up bug with the dart sdk repo if you run into that problem more frequently, but I don't think it's something I can fix with this project.
from font_awesome_flutter.
Hey all, the underlying issue with Flutter master branch has been fixed, and it also fixed this issue! Gonna go ahead and close it out now that it works once again on Windows :)
from font_awesome_flutter.
All is good - thank you!
from font_awesome_flutter.
Hey all, the underlying issue with Flutter master branch has been fixed, and it also fixed this issue! Gonna go ahead and close it out now that it works once again on Windows :)
can you share the details that how fix this bug
from font_awesome_flutter.
Related Issues (20)
- missing thin icon HOT 1
- Missing icons HOT 5
- Can we reduce file size as flutter did for material icons HOT 1
- Dynamic icon retrieval required regular font to be available HOT 2
- Flutter Font Awesome Kit - Adding Custom Svgs HOT 8
- Allow shadows to be painted underneath an icon
- Unfortunately we need now a new twitter icon HOT 2
- FontAwesomeIcons.clone and FontAwesomeIcons.solidClone are inconsistent with the following link HOT 1
- Web build fails on Flutter 3.13.0 HOT 6
- printVersionNotice sometimes fails HOT 1
- Tree shaking requires @staticIconProvider annotation HOT 1
- FaIcon size 24 HOT 1
- Pro icon get ttf how to obtain icons.json? It seems auto downloaded HOT 1
- Update to 6.5.1 icons HOT 1
- Building FontAwesome pro with GitHub Actions HOT 1
- Running configurator.bat immediately closes console with no result HOT 1
- Icon not rendering in Web Build - Hosted in AWS Amplify HOT 2
- Missing certain icons after upgrade from FA 5 to 6 HOT 2
- Solid Icon showing Regular HOT 1
- Icon jumps when moved
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from font_awesome_flutter.