import 'package:flutter/cupertino.dart'; class DummyIcon extends StatelessWidget { const DummyIcon( {Key? key, required this.color, required this.icon, this.size = 30.0, this.rounded = false}) : super(key: key); final double size; final Color color; final IconData icon; final bool rounded; @override Widget build(BuildContext context) { return Container( width: size, height: size, decoration: BoxDecoration( color: color, borderRadius: rounded ? BorderRadius.circular(size / 2) : BorderRadius.circular(size / 6), ), child: Center( child: Icon( icon, color: CupertinoColors.white, size: size * 0.6, ), ), ); } }