moneytextformfield 0.0.1 copy "moneytextformfield: ^0.0.1" to clipboard
moneytextformfield: ^0.0.1 copied to clipboard

outdated

A new flutter plugin project.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'package:moneytextformfield/moneytextformfield.dart';

void main() => runApp(MyApp());


class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}


class _MyAppState extends State<MyApp> {
  @override
  void initState() {  
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('MoneyTextFormField'),
        ),
        body: Column(
          children: <Widget>[
            MoneyTextFormField(
              settings: MoneyTextFormFieldSettings(
                amount: 0.00,
                currencySymbol: '\$',
                decimalSeparator: '.',
                thousandSeparator: ',',
                fractionDigits: 2,
                spaceBetweenSymbolAndNumber: true,
                displayFormat: MoneyDisplayFormat.compactLeftSymbol,

                labelText: 'Amount:',
                labelStyle: TextStyle(fontSize: 26.0),
                inputStyle: TextStyle(fontSize: 26.0),
                formatStyle: TextStyle(fontSize: 26.0, color: Colors.blue)
              )
            ),
          ],
        ),
      ),
    );
  }
}
10
likes
0
pub points
9%
popularity

Publisher

unverified uploader

A new flutter plugin project.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, flutter_money_formatter

More

Packages that depend on moneytextformfield