@@ -16,12 +16,15 @@ class _MoneyFormatPageState extends State<MoneyFormatPage> {
1616
1717 @override
1818 Widget build (BuildContext context) {
19- // print(toCurrencyString(
20- // 1000.0.toString(),
21- // trailingSymbol: '',
22- // thousandSeparator: ThousandSeparator.Period,
23- // mantissaLength: 0,
24- // ));
19+ print (
20+ toCurrencyString (
21+ 'M1,1111' .toString (),
22+ mantissaLength: 0 ,
23+ thousandSeparator: ThousandSeparator .Comma ,
24+ leadingSymbol: 'M' ,
25+ ),
26+ );
27+
2528 return Unfocuser (
2629 child: Scaffold (
2730 appBar: AppBar (
@@ -59,12 +62,15 @@ class _MoneyFormatPageState extends State<MoneyFormatPage> {
5962 ),
6063 inputFormatters: [
6164 CurrencyInputFormatter (
62- // thousandSeparator: ThousandSeparator.Comma,
63- // mantissaLength: 0,
64- thousandSeparator: ThousandSeparator .Space ,
65- mantissaLength: 2 ,
66- trailingSymbol: "\$ " ,
67- )
65+ mantissaLength: 0 ,
66+ thousandSeparator: ThousandSeparator .Comma ,
67+ leadingSymbol: 'M' ,
68+ ),
69+ // CurrencyInputFormatter(
70+ // thousandSeparator: ThousandSeparator.Space,
71+ // mantissaLength: 2,
72+ // trailingSymbol: "\$",
73+ // )
6874 ],
6975 ),
7076 SizedBox (
@@ -312,8 +318,7 @@ class _MoneyFormatPageState extends State<MoneyFormatPage> {
312318 CurrencyInputFormatter (
313319 leadingSymbol: CurrencySymbols .DOLLAR_SIGN ,
314320 useSymbolPadding: true ,
315- thousandSeparator:
316- ThousandSeparator .SpaceAndPeriodMantissa ,
321+ thousandSeparator: ThousandSeparator .SpaceAndPeriodMantissa ,
317322 // ThousandSeparator.Comma,
318323 )
319324 ],
@@ -338,8 +343,7 @@ class _MoneyFormatPageState extends State<MoneyFormatPage> {
338343 ),
339344 inputFormatters: [
340345 CurrencyInputFormatter (
341- thousandSeparator:
342- ThousandSeparator .SpaceAndPeriodMantissa ,
346+ thousandSeparator: ThousandSeparator .SpaceAndPeriodMantissa ,
343347 trailingSymbol: ' USD' ,
344348 // ThousandSeparator.Comma,
345349 )
@@ -365,8 +369,7 @@ class _MoneyFormatPageState extends State<MoneyFormatPage> {
365369 ),
366370 inputFormatters: [
367371 CurrencyInputFormatter (
368- thousandSeparator:
369- ThousandSeparator .SpaceAndCommaMantissa ,
372+ thousandSeparator: ThousandSeparator .SpaceAndCommaMantissa ,
370373 trailingSymbol: ' U' ,
371374 // ThousandSeparator.Comma,
372375 )
0 commit comments