Skip to content

Cannot set textTheme within CupertinoApp  #227

Description

@palicka

I want to apply font for entire app within CupertinoApp widget. Like this:

MaterialApp(
  theme: ThemeData(
    textTheme: GoogleFonts.latoTextTheme(
      Theme.of(context).textTheme, // If this is not set, then ThemeData.light().textTheme is used.
    ),
  ),
);

however within CupertinoApp ,textTheme must be CupertinoTextThemeData so I'm getting:

The argument type 'TextTheme' can't be assigned to the parameter type 'CupertinoTextThemeData'.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions