Skip to content

Can dark mode be provided when the theme is all black #201

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

You must be logged in to vote

Hi @laterdayi,

Thanks for your question. Yes it can, there are many ways to tune and adjust the amount color blend into both light and dark background colors, there are also different background colors used for different surfaces (background) by different Widgets. So it is important to know which background we are talking about.

For black scaffold background the simplest way is typically to turn on use "True black":

FlexThemeData.dark(
  darkIsTrueBlack: true,
);

This does it for the ThemeData.scaffoldBackgroundColor. When darkIsTrueBlack: true is set the scaffold background will always be black regardless of used blends or M3 seed scheme.

Usually it is a good idea to have a bit of anoth…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by rydmike
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@rydmike
Comment options

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