1
0
forked from firka/firka
Files
firka/firka_common/lib/ui/components/filled_circle.dart
2026-08-01 11:09:28 +02:00

28 lines
565 B
Dart

import 'package:flutter/material.dart';
class FilledCircle extends StatelessWidget {
final double diameter;
final Color color;
final Widget child;
const FilledCircle({
required this.diameter,
required this.child,
required this.color,
super.key,
});
@override
Widget build(BuildContext context) {
return SizedBox(
width: diameter,
height: diameter,
child: Material(
shape: const CircleBorder(),
color: color,
child: Center(child: child),
),
);
}
}