Skip to content

Text color is black in dark mode when use textTheme and primaryTextTheme with Google Font #169

Closed Answered by rydmike
rddewan asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @rddewan, thanks for the report.

What you are seeing is actually not a FlexColorScheme issue. If you try your text theme setup from the above example with just vanilla ThemeData, you get the same result. See this example:

      theme: ThemeData(
        useMaterial3: true,
        colorScheme: ColorScheme.fromSeed(seedColor: const Color(0xff1e242e)), 
        textTheme: GoogleFonts.montserratTextTheme(Theme.of(context).textTheme),
        primaryTextTheme: GoogleFonts.montserratTextTheme(Theme.of(context).textTheme),
      ),
      darkTheme: ThemeData(
        useMaterial3: true,
        colorScheme: ColorScheme.fromSeed(brightness: Brightness.dark, seedColor: Color(0xff1e242e)),
    …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rydmike
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question This issue is a usage question and will be moved to the Discussions section.
2 participants
Converted from issue

This discussion was converted from issue #167 on July 14, 2023 22:05.