Skip to content

Google Fonts not loading since latest Flutter upgrade #6887

@blistick

Description

@blistick

Can we access your project?

  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

Current Behavior

Since the upgrade to Flutter 3.38.5 my default Google font, which is Poppins, is not loading. It appears that this is because the file AssetManifest.json is missing or empty. I believe that 3.38.5 Flutter does not include this file in projects, but the old version of google_fonts that's being used by FlutterFlow relies on the file for font loading.

Expected Behavior

I expect the default Google Fonts to load without error.

Steps to Reproduce

  1. Create a new project
  2. Choose Poppins as the default font
  3. Create a widget that uses the font
  4. Run the project in debug mode and monitor the console log

Reproducible from Blank

  • The steps to reproduce above start from a blank project.

Bug Report Code (Required)

IT40kcrl7ZFOsdhE17rULe9alSg5KU84RpIFjMBraCgoF5jpD7MAdvWkYlVWUvW9YXNIM0Smmj8K7srRvezDUsY5ITqeQLY7wpBqejvNVjmgUZOBEsy8REF6EflTGlyn56W7qyJ+XcRhSGwWwU+MBuSRE3XXJL2yImdISq/LZO4=

Visual documentation

Here is a snippet of console log that shows the error:

I/flutter (10259): Error: google_fonts was unable to load font Poppins-Medium because the following exception occurred: I/flutter (10259): Unable to load asset: "AssetManifest.json". I/flutter (10259): The asset does not exist or has empty data. I/flutter (10259): See https://docs.flutter.dev/development/data-and-backend/networking#platform-notes. I/flutter (10259): If troubleshooting doesn't solve the problem, please file an issue at https://github.com/material-foundation/flutter-packages/issues/new/choose. I/flutter (10259): �[38;5;1m+--------------------------------------------------------------------------------------------------------------�[0m I/flutter (10259): �[38;5;1m¦ [error] | 11:18:02 144ms | �[0m I/flutter (10259): �[38;5;1m¦ Unable to load asset: "AssetManifest.json".�[0m I/flutter (10259): �[38;5;1m¦ The asset does not exist or has empty data.�[0m I/flutter (10259): �[38;5;1m¦ StackTrace: #0 PlatformAssetBundle.load.<anonymous closure> (package:flutter/src/services/asset_bundle.dart:332:13)�[0m I/flutter (10259): �[38;5;1m¦ #1 _rootRunUnary (dart:async/zone.dart:1538:47)�[0m I/flutter (10259): �[38;5;1m¦ #2 _CustomZone.runUnary (dart:async/zone.dart:1429:19)�[0m I/flutter (10259): �[38;5;1m¦ <asynchronous suspension>�[0m I/flutter (10259): �[38;5;1m¦ #3 AssetBundle.loadString (package:flutter/src/services/asset_bundle.dart:92:27)�[0m I/flutter (10259): �[38;5;1m¦ <asynchronous suspension>�[0m I/flutter (10259): �[38;5;1m¦ #4 AssetManifest._loadAssetManifestJson (package:google_fonts/src/asset_manifest.dart:34:26)�[0m I/flutter (10259): �[38;5;1m¦ <asynchronous suspension>�[0m I/flutter (10259): �[38;5;1m¦ #5 loadFontIfNecessary (package:google_fonts/src/google_fonts_base.dart:152:31)�[0m I/flutter (10259): �[38;5;1m¦ <asynchronous suspension>�[0m I/flutter (10259): �[38;5;1m¦ #6 googleFontsTextStyle.<anonymous closure> (package:google_fonts/src/google_fonts_base.dart:117:22)�[0m I/flutter (10259): �[38;5;1m¦ <asynchronous suspension>�[0m I/flutter (10259): �[38;5;1m¦ }�[0m I/flutter (10259): �[38;5;1m+--------------------------------------------------------------------------------------------------------------�[0m

Environment

- FlutterFlow version: version 6.5.1
- Platform: Windows
- Browser name and version: Brave 1.86.146
- Operating system and version affected: Windows 10

Additional Information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions