import 'package:wanisdriver/widgets/custom_text.dart'; import 'package:flutter/material.dart'; import '../utils/colors.dart'; class SummaryItem extends StatelessWidget { final String value; final TextStyle? valueStyle; final String label; final TextStyle? labelStyle; const SummaryItem({required this.value, required this.label,this.labelStyle,this.valueStyle}); @override Widget build(BuildContext context) { return Column( children: [ Text( value, style: valueStyle ?? TextStyle(fontSize: 18, fontWeight: FontWeight.bold,color: Theme.of(context).brightness == Brightness.dark ? AppColors.white : AppColors.black,), ), const SizedBox(height: 4), Txt( text: label, style: labelStyle ?? const TextStyle(fontSize: 14, color: Colors.grey), ), ], ); } }