build method Null safety
- dynamic context
Implementation
@override
Widget build(BuildContext context) {
final ThemeData themeData = Theme.of(context);
return SmoothSimpleButton(
onPressed: onPressed,
height: height,
minWidth: minWidth,
child: AutoSizeText(
text,
style: themeData.textTheme.bodyText2!
.copyWith(color: themeData.colorScheme.onPrimary),
maxLines: 1,
),
);
}