expressiveButtonTheme function
Makes the ElevatedButtons in child Expressive, keeping the ambient
button style.
Implementation
Widget expressiveButtonTheme(BuildContext context, {required Widget child}) {
return ElevatedButtonTheme(
data: ElevatedButtonThemeData(
style: ElevatedButtonTheme.of(context).style,
variant: StyleVariant.material3Expressive,
),
child: child,
);
}