simple_text_field 3.2.0 copy "simple_text_field: ^3.2.0" to clipboard
simple_text_field: ^3.2.0 copied to clipboard

This package provides the ability to implement OutlineTextField with simple settings.

This package provides the ability to implement OutlineTextField with simple settings. It includes all the options provided by TextField, and also includes options to block white space and special characters.

pub package

Getting started #

To use this package, add simple_text_field as a dependency in your pubspec.yaml file. For example:

dependencies:
  simple_text_field: ^3.2.0
copied to clipboard

How to use #

To block white space and special characters, use the following:

SimpleTextField(
  allowWhiteSpace: false,
  allowSpecialCharacters: false,
),
copied to clipboard

Instead of writing repetitive InputBorder to implement border, errorBorder, focusedBorder, focusedErrorBorder, enabledBorder, and disabledBorder, easily create OutlineTextField using the simpleBorder option.

SimpleTextField(
  decoration: SimpleInputDecoration(
    simpleBorder: SimpleInputBorder(
      style: SimpleInputBorderStyle.outline,
      color: Colors.blueAccent,
      errorColor: Colors.redAccent,
      focusedColor: Colors.blue,
      focusedErrorColor: Colors.red,
      disabledColor: Colors.grey,
      width: 1.0,
      focusedWidth: 2.0,
      radius: BorderRadius.circular(8),
    ),
  ),
  allowWhiteSpace: false,
  allowSpecialCharacters: false,
),
copied to clipboard

Support #

If you find any bugs or issues while using the plugin, please register an issues on GitHub. You can also contact us at hwj930513@naver.com.

6
likes
80
points
230
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.11 - 2025.03.26

This package provides the ability to implement OutlineTextField with simple settings.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on simple_text_field