fix: corrige moneda de Bs./Bolivia a USD/Ecuador en toda la app

Reemplaza todos los NumberFormat con locale en_US y símbolo $ en
los 6 screens que mostraban precios. Actualiza mock_data con
referencias a Ecuador/Quito/+593 y strings demo de notificaciones.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Pablinux
2026-06-17 09:26:50 -05:00
co-authored by Claude Sonnet 4.6
parent 0c09e10e4d
commit abe310699d
10 changed files with 39 additions and 39 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ class _CatalogoScreenState extends State<CatalogoScreen> {
@override
Widget build(BuildContext context) {
final provider = context.watch<AppProvider>();
final fmt = NumberFormat.currency(locale: 'es_BO', symbol: 'Bs.', decimalDigits: 2);
final fmt = NumberFormat.currency(locale: 'en_US', symbol: '\$', decimalDigits: 2);
final filtrados = provider.productos.where((p) {
final matchCat = _categoriaSeleccionada == 'Todos' || p.categoria == _categoriaSeleccionada;
@@ -151,7 +151,7 @@ class _ClienteFormScreenState extends State<ClienteFormScreen> {
_buildField(
controller: _telefonoCtrl,
label: 'Teléfono / Celular *',
hint: 'Ej. +591 70000000',
hint: 'Ej. +593 99 0000000',
icon: Icons.phone_outlined,
keyboardType: TextInputType.phone,
validator: _required,
+1 -1
View File
@@ -17,7 +17,7 @@ class _FirmaScreenState extends State<FirmaScreen> {
bool _firmado = false;
bool _guardando = false;
final _fmt = NumberFormat.currency(locale: 'es_BO', symbol: 'Bs.', decimalDigits: 2);
final _fmt = NumberFormat.currency(locale: 'en_US', symbol: '\$', decimalDigits: 2);
@override
Widget build(BuildContext context) {
+1 -1
View File
@@ -15,7 +15,7 @@ class HomeScreen extends StatelessWidget {
Widget build(BuildContext context) {
final provider = context.watch<AppProvider>();
final notifService = context.watch<NotificationService>();
final fmt = NumberFormat.currency(locale: 'es_BO', symbol: 'Bs.', decimalDigits: 2);
final fmt = NumberFormat.currency(locale: 'en_US', symbol: '\$', decimalDigits: 2);
return Scaffold(
backgroundColor: AppTheme.bgColor,
@@ -13,7 +13,7 @@ class PedidoDetailScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
final provider = context.read<AppProvider>();
final fmt = NumberFormat.currency(locale: 'es_BO', symbol: 'Bs.', decimalDigits: 2);
final fmt = NumberFormat.currency(locale: 'en_US', symbol: '\$', decimalDigits: 2);
final estadoColor = AppTheme.estadoColor(pedido.estado.label);
final dateStr = DateFormat('d \'de\' MMMM yyyy, HH:mm', 'es').format(pedido.fecha);
+1 -1
View File
@@ -21,7 +21,7 @@ class _PedidoFormScreenState extends State<PedidoFormScreen> {
String _productoQuery = '';
bool _showSearch = false;
final _fmt = NumberFormat.currency(locale: 'es_BO', symbol: 'Bs.', decimalDigits: 2);
final _fmt = NumberFormat.currency(locale: 'en_US', symbol: '\$', decimalDigits: 2);
@override
void initState() {
+1 -1
View File
@@ -16,7 +16,7 @@ class PedidosScreen extends StatefulWidget {
class _PedidosScreenState extends State<PedidosScreen> with SingleTickerProviderStateMixin {
late TabController _tab;
final _fmt = NumberFormat.currency(locale: 'es_BO', symbol: 'Bs.', decimalDigits: 2);
final _fmt = NumberFormat.currency(locale: 'en_US', symbol: '\$', decimalDigits: 2);
@override
void initState() {
+1 -1
View File
@@ -12,7 +12,7 @@ class PerfilScreen extends StatelessWidget {
Widget build(BuildContext context) {
final provider = context.watch<AppProvider>();
final vendedor = provider.vendedor;
final fmt = NumberFormat.currency(locale: 'es_BO', symbol: 'Bs.', decimalDigits: 2);
final fmt = NumberFormat.currency(locale: 'en_US', symbol: '\$', decimalDigits: 2);
return Scaffold(
backgroundColor: AppTheme.bgColor,