import 'package:flutter/cupertino.dart'; class NavBarButton extends StatelessWidget { final IconData icon; final VoidCallback? onPressed; final String? semanticLabel; const NavBarButton( {super.key, required this.icon, this.onPressed, this.semanticLabel}); @override Widget build(BuildContext context) { final theme = CupertinoTheme.of(context); var color = theme.textTheme.navActionTextStyle.color ?? theme.primaryColor; return CupertinoButton( padding: EdgeInsets.zero, onPressed: onPressed, child: Icon( icon, color: color, size: 26, ), ); } }