fianace page has been made along with the work day card
This commit is contained in:
28
lib/widgets/status_circle.dart
Normal file
28
lib/widgets/status_circle.dart
Normal file
@@ -0,0 +1,28 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class StatusCircle extends StatelessWidget {
|
||||
final Color color;
|
||||
final Widget icon;
|
||||
final double size;
|
||||
|
||||
const StatusCircle({
|
||||
super.key,
|
||||
required this.color,
|
||||
required this.icon,
|
||||
this.size = 42, // ✅ smaller = card height reduced
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Container(
|
||||
width: size,
|
||||
height: size,
|
||||
decoration: BoxDecoration(
|
||||
shape: BoxShape.circle,
|
||||
border: Border.all(color: color, width: 3),
|
||||
color: Colors.white,
|
||||
),
|
||||
child: Center(child: icon),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user