preferredTextButtonStyle function
ButtonStyle
preferredTextButtonStyle(
- ColorScheme colorScheme, [
- double splashColorOpacity = preferredSplashColorOpacity
Returns the preferred TextButton's ButtonStyle by AoiHosizora :)
Implementation
ButtonStyle preferredTextButtonStyle(
ColorScheme colorScheme, [
double splashColorOpacity = preferredSplashColorOpacity,
]) =>
flatButtonStyle(
primary: colorScheme.primary,
splashColor: colorScheme.primary.withOpacity(splashColorOpacity), // <<<
splashFactory: CustomInkRipple.preferredSplashFactory,
);