2025-08-04 23:13:52 +07:00

58 lines
1.4 KiB
Dart

import 'package:enaklo_pos/core/components/spaces.dart';
import 'package:flutter/material.dart';
class RefundInfoTile extends StatelessWidget {
final String title;
final String value;
final IconData icon;
final Color color;
const RefundInfoTile({
super.key,
required this.title,
required this.value,
required this.icon,
required this.color,
});
@override
Widget build(BuildContext context) {
return Container(
padding: EdgeInsets.all(16),
decoration: BoxDecoration(
color: color.withOpacity(0.1),
borderRadius: BorderRadius.circular(16),
border: Border.all(color: color.withOpacity(0.2)),
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
children: [
Icon(icon, color: color, size: 20),
SizedBox(width: 8),
Text(
title,
style: TextStyle(
color: Colors.grey[600],
fontSize: 12,
fontWeight: FontWeight.w500,
),
),
],
),
SpaceHeight(8),
Text(
value,
style: TextStyle(
color: Colors.grey[800],
fontSize: 16,
fontWeight: FontWeight.bold,
),
),
],
),
);
}
}