add length picker

This commit is contained in:
Sai Naw Wun
2020-10-14 01:51:53 +06:30
parent 6ab65065ec
commit 8f5542c4fb
15 changed files with 481 additions and 215 deletions

View File

@@ -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(