m3_lightmeter/lib/screens/shared/filled_circle/widget_circle_filled.dart
2023-01-29 20:49:44 +03:00

28 lines
561 B
Dart

import 'package:flutter/material.dart';
class FilledCircle extends StatelessWidget {
final double size;
final Color color;
final Widget? child;
const FilledCircle({
required this.size,
required this.color,
this.child,
super.key,
});
@override
Widget build(BuildContext context) {
return ClipRRect(
borderRadius: BorderRadius.circular(size / 2),
child: SizedBox.fromSize(
size: Size.square(size),
child: ColoredBox(
color: color,
child: child,
),
),
);
}
}