ru_phone_formatter 1.0.0 copy "ru_phone_formatter: ^1.0.0" to clipboard
ru_phone_formatter: ^1.0.0 copied to clipboard

Mask for entering Russian phone numbers

RU Phone Formatter #

Alt Text

The package allows you to format phone numbers. for Russian numbers, a mask will be applied. no matter which digit you start entering (from 9.8 or 7), the mask correctly adapts the value in the input field. If you specify a number not from Russia, then the mask will not work

Getting started #

Just download the package to get started.

Usage #

Declare a mask for formatting

  final maskFormatter =  SmartPhoneInputFormatter();

add it to TextForm

  TextFormField(
    inputFormatters:[maskFormatter],
  );

get the result in maskFormatter.getClearPhone()

  String phone=maskFormatter.getClearPhone();

Support the author #

Support the author

8
likes
130
points
128
downloads

Publisher

verified publisherkotelnikoff.dev

Weekly Downloads

Mask for entering Russian phone numbers

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on ru_phone_formatter