Results for “TextStyle”
Full-text search across Boring Doc explanations, official documentation pages, the Flutter API index and every indexed version change.
API reference
- TextStyleclass
immutable style describing how to format and paint text. painting.TextStyle TextStyle Text Style class painting
- TextStyleTweenclass
interpolation between two TextStyles. widgets.TextStyleTween TextStyleTween Text Style Tween class widgets
- TextStyle.newconstructor
Creates a text style. painting.TextStyle.TextStyle.new TextStyle new Text Style.new constructor painting
- TextStyleTween.newconstructor
Creates a text style tween. widgets.TextStyleTween.TextStyleTween.new TextStyleTween new Text Style Tween.new constructor widgets
- WidgetStateTextStyleclass
Defines a TextStyle that is also a WidgetStateProperty. widgets.WidgetStateTextStyle WidgetStateTextStyle Widget State Text Style class widgets
- DefaultTextStyleTransitionclass
Animated version of a DefaultTextStyle that animates the different properties of its TextStyle. widgets.DefaultTextStyleTransition DefaultTextStyleTransition Default Text Style Transition class widgets
- material.MaterialStateTextStyletypedef
Defines a TextStyle that is also a MaterialStateProperty. material.MaterialStateTextStyle MaterialStateTextStyle Material State Text Style typedef material
- WidgetStateTextStyle.resolveWithconstructor
Creates a WidgetStateTextStyle from a WidgetPropertyResolver<TextStyle> callback function. widgets.WidgetStateTextStyle.WidgetStateTextStyle.resolveWith WidgetStateTextStyle resolveWith Widget State Text Style.resolve With constructor widgets
- material.ScriptCategoryenum
TextTheme's glyphs that is used to define its localized TextStyle geometry for ThemeData.textTheme. material.ScriptCategory ScriptCategory Script Category enum material
- DefaultTextStyleTransition.newconstructor
Creates an animated DefaultTextStyle whose TextStyle animation updates the widget. widgets.DefaultTextStyleTransition.DefaultTextStyleTransition.new DefaultTextStyleTransition new Default Text Style Transition.new constructor widgets
- StrutStyle.fromTextStyleconstructor
Builds a StrutStyle that contains values of the equivalent properties in the provided textStyle. painting.StrutStyle.StrutStyle.fromTextStyle StrutStyle fromTextStyle Strut Style.from Text Style constructor painting
Version changes
- Updated default text styles for menus3.16.0breaking
MenuEntry.about), ), ``` ```dart menuButtonTheme: MenuButtonThemeData( style: MenuItemButton.styleFrom( /// ... ), ), ``` Code after migration: ```dart MenuItemButton( style: MenuItemButton.styleFrom( textStyle: Theme.of(context).textTheme.bodyLarge, ), child: Text(MenuEntry.about.label), onPressed: () => _activate(MenuEntry.about), ), ``` ```dart menuBut
- ThemeData's accent properties have been deprecated2.5.0deprecated
The ThemeData accentColor, accentColorBrightness, accentIconTheme and accentTextTheme properties have been deprecated. The
- Added BuildContext parameter to TextEditingController.buildTextSpan2.0.0breaking
buildTextSpan` override. Code before migration: ```dart class MyTextEditingController { @override TextSpan buildTextSpan({TextStyle? style, required bool withComposing}) { /* ... */ } } ``` Example error message before migration: ```plaintext 'MyTextEditingController.buildTextSpan' ('TextSpan Function({TextStyle
- Deprecated API removed after v3.73.10.0removed
In accordance with Flutter's Deprecation Policy, deprecated APIs that reached end
- Deprecate textScaleFactor in favor of TextScaler3.16.0deprecated
In preparation for adopting the Android 14 nonlinear font scaling feature, all
- FontWeight also controls the weight attribute of variable fonts3.41.0breaking
weight of these fonts. Setting the `fontWeight` property of objects such as `TextStyle` will now also set the value of the `wght` variation axis of fonts that
- Deprecated API removed after v2.22.5.0removed
stable release have been removed. InputDecoration InputDecorationTheme FloatingLabelBehavior.auto FloatingLabelBehavior.never FloatingLabelBehavior.always FloatingLabelBehavior TextTheme TextStyle Typography
- Deprecated API removed after v3.193.22.0removed
reached end of life after the 3.19 stable release have been removed. TextTheme TextStyle ThemeData Color ThemeData.colorScheme BottomAppBarTheme ColorScheme CupertinoContextMenu.previewBuilder CupertinoContextMenu CupertinoContextMenu.animationOpensAt Scrollbar.showTrackOnHover Scrollbar ScrollbarThemeData.showTrackOnHover ScrollbarThemeData.trackVisibility ScrollbarThemeData
- New Buttons and Button Themes1.20.0breaking
A new set of basic material button widgets and themes have been