Text styles missing from CupertinoTextThemeData

Viewed 302

According to Flutter documentation, the CupertinoTextThemeData has the following styles:

  • navActionTextStyle: The TextStyle of interactive text content in navigation bars.
  • navLargeTitleTextStyle: The TextStyle of large titles in sliver navigation bars.
  • navTitleTextStyle: The TextStyle of titles in standard navigation bars.
  • pickerTextStyle : The TextStyle of pickers.
  • tabLabelTextStyle: The TextStyle of unselected tabs.
  • textStyle: The TextStyle of general text content for Cupertino widgets.

However, Apple's documentation lists the following styles: Large Title, Title 1, Title 2, Title 3, Headline, Body, Callout, Subhead, Footnote, Caption 1, Caption 2.

Shouldn't these styles be defined in the CupertinoTextThemeData? Are these defined somewhere else?

1 Answers

I believe you can access them like this:

CupertinoTheme.of(context).textTheme.navLargeTitleTextStyle

Related