38 lines
959 B
Dart
38 lines
959 B
Dart
import 'package:flutter/material.dart';
|
|
import '../../../product/extension/context_extension.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.withValues(alpha: 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: context.responsiveBodyLarge),
|
|
Text(count.toString(), style: context.h2),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|