Membuat String Rupiah

membuat format currency rupiah

import 'package:intl/intl.dart';

final formatCurrency = new NumberFormat.simpleCurrency(locale: 'id_ID');
int _moneyCounter ;

new Expanded(
            child: new Center(
                child: new Text('${formatCurrency.format(_moneyCounter)}',
                  style: new TextStyle(
                    color: Colors.greenAccent,
                    fontSize: 46.9,
                    fontWeight: FontWeight.w800)))),

Last updated

Was this helpful?