separated_number_input_formatter

A TextInputFormatter that allows the insertion of digits separated by specified separator.
It's very convenient for credit card inputting, price inputting and so on.

CreditCardPrice
credit_cardprice

Usage

// Import package
import 'package:separated_number_input_formatter/separated_number_input_formatter.dart';

class Example extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return TextField(
      inputFormatters: [
        // Use with digits and separator parameters.
        SeparatedNumberInputFormatter(4, separator: '-'),
      ],
    );
  }
}

If you want to know more this formatter, let's try my example project.

Libraries

separated_number_input_formatter

Dart

VM

dart:ffi
Foreign Function Interface for interoperability with the C programming language. [...]

Web

dart:html
HTML elements and other resources for web-based applications that need to interact with the browser and the DOM (Document Object Model). [...]
dart:js
Low-level support for interoperating with JavaScript. [...]
dart:js_util
Utility methods to efficiently manipulate typed JSInterop objects in cases where the name to call is not known at runtime. You should only use these methods when the same effect cannot be achieved with @JS annotations. These methods would be extension methods on JSObject if Dart supported extension methods.