Repository navigation
[Web][CanvasKit]: Failed to load font Roboto at https://fonts.gstatic.com error #77580
Description
I created project before flutter 2 and was running on mobile but didn't test on web but now when flutter 2 came out I upgraded and tried to test on chrome but got uncolored screen with my two text fields but texts doesn't show, so I created new project and runned the same issue came up, the FloatingActionButton is showing but the centered text is not showing but in emulator is working fine. You can get the real project I wanted to run here and the new flutter project here

my flutter doctor -v
[✓] Flutter (Channel stable, 2.0.1, on Mac OS X 10.15.7 19H114 darwin-x64, locale en-US)
• Flutter version 2.0.1 at /Users/addow/Developer/flutter
• Framework revision c5a4b40 (4 days ago), 2021-03-04 09:47:48 -0800
• Engine revision 40441de
• Dart version 2.12.0
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
• Android SDK at /Users/addow/Library/Android/sdk
• Platform android-30, build-tools 30.0.1
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.1, Build version 12A7403
• CocoaPods version 1.10.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 50.0.1
• Dart plugin version 193.7547
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
[✓] VS Code (version 1.53.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.20.0
[✓] Connected device (2 available)
• Android SDK built for x86 (mobile) • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator)
• Chrome (web) • chrome • web-javascript • Google Chrome 89.0.4389.82
• No issues found!


Activity
darshankawar commentedon Mar 8, 2021
@EngAddow
Cloned your real project and ran it using latest stable (2.0.1) which rendered the screen properly without any issues for both (canvaskit and html):
flutter doctor -v
Try to run
flutter cleanor flutter pub cache repairand thenflutter run -d chrome` to see if it helps.Add00w commentedon Mar 8, 2021
I runned flutter clean and re-run again but the result is same but vs code stops at breakpoint , the following is vs code log.
log
darshankawar commentedon Mar 9, 2021
@EngAddow
On what channel did you create the project before upgrading to Flutter 2 ? Does your same project work on latest master, dev or beta or get same issue on all channels ?
Add00w commentedon Mar 9, 2021
I created with stable and tested on master too but didn't test web that time,now mobile is fine but the web is the new and the problem and the flutter starter project is created with flutter. 2.0.1 stable and has the same issue.
darshankawar commentedon Mar 9, 2021
Add00w commentedon Mar 9, 2021
darshankawar commentedon Mar 9, 2021
@EngAddow
Can you try following:
flutter run -d chromeandflutter run -d chrome --web-renderer htmldirectly from terminal instead of from vscode and see if issue still persists ?Just to confirm if there's a pattern to this issue, can you create a new project and run on mobile browser first and then on desktop browser to see if you get same issue ?
37 remaining items
guopp commentedon May 26, 2022
it works for me . thanks
AtifShahzed commentedon Oct 2, 2023
I am currently working on a Flutter web application that needs to be deployed to a client's IIS server. The deployment process was straightforward, similar to deploying a normal website. However, we have encountered an issue where the app does not load when the client's machine is not connected to the internet.
Upon investigation, I noticed that Flutter is fetching fonts from the internet by default, specifically from the URL: https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Me5WZLCzYlKw.ttf. This external font dependency is causing the app to fail to load on the client's machine when there is no internet connection.
AtifShahzed commentedon Oct 2, 2023
I am currently working on a Flutter web application that needs to be deployed to a client's IIS server. The deployment process was straightforward, similar to deploying a normal website. However, we have encountered an issue where the app does not load when the client's machine is not connected to the internet.
Upon investigation, I noticed that Flutter is fetching fonts from the internet by default, specifically from the URL: https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Me5WZLCzYlKw.ttf. This external font dependency is causing the app to fail to load on the client's machine when there is no internet connection. Please guys help me because my client would use my app in LAN environment without internet connection.
This is the screenshot:

flutter-triage-bot commentedon Nov 25, 2023
This issue is assigned to @harryterkelsen but has had no recent status updates. Please consider unassigning this issue if it is not going to be addressed in the near future. This allows people to have a clearer picture of what work is actually planned. Thanks!
flutter-triage-bot commentedon Feb 3, 2024
This issue was assigned to @harryterkelsen but has had no status updates in a long time. To remove any ambiguity about whether the issue is being worked on, the assignee was removed.
yjbanov commentedon Feb 22, 2024
The original issue reported was fixed recently. The extra issue of loading apps offline is covered in other issues already. I'm going to close this one as it's no longer actionable.
github-actions commentedon Mar 8, 2024
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.