add length picker
This commit is contained in:
@@ -15,6 +15,8 @@ class InputText extends StatelessWidget {
|
||||
final Color borderColor;
|
||||
final TextInputType textInputType;
|
||||
final bool autoFocus;
|
||||
final TextAlign textAlign;
|
||||
final bool enabled;
|
||||
|
||||
const InputText(
|
||||
{Key key,
|
||||
@@ -26,7 +28,9 @@ class InputText extends StatelessWidget {
|
||||
this.withBorder = false,
|
||||
this.borderColor,
|
||||
this.autoFocus = false,
|
||||
this.textInputType})
|
||||
this.textInputType,
|
||||
this.enabled = true,
|
||||
this.textAlign})
|
||||
: super(key: key);
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -35,12 +39,14 @@ class InputText extends StatelessWidget {
|
||||
return Padding(
|
||||
padding: const EdgeInsets.only(top: 15.0, bottom: 5),
|
||||
child: TextFormField(
|
||||
enabled: enabled,
|
||||
controller: controller,
|
||||
autofocus: autoFocus,
|
||||
cursorColor: primaryColor,
|
||||
style: textStyle,
|
||||
maxLines: maxLines,
|
||||
keyboardType: textInputType,
|
||||
textAlign: textAlign ?? TextAlign.start,
|
||||
decoration: new InputDecoration(
|
||||
// hintText: '',
|
||||
hintStyle: TextStyle(
|
||||
|
||||
Reference in New Issue
Block a user