This commit is contained in:
Phuoc Nguyen
2025-10-10 16:38:07 +07:00
parent e5b247d622
commit b94c158004
177 changed files with 25080 additions and 152 deletions

View File

@@ -0,0 +1,27 @@
import 'package:flutter/material.dart';
import '../../core/utils/formatters.dart';
/// Widget to display formatted price
class PriceDisplay extends StatelessWidget {
final double price;
final TextStyle? style;
final String currency;
const PriceDisplay({
super.key,
required this.price,
this.style,
this.currency = 'USD',
});
@override
Widget build(BuildContext context) {
return Text(
Formatters.formatPrice(price, currency: currency),
style: style ?? Theme.of(context).textTheme.titleMedium?.copyWith(
fontWeight: FontWeight.bold,
color: Theme.of(context).colorScheme.primary,
),
);
}
}