-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
Labels
a: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsa: typographyText rendering, possibly libtxtText rendering, possibly libtxtc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
Description
Use case
Currently it is possible to set fontFamily globally in our theme using ThemeData, but we can't do it for fontFamilyFallback.
Proposal
Add fontFamilyFallback property into ThemeData.
ThemeData getAppTheme(Brightness brightness) {
final colors = brightness == Brightness.light ? colorsLight : colorsDark;
return ThemeData(
brightness: brightness,
fontFamily: AppFonts.roboto,
fontFamilyFallback: ----------------------> Needed property
scaffoldBackgroundColor: colors.background,
// ... more configurations.
);
}maheshj01 and tsukumijima
Metadata
Metadata
Assignees
Labels
a: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsa: typographyText rendering, possibly libtxtText rendering, possibly libtxtc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.