https://github.com/dev-hwang/simple_text_field
This package provides the ability to implement OutlineTextField with simple settings.
https://github.com/dev-hwang/simple_text_field
android flutter ios text-field web
Last synced: about 1 year ago
JSON representation
This package provides the ability to implement OutlineTextField with simple settings.
- Host: GitHub
- URL: https://github.com/dev-hwang/simple_text_field
- Owner: Dev-hwang
- License: mit
- Created: 2021-01-15T05:49:59.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-11-02T14:40:19.000Z (over 1 year ago)
- Last Synced: 2025-03-18T18:06:20.736Z (over 1 year ago)
- Topics: android, flutter, ios, text-field, web
- Language: Dart
- Homepage: https://pub.dev/packages/simple_text_field
- Size: 49.8 KB
- Stars: 5
- Watchers: 1
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
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.
[](https://pub.dev/packages/simple_text_field)
## Getting started
To use this package, add `simple_text_field` as a [dependency in your pubspec.yaml file](https://flutter.io/platform-plugins/). For example:
```yaml
dependencies:
simple_text_field: ^3.2.0
```
## How to use
To block `white space` and `special characters`, use the following:
```dart
SimpleTextField(
allowWhiteSpace: false,
allowSpecialCharacters: false,
),
```
Instead of writing repetitive InputBorder to implement border, errorBorder, focusedBorder,
focusedErrorBorder, enabledBorder, and disabledBorder, easily create OutlineTextField using the `simpleBorder` option.
```dart
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,
),
```
## Support
If you find any bugs or issues while using the plugin, please register an issues on [GitHub](https://github.com/Dev-hwang/simple_text_field/issues). You can also contact us at .