Skip to content

Custom AppBarTheme options - (How to add custom component theme properties not included in FlexColorScheme) #41

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

You must be logged in to vote

Actually I just realized, it is a bit trickier than that.

For the sub themes that FlexColorScheme creates already, and even already version 3 does that for AppBar, as a part of the core tweaks that it does to them. You would of course first first have to obtain a copy of the AppBar theme it has already created, and then apply your changes to this AppBar theme, in order to not loose the features FlexColorScheme already did to it.
Here is an updated example, that should produce a result that combines FlexColorScheme's already added AppBar theming and the desired shadow color.

class MyApp extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
    final ThemeData lig…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
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
0 replies
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 #19 on April 06, 2022 01:16.