This package is a TextField that allows you to implement the OutlineInputBorder with simple settings. It includes all the options provided by the existing TextField, and additionally includes an option to block white space or special characters.

Getting started

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

  simple_text_field: ^1.0.2

Package composition

  • SimpleTextField - A widget that implements a SimpleTextField.
  • SimpleTextFieldTitle - A widget that implements the title of SimpleTextField.
  • SimpleInputDecoration - Creates a bundle of the border, labels, icons, and styles used to decorate a SimpleTextField.

SimpleTextField (※ Show only added options)

decorationUsed to decorate SimpleTextField.
titleTitle can be created using SimpleTextFieldTitle.
titleAlignmentSet the alignment value of the title widget.
ignoreWhiteSpaceWhether to ignore input of white space.
ignoreSpecialCharWhether to ignore input of special characters.


titleSet the title text.
titleStyleSpecifies the style of the title text.
asterStyleSpecifies the style of the asterisk character.
paddingSet the title padding.
importantWhen set to true, an asterisk character appears.

SimpleInputDecoration (※ Show only added options)

removeBorderWhether to remove the border of a SimpleTextField.
simpleBorderWhether to automatically create a OutlineInputBorder.
disabledColor*fillColor to display when a SimpleTextField is disabled.
borderColor*The color of the border that will be shown to us in general.
errorBorderColor*The color of the border to show when the errorText is not null.
focusedBorderColor*The color of the focused border.
focusedErrorBorderColor*The color of the focused error border.
borderWidth*Set the width of the border.
focusedBorderWidth*Set the width of the focused border.
borderRadius*Set the radius of the border.

Note: The parameters marked with an asterisk(*) operate when simpleBorder is true.