Code Monkey home page Code Monkey logo

Comments (16)

kostaa avatar kostaa commented on June 12, 2024 3

No problem will do tonight (London time)

from font_awesome_flutter.

brianegan avatar brianegan commented on June 12, 2024

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.

kostaa avatar kostaa commented on June 12, 2024

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.

kostaa avatar kostaa commented on June 12, 2024

Sorry accidentally closed the issue.

from font_awesome_flutter.

brianegan avatar brianegan commented on June 12, 2024

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 the example to reference the 5.0.0 package rather than using the path: ../? 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 the pubspec.yaml of the library itself, try using the ttf instead of the woff.
  • Try alpha branch

Thanks for letting me know

font-awesome-4.7.0.zip

from font_awesome_flutter.

brianegan avatar brianegan commented on June 12, 2024

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.

kostaa avatar kostaa commented on June 12, 2024

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.

brianegan avatar brianegan commented on June 12, 2024

Hey Adam, no worries at all! Thanks for your efforts.

from font_awesome_flutter.

Gnorme avatar Gnorme commented on June 12, 2024

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.

brianegan avatar brianegan commented on June 12, 2024

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.

brianegan avatar brianegan commented on June 12, 2024

@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:

flutter/flutter#13870

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.

Gnorme avatar Gnorme commented on June 12, 2024

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.

brianegan avatar brianegan commented on June 12, 2024

@Gnorme Yah, I think there are two separate problems reported here:

  1. 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.
  2. 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.

brianegan avatar brianegan commented on June 12, 2024

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 :)

screenshot_1517618300

from font_awesome_flutter.

kostaa avatar kostaa commented on June 12, 2024

All is good - thank you!

from font_awesome_flutter.

rahulreghupdm avatar rahulreghupdm commented on June 12, 2024

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 :)

screenshot_1517618300

can you share the details that how fix this bug

from font_awesome_flutter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.