Search packages, repositories and app categories

GitHub repositoryacadia3000/multi_masked_formatter

multi_masked_formatter

Multple Masked TextInputFormatter Flutter plugin.

multi_masked_formatter project cover
Stars
4
Forks
5
Last push (UTC)
Nov 14, 2022
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

multi_masked_formatter

Multple Masked TextInputFormatter Flutter plugin. It is useful for entering phone numbers, date of birth.

Getting Started

Dependency
dependencies:
  multi_masked_formatter: ^1.0.0
Import
import 'package:multi_masked_formatter/multi_masked_formatter.dart';
Example
TextField(
  inputFormatters: [
    MultiMaskedTextInputFormatter(
        masks: ['xxx-xxxx-xxxx', 'xxx-xxx-xxxx'], separator: '-')
  ],
  autofocus: true,
  keyboardType: TextInputType.number,
  decoration:
      InputDecoration(
        labelText: 'PhoneNumber',
        hintText: '010-123-4567 or 010-1234-5678'),
);
  
  
TextField(
  inputFormatters: [
    MultiMaskedTextInputFormatter(
        masks: ['xx.xx.xx', 'xxxx.xx.xx'], separator: '.')
  ],
  autofocus: true,
  keyboardType: TextInputType.number,
  decoration: InputDecoration(
      labelText: 'Date of birth', hintText: '99.02.20 or 1999.02.20'),
);
정형택 GitHub avatar
GitHub author

정형택 ↗

LanguagesDartRubyShellSwiftKotlinObjective-C

Packages published by this repository

Dependencies used

Dependency list 1 items

  • flutter{"sdk":"flutter"}

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗