New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not all theme styles are respected #112
Comments
ah, I am using flutter_platform_widgets and building a cupertino app for ios; so theme is not same as theme here |
Still the text theme should be honored. I assume this is a bug. |
Adding this to the ThemeData seems to work fine globally. Closing unless you are able to post code verifying the bug. return ThemeData(
...
textTheme: GoogleFonts.paprikaTextTheme(),
...
); |
Its an issue with cupertino apps class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return CupertinoApp(
title: 'Flutter Demo',
theme: CupertinoThemeData(
primaryColor: Colors.black,
textTheme: CupertinoTextThemeData(textStyle: GoogleFonts.pacifico()),
),
home: CupertinoPageScaffold(
navigationBar: CupertinoNavigationBar(
middle: Text("Hello World"),
),
child: Form(
child: CardSettings(
children: [
CardSettingsSection(
children: <Widget>[
CardSettingsText(
label: 'Title',
initialValue: "No title yet",
),
CardSettingsSelectionPicker(
label: "Choose wisely",
options: ["Foo", "Bar"],
initialValue: "Foo",
)
],
)
],
),
),
));
}
} |
but, i just found, that i can wrap my Theme(
data: materialThemeData,
child: CupertinoApp(...)
) this seems to work |
Either the global theme or a local theme (like your solution) should work. I verified the Cupertino controls honor the font so keeping closed. This is fixed in release 1.9.8 |
Hello,
first, kudos to this awesome library. it helps a lot.
I just noticed that not all theme styles are respected. I set the default font familiy to Calibri Light, but the value text is still set to .SF UI Text for Cupertino
The text was updated successfully, but these errors were encountered: