text_mask 1.0.4 copy "text_mask: ^1.0.4" to clipboard
text_mask: ^1.0.4 copied to clipboard

A package for mask textField and const text (eg. Date, phone number, IP address etc.).

alt_text

text_mask #

A package for mask textField and const text (eg. Date, phone number, IP address etc.)

Usage #

add this line to pubspec.yaml


   dependencies:
     text_mask: ^1.0.4

import package


   import 'package:text_mask/text_mask.dart';

Use # for your char in text you want to mask #

Const text mask example: #

  Text(
   'Phone: ${TextMask(pallet: '+90(###) ### ## ##').getMaskedText('5451312132')}',
  ),

TextField Mask Example #

 TextField(
  keyboardType: TextInputType.phone,
  inputFormatters: [TextMask(pallet: '+90(###) ### ## ##')],
  decoration: const InputDecoration(
   label: Text(
     'Phone',
    ),
   ),
  ),
10
likes
140
pub points
84%
popularity

Publisher

verified publishermustafaturkmen.dev

A package for mask textField and const text (eg. Date, phone number, IP address etc.).

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on text_mask