CupertinoTextThemeData constructor Null safety
Create a CupertinoTextThemeData.
The primaryColor
is used to derive TextStyle defaults of other attributes
such as navActionTextStyle
and actionTextStyle
, it must not be null when
either navActionTextStyle
or actionTextStyle
is null. Defaults to
CupertinoColors.systemBlue.
Other TextStyle parameters default to default iOS text styles when unspecified.
Implementation
const CupertinoTextThemeData({
Color primaryColor = CupertinoColors.systemBlue,
TextStyle? textStyle,
TextStyle? actionTextStyle,
TextStyle? tabLabelTextStyle,
TextStyle? navTitleTextStyle,
TextStyle? navLargeTitleTextStyle,
TextStyle? navActionTextStyle,
TextStyle? pickerTextStyle,
TextStyle? dateTimePickerTextStyle,
}) : this._raw(
const _TextThemeDefaultsBuilder(CupertinoColors.label, CupertinoColors.inactiveGray),
primaryColor,
textStyle,
actionTextStyle,
tabLabelTextStyle,
navTitleTextStyle,
navLargeTitleTextStyle,
navActionTextStyle,
pickerTextStyle,
dateTimePickerTextStyle,
);