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'.
I want to apply font for entire app within CupertinoApp widget. Like this:
however within
CupertinoApp,textThememust beCupertinoTextThemeDataso I'm getting:The argument type 'TextTheme' can't be assigned to the parameter type 'CupertinoTextThemeData'.