defaultStyleOf method

  1. @override
ButtonStyle defaultStyleOf(
  1. BuildContext context
)
override

Implementation

@override
ButtonStyle defaultStyleOf(BuildContext context) {
  assert(debugCheckHasFluentTheme(context));
  final theme = FluentTheme.of(context);
  return ButtonStyle(
    shadowColor: ButtonState.all(theme.shadowColor),
    padding: ButtonState.all(kDefaultButtonPadding),
    shape: ButtonState.resolveWith((states) {
      return ButtonThemeData.shapeBorder(context, states);
    }),
    backgroundColor: ButtonState.resolveWith((states) {
      return ButtonThemeData.buttonColor(context, states);
    }),
    foregroundColor: ButtonState.resolveWith((states) {
      return ButtonThemeData.buttonForegroundColor(context, states);
    }),
  );
}