Flutter - Custom TextInput
A Flutter based Reusable component which provides TextInput with custom properties which can be used in any Flutter application.
Table of contents
- Flutter Support
- Demo
- Features
- Getting started
- Usage
- Methods
- Want to Contribute?
- Need Help / Support?
- Collection of Components
- Changelog
- License
- Keywords
Flutter Support
Version - Flutter 1.17 (stable)
We have tested our program in above versions, however you can use it in other versions as well.
Demo
Features
-
Customisable TextInput with more properties.
-
Common widget can be used for different textinput based on Type.
-
Default TextInput
-
Email TextInput
-
Password TextInput
-
Phone TextInput
-
CreditCard TextInput.
Getting started
- Download this sample project and import custom_text_input.dart file in your project..
- Update Widgets UI based on your requirements.
Usage
Setup process is described below to integrate in project.
Methods
Configure CustomTextInput Widget
// Put CustomTextInput Widget
CustomTextInput(
)
Pass required properties
// add text edit controller, hint text and input type
// textEditController used to fetch text from textInput
// hintTextString is used to show hint and used as a label
// inputType is used to identify which type of TextInput you needed, On basis of that you will get multiple properties and validations
CustomTextInput(
textEditController: _textController,
hintTextString: 'Enter Email',
inputType: InputType.Email,
)