Skip to content

Ability to specify fallback font Icon widget via IconData class #126670

@vasilich6107

Description

@vasilich6107

Is there an existing issue for this?

Use case

Hi. There is a fallback font option in TextStyle.
https://api.flutter.dev/flutter/painting/TextStyle/fontFamilyFallback.html

But there is no ability to pass it to the Icon widget.

This makes impossible to specify fallback font for icons.

Let me give you an example.

Imagine that you need to have an ability to swap icons from downloadable font.
It would be great to specify fallback font to be from design system package.

The flow is simple

  • download custom font(i may want to serve font with only one icon substituted)
  • use this font name as default for icon retrieval
  • specify a fallback frot from design system package.

Proposal

Add fallback font to IconData class

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterframeworkflutter/packages/flutter repository. See also f: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions