Files
sfm_app_final/lib/feature/home/shared/status_card.dart
anhtunz fb12c44505 chore(deps): upgrade Flutter SDK from 3.10.1 to 3.27.1
- Update Flutter SDK version to 3.27.1
- Update minimum dart SDK version
- Update dependencies to compatible versions
- Fix deprecated method calls
- Run migration for breaking changes
2025-01-05 18:48:11 +07:00

43 lines
1.0 KiB
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.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: const TextStyle(fontSize: 18)),
Text(
count.toString(),
style: const TextStyle(
fontSize: 24,
fontWeight: FontWeight.bold,
),
),
],
),
);
}
}