CupertinoTextThemeData constructor
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? actionSmallTextStyle,
TextStyle? tabLabelTextStyle,
TextStyle? navTitleTextStyle,
TextStyle? navLargeTitleTextStyle,
TextStyle? navActionTextStyle,
TextStyle? pickerTextStyle,
TextStyle? dateTimePickerTextStyle,
}) : this._raw(
const _TextThemeDefaultsBuilder(CupertinoColors.label, CupertinoColors.inactiveGray),
primaryColor,
textStyle,
actionTextStyle,
actionSmallTextStyle,
tabLabelTextStyle,
navTitleTextStyle,
navLargeTitleTextStyle,
navActionTextStyle,
pickerTextStyle,
dateTimePickerTextStyle,
);