You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
798 B
Dart

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,
),
),
);
}
}