I am trying to set the TextButtonTheme in my ThemeData file.
ButtonThemeData _basicButtonTheme(ButtonThemeData base) {
return base.copyWith(
buttonColor: Colors.orange,
);
}
TextButtonThemeData _basicTextButtonTheme(TextButtonThemeData base) {
return base.copyWith(ButtonStyle());
}
However, I can not quite set the theme for TextButton. I've read about TextButtonTheme on Flutter Doc. But, I can't figure it out how I can set it as TextButton variable. How can I set the theme for TextButton to pass down to my ThemeData.copyWith()?