google / google/fonts

Error: google_fonts was unable to load font NunitoSans-Regular

Open
#6,033 1 comment 2 reactions 0 assignees View on GitHub
-- Needs Eng team opinion I Font Bug
Dominant language
HTML
Stars
20.5k
Forks
2.9k
Avg merge
1d 21h
Merged PRs (30d)
95

Description

How to fix? Thanks

```
I/flutter ( 8217): Error: google_fonts was unable to load font NunitoSans-Regular because the following exception occurred:
I/flutter ( 8217): Exception: GoogleFonts.config.allowRuntimeFetching is false but font NunitoSans-Regular was not found in the application assets. Ensure NunitoSans-Regular.ttf exists in a folder that is included in your pubspec's assets.
I/flutter ( 8217): See https://docs.flutter.dev/development/data-and-backend/networking#platform-notes.
I/flutter ( 8217): If troubleshooting doesn't solve the problem, please file an issue at https://github.com/material-foundation/flutter-packages/issues/new/choose.
E/flutter ( 8217): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Exception: GoogleFonts.config.allowRuntimeFetching is false but font NunitoSans-Regular was not found in the application assets. Ensure NunitoSans-Regular.ttf exists in a folder that is included in your pubspec's assets.
E/flutter ( 8217): #0 loadFontIfNecessary (package:google_fonts/src/google_fonts_base.dart:177)
E/flutter ( 8217):
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.