Add supported custom font formats in official docs (#77230)

This commit is contained in:
Bharat Biradar
2021-03-06 02:59:03 +05:30
committed by GitHub
parent 54eb3d6289
commit db162a47f3

View File

@@ -334,6 +334,16 @@ const double _kDefaultFontSize = 14.0;
/// ```
/// {@end-tool}
///
/// #### Supported font formats
///
/// Font formats currently supported by Flutter :
///
/// * `.ttc`
/// * `.ttf`
/// * `.otf`
///
/// Flutter does not support `.woff` and `.woff2` fonts for all platforms.
///
/// ### Custom Font Fallback
///
/// A custom [fontFamilyFallback] list can be provided. The list should be an