denseAwareTextButtonStyle function

ButtonStyle denseAwareTextButtonStyle(
  1. BuildContext context, {
  2. double? minScreenWidthForTextBeforeScaling,
})

Implementation

ButtonStyle denseAwareTextButtonStyle(
  BuildContext context, {
  double? minScreenWidthForTextBeforeScaling,
}) {
  final buttonStyle =
      Theme.of(context).textButtonTheme.style ?? const ButtonStyle();
  return _generateButtonStyle(
    context: context,
    buttonStyle: buttonStyle,
    minScreenWidthForTextBeforeScaling: minScreenWidthForTextBeforeScaling,
  );
}