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

mask shifter between two masks

mask_shifter #

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

Getting Started #

Import the packages:

import 'package:mask_shifter/mask_shifter.dart';

Its 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 mask, and maskTWO the longest.

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

For help on editing package code, view the documentation.

1
likes
100
pub points
88%
popularity

Publisher

unverified uploader

mask shifter between two masks

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (LICENSE)

Dependencies

flutter

More

Packages that depend on mask_shifter_v2