Skip to content
Discussion options

You must be logged in to vote

I ended up finding the answer to my own question. Turns out the theming is part of the buttons, and you have to individually define a few properties. I ended up defining the following:

textButtonTheme: TextButtonThemeData(
  style: TextButton.styleFrom(
    primary: Colors.deepPurpleAccent,
  ),
),
elevatedButtonTheme: ElevatedButtonThemeData(
  style: ElevatedButton.styleFrom(
    primary: Colors.deepPurpleAccent,
  ),
),
outlinedButtonTheme: OutlinedButtonThemeData(
  style: OutlinedButton.styleFrom(
    primary: Colors.deepPurpleAccent,
  ),
),
colorScheme: ColorScheme.fromSwatch().copyWith(
    primary: Colors.deepPurpleAccent,
    secondary: Colors.deepPurpleAccent,
    brightness: B…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by garv-shah
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant