advanced_text_input_formatters_codespark 0.0.2 copy "advanced_text_input_formatters_codespark: ^0.0.2" to clipboard
advanced_text_input_formatters_codespark: ^0.0.2 copied to clipboard

A Flutter package with advanced custom TextInputFormatters—simulate typing, block clipboard, allow only palindromes, enforce naming conventions and more.

Banner

✨ TextInputFormatters Included #

A collection of custom TextInputFormatters designed to enhance and control user input in Flutter apps.

🔠 Typing Delay Formatter #

Mimics human-like typing latency by preventing direct typing and simulating delayed character-by-character input.

/// Example:
TypingDelayController typingController = TypingDelayController();

TextField(
  controller: typingController,
  onChanged: (value) {
    if (!typingController.text.endsWith(value.characters.last)) {
      typingController.typeCharacter(value.characters.last);
    }
  },
)

🔢 Digits Only Formatter #

Allows only numeric digits (0–9).

/// Example:
TextField(
  inputFormatters: [DigitsOnlyFormatter()],
)

🔁 Input Mirror Formatter #

Reverses the text in real-time as the user types.

/// Example:
TextField(
  inputFormatters: [InputMirrorFormatter()],
)

Input: helloDisplayed: olleh


🚫 Prevent Repeat Characters #

Blocks repeated characters (e.g., aaa).

/// Example:
TextField(
  inputFormatters: [PreventRepeatCharactersFormatter()],
)

✂️ Block Clipboard Access #

Disables pasting text into the field via the clipboard.

/// Example:
TextField(
  inputFormatters: [BlockClipboardFormatter()],
)

🪞 Only Palindromes Allowed #

Allows only input that is a valid palindrome (same forwards and backwards).

/// Example:
TextField(
  inputFormatters: [PalindromeOnlyFormatter()],
)

Allowed Input: madam, racecar
Blocked Input: hello, world


🔡 Only Alphabets #

Removes digits and symbols, allowing only alphabetic input.

/// Example:
TextField(
  inputFormatters: [OnlyAlphabetsFormatter()],
)

Input: abc123@#Output: abc


🐫 CamelCase Formatter #

Converts the input to camelCase format.

/// Example:
TextField(
  inputFormatters: [CamelCaseInputFormatter()],
)

Input: hello world flutterOutput: helloWorldFlutter


🐍 Snake_case Formatter #

Automatically formats input to snake_case.

/// Example:
TextField(
  inputFormatters: [SnakeCaseInputFormatter()],
)

Input: hello worldOutput: hello_world


Kebab-case Formatter #

Automatically formats input to kebab-case.

/// Example:
TextField(
  inputFormatters: [KebabCaseInputFormatter()],
)

Input: hello worldOutput: hello-world


Replace Whitespace With Underscores #

Replaces all spaces with underscores.

/// Example:
TextField(
  inputFormatters: [WhitespaceToUnderscoreFormatter()],
)

Input: hello world flutterOutput: hello_world_flutter


🚫 Prevent Multiple Consecutive Spaces #

Ensures no more than one space between words.

/// Example:
TextField(
  inputFormatters: [SingleSpaceFormatter()],
)

Input: hello worldOutput: hello world

6
likes
160
points
121
downloads

Publisher

verified publisherksaikiran.tech

Weekly Downloads

A Flutter package with advanced custom TextInputFormatters—simulate typing, block clipboard, allow only palindromes, enforce naming conventions and more.

Repository (GitHub)

Topics

#textinput #inputformatter #validation #typing #formatting

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on advanced_text_input_formatters_codespark