Skip to content

[google_fonts] FontWeight.index is deprecated #179272

@stuartmorgan-g

Description

@stuartmorgan-g
   info • lib/src/google_fonts_base.dart:299:29 • 'index' is deprecated and shouldn't be used. Use value, which is more precise. Try replacing the use of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/google_fonts_base.dart:299:50 • 'index' is deprecated and shouldn't be used. Use value, which is more precise. Try replacing the use of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/google_fonts_variant.dart:137:48 • 'index' is deprecated and shouldn't be used. Use value, which is more precise. Try replacing the use of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/google_fonts_variant.dart:139:23 • 'index' is deprecated and shouldn't be used. Use value, which is more precise. Try replacing the use of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/google_fonts_variant.dart:143:43 • 'index' is deprecated and shouldn't be used. Use value, which is more precise. Try replacing the use of the deprecated member with the replacement. • deprecated_member_use

The suggested replacement, value, has existed for several years, so this doesn't need to wait for a release cycle or change the min Flutter SDK version.

Metadata

Metadata

Labels

c: tech-debtTechnical debt, code quality, testing, etc.p: deprecated apiUse of a deprecated Dart API in flutter/packages that needs to be updatedp: google_fontsPackage to use fonts from fonts.google.com. Supports HTTP fetching, caching, and asset bundling.packageflutter/packages repository. See also p: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions