extended_masked_text 2.1.0 copy "extended_masked_text: ^2.1.0" to clipboard
extended_masked_text: ^2.1.0 copied to clipboard

outdated

A small set of custom TextEditingControllers that allows masked text inputs for flutter apps

Extended Masked Text Logo

Extended Masked Text #

This package is based on the source code of flutter_masked_text and is an attempt to fix some bugs and continue the development of the original one.

Usage #

Import the library

import 'package:extended_masked_text/extended_masked_text.dart';

MaskedTextController #

Create your mask controller:

final controller = MaskedTextController(mask: '000.000.000-00');

Set controller to your text field:

return MaterialApp(
    title: 'Masked Text Demo',
    theme: ThemeData(
        primarySwatch: Colors.blue,
    ),
    home: SafeArea(
        child: Scaffold(
            body: Column(
                children: <Widget>[
                    TextField(
                        // Add controller to TextField
                        controller: controller,
                    ),
                ],
            ),
        ),
    ),
);

MoneyMaskedTextController #

Create your mask controller:

final controller = MoneyMaskedTextController(leftSymbol: 'R\$ ');

Set controller to your text field:

return MaterialApp(
    title: 'Money Masked Text Demo',
    theme: ThemeData(
        primarySwatch: Colors.blue,
    ),
    home: SafeArea(
        child: Scaffold(
            body: Column(
                children: <Widget>[
                    TextField(
                        // Add controller to TextField
                        controller: controller,
                    ),
                ],
            ),
        ),
    ),
);
143
likes
0
pub points
97%
popularity

Publisher

unverified uploader

A small set of custom TextEditingControllers that allows masked text inputs for flutter apps

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on extended_masked_text