Por que não consigo criar um parâmetro de ícone ("IconName")?
Segue código:
class TopBottom extends StatelessWidget { final String IconName; const TopBottom(this.IconName,{Key? key}) : super(key: key);
@override Widget build(BuildContext context) { return Padding( padding: EdgeInsets.symmetric(vertical: 30, horizontal: 10), child: Container( decoration: const BoxDecoration( shape: BoxShape.circle, color: Color(0xFF105ab4), ), width: 70, height: 70, child: IconButton( onPressed: () {}, icon: const Icon(Icons.IconName), color: Colors.white, iconSize: 38, ), ), ); } }