m3_lightmeter/lib/screens/metering/components/shared/filled_circle.dart

29 lines
561 B
Dart
Raw Normal View History

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),
2022-10-29 11:01:15 +00:00
child: ColoredBox(
color: color,
child: child,
),
),
);
}
}