mask_shifter 0.1.0 copy "mask_shifter: ^0.1.0" to clipboard
mask_shifter: ^0.1.0 copied to clipboard

Library to change the mask of a textfield automatically when the number of characters typed change

mask_shifter #

This package provides a way to switch between two masks in a TextField

Getting Started #

Import the packages:

import 'package:flutter_masked_text/flutter_masked_text.dart';

Is very simple to use: #

Just pass the class as an input formatter. Example:

return TextField(
          inputFormatters: [
            MaskedTextInputFormatterShifter(
                maskONE:"XXX.XXX.XXX-XX",
                maskTWO:"XX.XXX.XXX/XXXX-XX"
             ),
          ],
          decoration: InputDecoration(
            border: OutlineInputBorder(),
            labelText: this.label,
            labelStyle: TextStyle(fontWeight: FontWeight.bold),
          ),
        );

There are two parameters, maskONE and maskTWO. maskONE must be the shorter mascara, and maskTWO the longest.

For help getting started with Flutter, view our online documentation.

For help on editing package code, view the documentation.

6
likes
30
pub points
74%
popularity

Publisher

unverified uploader

Library to change the mask of a textfield automatically when the number of characters typed change

Repository (GitHub)
View/report issues

License

Apache-2.0 (LICENSE)

Dependencies

flutter

More

Packages that depend on mask_shifter