ajustes para exibir e salvos dados no cadastro individual e visita domiciliar
This commit is contained in:
@@ -32,7 +32,7 @@ class InputText extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Container(
|
||||
color: enabled?ColorPalette.white:ColorPalette.disable,
|
||||
color: enabled?Colors.grey[200]:ColorPalette.disable,
|
||||
width: width,
|
||||
margin: EdgeInsets.only(bottom: 5),
|
||||
child: TextFormField(
|
||||
|
||||
@@ -12,7 +12,7 @@ class InputWithSubtitle extends StatelessWidget {
|
||||
double widthSubtitle;
|
||||
double widthInput;
|
||||
double widthError;
|
||||
var controller;
|
||||
TextEditingController controller;
|
||||
var onChanged;
|
||||
bool enabled;
|
||||
bool mandatory;
|
||||
@@ -41,19 +41,12 @@ class InputWithSubtitle extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
List splited = controller.text.trim().split(' ');
|
||||
|
||||
return Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
// Container(
|
||||
// width: widthSubtitle,
|
||||
// padding: const EdgeInsets.symmetric(horizontal: 8.0,vertical: 3),
|
||||
// child: TextDefault(
|
||||
// text: subtitle,
|
||||
// color: ColorPalette.black54,
|
||||
// fontSize: 18,
|
||||
// fontWeigth: FontWeight.bold,
|
||||
// ),
|
||||
// ),
|
||||
TitleInput(title:labelInput),
|
||||
InputText(
|
||||
controller: controller,
|
||||
@@ -65,7 +58,7 @@ class InputWithSubtitle extends StatelessWidget {
|
||||
colorBorder: colorBorder,
|
||||
onChanged: onChanged,
|
||||
),
|
||||
typeInput=='normal'&& controller.text=='' &&(enabled&&mandatory)?ErrorDefault(widthDefault: widthError,error: errorInput,):Container(),
|
||||
typeInput=='normal'&&(enabled&&mandatory) && (labelInput=='Nome' && splited.length<=1) ?ErrorDefault(widthDefault: widthError,error: errorInput,):Container(),
|
||||
typeInput!='normal'&&(enabled&&mandatory)&& errorInput!=''?ErrorDefault(widthDefault: widthError,error: errorInput,):Container(),
|
||||
Divider(color: ColorPalette.black54,height: 5,endIndent: 10,)
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user