cor e desabilitar edição dos campos
This commit is contained in:
@@ -10,7 +10,7 @@ class InputText extends StatelessWidget {
|
||||
String hint;
|
||||
double width;
|
||||
String label;
|
||||
bool enable;
|
||||
bool enabled;
|
||||
TextInputType textInputType;
|
||||
int maxLines;
|
||||
Color colorBorder;
|
||||
@@ -23,7 +23,7 @@ class InputText extends StatelessWidget {
|
||||
this.fontSize = 15.0,
|
||||
this.hint = '',
|
||||
this.label = '',
|
||||
this.enable = true,
|
||||
this.enabled = true,
|
||||
this.textInputType = TextInputType.text,
|
||||
this.maxLines = 1,
|
||||
this.colorBorder = ColorPalette.black54,
|
||||
@@ -33,7 +33,7 @@ class InputText extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Container(
|
||||
color: ColorPalette.white,
|
||||
color: enabled?ColorPalette.white:ColorPalette.disable,
|
||||
margin: EdgeInsets.only(top: 5),
|
||||
width: width,
|
||||
child: TextFormField(
|
||||
@@ -68,9 +68,9 @@ class InputText extends StatelessWidget {
|
||||
borderRadius: BorderRadius.circular(3),
|
||||
),
|
||||
hintText: this.hint,
|
||||
enabled: enable,
|
||||
enabled: enabled,
|
||||
hintStyle: TextStyle(
|
||||
color: ColorPalette.gray,
|
||||
color: Colors.black,
|
||||
fontSize: this.fontSize,
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user