vader-mask

pub package

The Flutter package provides implementations of TextInputFormatter

How to use

import 'package:vader_mask/vader_mask.dart';

Mobile phone formatter

TextField(
  decoration: InputDecoration(
    hintText: 'Mobile number',
    prefixText: '+7 ',
  ),
  inputFormatters: <TextInputFormatter>[
    PhoneFormatter()
  ],
  keyboardType: TextInputType.phone,
  maxLength: 15,
  autofocus: true,
)

Libraries

credit_card_formatter
mobile_phone_formatter
number_input_formatter
vader_mask