themeButtons method

ThemeData themeButtons()

Implementation

ThemeData themeButtons() {
  return copyWith(
    textButtonTheme: TextButtonThemeData(
      style: ButtonStyle(
        foregroundColor: MaterialStateProperty.resolveWith<Color?>((states) {
          if (states.contains(MaterialState.disabled)) {
            return kTheme.primary200;
          }

          return kTheme.accent500;
        }),
        elevation: MaterialStateProperty.all(0),
      ),
    ),
    elevatedButtonTheme: elevatedButtonThemeData,
  );
}