43 lines
1023 B
Dart
43 lines
1023 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class StatusCard extends StatelessWidget {
|
|
final String label;
|
|
final int count;
|
|
final Color color;
|
|
|
|
const StatusCard(
|
|
{super.key,
|
|
required this.label,
|
|
required this.count,
|
|
required this.color});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Container(
|
|
decoration: BoxDecoration(
|
|
color: color.withOpacity(0.2),
|
|
borderRadius: BorderRadius.circular(10),
|
|
border: Border.all(
|
|
color: color,
|
|
width: 1,
|
|
),
|
|
),
|
|
padding: const EdgeInsets.all(15),
|
|
margin: const EdgeInsets.symmetric(vertical: 5),
|
|
child: Row(
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
children: [
|
|
Text(label, style: const TextStyle(fontSize: 18)),
|
|
Text(
|
|
count.toString(),
|
|
style: const TextStyle(
|
|
fontSize: 24,
|
|
fontWeight: FontWeight.bold,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|