masked_controller

A controller to insert mask to textfield.

sample

Install

Follow this guide

Usage

Import the library

import 'import 'package:masked_controller/masked_controller.dart';';

and the mask:

import 'package:masked_controller/mask.dart';

Create the Controller

final MaskedController _controller = MaskedController(mask: Mask(mask: 'NNN.NNN.NNN-NN'));

Get unmasked value

To get the unsmaked value from controller, use the unmaskedText property:

final String val = controller.unmaskedText;

Inspired by: https://github.com/benhurott/flutter-masked-text

Libraries

main
mask
masked_controller