ajustes no front e finalizado o salvamento dos dados no DB
This commit is contained in:
@@ -585,7 +585,7 @@ class _RegisterCitizenScreenState extends State<RegisterCitizenScreen> {
|
||||
selectCountry = widget.listData[0]['ID_PAIS_RESID']==33?'BRASIL':'OUTRO';
|
||||
int codCity = widget.listData[0]['ID_MUNICIPIO_RESID'];
|
||||
List listCity = await DBQuerys().buscaMunicipioporId(codCity);
|
||||
cityController.text = listCity[0]['NO_MUNICIPIO'];
|
||||
cityController.text = listCity[0]['NO_MUNICIPIO']+listCity.length!=0?' - SP':'';
|
||||
resultListResid = listCity;
|
||||
codIBGEController.text = listCity[0]['CODIGO_IBGE'];
|
||||
selectVillage = widget.listData[0]['NO_BAIRRO_LOGR'];
|
||||
@@ -800,31 +800,33 @@ class _RegisterCitizenScreenState extends State<RegisterCitizenScreen> {
|
||||
),
|
||||
selectGender==null && mandatory?ErrorDefault():Container(),
|
||||
Container(
|
||||
width: width*0.75,
|
||||
child: Row(
|
||||
children: [
|
||||
GestureDetector(
|
||||
onTap:edit?null: ()=>escolherprazoInicio(context,'birth'),
|
||||
child: Container(
|
||||
alignment: Alignment.centerLeft,
|
||||
height: 58,
|
||||
margin: EdgeInsets.symmetric(horizontal: 15,vertical: 5),
|
||||
padding: EdgeInsets.symmetric(horizontal: 8,vertical: 10),
|
||||
decoration: BoxDecoration(
|
||||
border: Border.all(color: ColorPalette.white),
|
||||
borderRadius: BorderRadius.all(
|
||||
Radius.circular(5.0)
|
||||
),
|
||||
),
|
||||
width: width*0.7,
|
||||
child: TextDefault(
|
||||
text: date,
|
||||
color: Colors.black,
|
||||
fontSize: 16,
|
||||
),
|
||||
),
|
||||
)
|
||||
],
|
||||
width: width*0.7,
|
||||
child: TextDefault(
|
||||
textAlign: TextAlign.start,
|
||||
text: 'Data de Nascimento',
|
||||
color: ColorPalette.black54,
|
||||
fontSize: 12,
|
||||
),
|
||||
),
|
||||
GestureDetector(
|
||||
onTap:edit?null: ()=>escolherprazoInicio(context,'birth'),
|
||||
child: Container(
|
||||
alignment: Alignment.centerLeft,
|
||||
height: 58,
|
||||
margin: EdgeInsets.symmetric(horizontal: 15,vertical: 5),
|
||||
padding: EdgeInsets.symmetric(horizontal: 8,vertical: 10),
|
||||
decoration: BoxDecoration(
|
||||
border: Border.all(color: ColorPalette.white),
|
||||
borderRadius: BorderRadius.all(
|
||||
Radius.circular(5.0)
|
||||
),
|
||||
),
|
||||
width: width*0.7,
|
||||
child: TextDefault(
|
||||
text: date,
|
||||
color: Colors.black,
|
||||
fontSize: 16,
|
||||
),
|
||||
),
|
||||
),
|
||||
date == 'Data de Nascimento'&& mandatory?ErrorDefault():Container(),
|
||||
@@ -1804,6 +1806,15 @@ class _RegisterCitizenScreenState extends State<RegisterCitizenScreen> {
|
||||
mandatory: false,
|
||||
onChanged: (v)=>setState((){}),
|
||||
),
|
||||
Container(
|
||||
width: width*0.7,
|
||||
child: TextDefault(
|
||||
textAlign: TextAlign.start,
|
||||
text: 'RG - Data de Emissão',
|
||||
color: ColorPalette.black54,
|
||||
fontSize: 12,
|
||||
),
|
||||
),
|
||||
GestureDetector(
|
||||
onTap:edit?null: ()=>escolherprazoInicio(context,'rg'),
|
||||
child: Container(
|
||||
@@ -1905,6 +1916,15 @@ class _RegisterCitizenScreenState extends State<RegisterCitizenScreen> {
|
||||
enabled: !edit,
|
||||
onChanged: (v)=>setState((){}),
|
||||
),
|
||||
Container(
|
||||
width: width*0.7,
|
||||
child: TextDefault(
|
||||
textAlign: TextAlign.start,
|
||||
text: 'Data de Emissão da Certidão',
|
||||
color: ColorPalette.black54,
|
||||
fontSize: 12,
|
||||
),
|
||||
),
|
||||
GestureDetector(
|
||||
onTap:edit?null: ()=>escolherprazoInicio(context,'cert'),
|
||||
child: Container(
|
||||
@@ -2076,6 +2096,15 @@ class _RegisterCitizenScreenState extends State<RegisterCitizenScreen> {
|
||||
enabled: !edit,
|
||||
onChanged: (v)=>setState((){}),
|
||||
),
|
||||
Container(
|
||||
width: width*0.7,
|
||||
child: TextDefault(
|
||||
textAlign: TextAlign.start,
|
||||
text: 'Data Óbito',
|
||||
color: ColorPalette.black54,
|
||||
fontSize: 12,
|
||||
),
|
||||
),
|
||||
GestureDetector(
|
||||
onTap:edit?null: ()=>escolherprazoInicio(context,'death'),
|
||||
child: Container(
|
||||
|
||||
Reference in New Issue
Block a user