CupertinoTextThemeData constructor

const CupertinoTextThemeData({
  1. Color primaryColor = CupertinoColors.systemBlue,
  2. TextStyle? textStyle,
  3. TextStyle? actionTextStyle,
  4. TextStyle? actionSmallTextStyle,
  5. TextStyle? tabLabelTextStyle,
  6. TextStyle? navTitleTextStyle,
  7. TextStyle? navLargeTitleTextStyle,
  8. TextStyle? navActionTextStyle,
  9. TextStyle? pickerTextStyle,
  10. 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? 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,
     );