Skip to content

Change BottomSheet backgroundColor (Modifying component theme properties not currently supported by FlexColorScheme) #85

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

You must be logged in to vote

Hi @superakabo,

Thank you for your question. You are right there is no built-in option in current version of FCS to set its background color directly. FCS does not try to replace everything you can do with ThemeData, trying to replace everything is not really the goal, it focuses on things that are tedious or tricky to do.

A key thing to remember is that FlexColorScheme.toTheme or FlexThemeData.light/dark just return a fancy configuration of standard ThemeData. You can get and store this ThemeData data object and further modify it anyway you want with copyWith on the returned ThemeData, before you apply it as the theme in your MaterialApp.

This is explained and shown here too: #41 (comment)

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@superakabo
Comment options

@rydmike
Comment options

@rydmike
Comment options

@superakabo
Comment options

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