Last updated:
0 purchases
simple text field
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.
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.0.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 [email protected].
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.