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

Google fonts not loading when app starts #605

Open
1 task done
hatim7869 opened this issue Aug 2, 2024 · 0 comments
Open
1 task done

Google fonts not loading when app starts #605

hatim7869 opened this issue Aug 2, 2024 · 0 comments
Labels
bug Something isn't working triage Issues that haven't been triaged

Comments

@hatim7869
Copy link

Package

google_fonts

Existing issue?

What happened?

Expected vs actual result:

Expected result
The font Yaldevi-Medium should load and be displayed correctly.
The text in the app should appear with the specified Google Font.

Actual result
The app fails to load the Yaldevi-Medium font.
An error message is displayed indicating a failed host lookup for 'fonts.gstatic.com'.

Steps to reproduce:

  1. Add the google_fonts package to your Flutter project.
  2. Use the Yaldevi font in a widget.
  3. Run the app on an Android device or emulator.

Relevant log output

*[√] Flutter (Channel stable, 3.22.0, on Microsoft Windows [Version 10.0.22631.3880],
    locale en-IN)
    • Flutter version 3.22.0 on channel stable at C:\src\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5dcb86f68f (3 months ago), 2024-05-09 07:39:20 -0500
    • Engine revision f6344b75dc
    • Dart version 3.4.0
    • DevTools version 2.34.3

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at C:\Users\Hatim\AppData\Local\Android\Sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = C:\Users\Hatim\AppData\Local\Android\Sdk

    • ANDROID_SDK_ROOT = C:\Users\Hatim\AppData\Local\Android\Sdk
    • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.9+0--11185874)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[X] Visual Studio - develop Windows apps
    X Visual Studio not installed; this is necessary to develop Windows apps.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its
      default components

[√] Android Studio (version 2023.2)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • android-studio-dir = C:\Program Files\Android\Android Studio
    • Java version OpenJDK Runtime Environment (build 17.0.9+0--11185874)

[√] VS Code (version 1.91.1)
    • VS Code at C:\Users\Hatim\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.94.0

[√] Connected device (4 available)
    • sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64    • Android 14 (API   
      34) (emulator)
    • Windows (desktop)            • windows       • windows-x64    • Microsoft Windows 
      [Version 10.0.22631.3880]
    • Chrome (web)                 • chrome        • web-javascript • Google Chrome     
      126.0.6478.185
    • Edge (web)                   • edge          • web-javascript • Microsoft Edge    
      127.0.2651.74

[√] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.*
@hatim7869 hatim7869 added bug Something isn't working triage Issues that haven't been triaged labels Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Issues that haven't been triaged
Projects
None yet
Development

No branches or pull requests

1 participant