material-foundation / flutter-packages

A collection of useful Material Design packages
https://pub.dev/publishers/material.io
Apache License 2.0
824 stars 144 forks source link

Error: Type 'FontFeature' not found #567

Closed jabele closed 4 months ago

jabele commented 4 months ago

Package

google_fonts

Existing issue?

What happened?

Getting a Major Bug in 6.2.0: Error (Xcode): ../../.pub-cache/hosted/pub.dev/google_fonts-6.2.0/lib/src/google_fonts_base.dart:69:8: Error: Type 'FontFeature' not found

Relevant log output

No response

Mamun-Lab commented 4 months ago

I am facing the same issue . No solution yet.

breathingcyborg commented 4 months ago

@Mamun-Lab @jabele

Its probably because of this commit. https://github.com/material-foundation/flutter-packages/commit/e32cc8e6546b5cf12cc2e6a456f0428f68f59d8a

FontFeature is defined in dart:ui. And this commit removed it. For now downgrading to google_fonts version 6.1.0 would work.

RaminBgrn commented 4 months ago

I solved the problem temporarily with version 5.1.0

michaelnabil230 commented 4 months ago

I am facing the same issue. No solution yet.

guidezpl commented 4 months ago

Sorry about the inconvenience, I believe this is caused by using an older flutter version, because the following checks pass

You can upgrade flutter with flutter upgrade. I've published a patch 6.2.1 that restricts this package to the current flutter stable and newer versions.