CupertinoTextThemeData constructor

const CupertinoTextThemeData(
  1. {Color primaryColor = CupertinoColors.systemBlue,
  2. TextStyle? textStyle,
  3. TextStyle? actionTextStyle,
  4. TextStyle? tabLabelTextStyle,
  5. TextStyle? navTitleTextStyle,
  6. TextStyle? navLargeTitleTextStyle,
  7. TextStyle? navActionTextStyle,
  8. TextStyle? pickerTextStyle,
  9. TextStyle? dateTimePickerTextStyle}
)

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,
     );