ajustes para exibir e salvos dados no cadastro individual e visita domiciliar
This commit is contained in:
@@ -153,12 +153,11 @@ class _RegisterCitizenScreenState extends State<RegisterCitizenScreen> {
|
||||
locale: Locale('pt','BR'),
|
||||
initialDate: DateTime.now(),
|
||||
firstDate: DateTime(1900),
|
||||
lastDate: DateTime(DateTime.now().year,12,31)
|
||||
lastDate: DateTime.now()
|
||||
);
|
||||
if (pickDate != null) {
|
||||
setState(() {
|
||||
if(type == 'birth'){
|
||||
|
||||
dateDB = '${pickDate.year}-${pickDate.month<10?'0':''}${pickDate.month}-${pickDate.day<10?'0':''}${pickDate.day}';
|
||||
date = formatData(year: pickDate.year, month: pickDate.month, day: pickDate.day);
|
||||
}
|
||||
@@ -345,7 +344,8 @@ class _RegisterCitizenScreenState extends State<RegisterCitizenScreen> {
|
||||
}
|
||||
|
||||
//ok
|
||||
if(nameController.text.isEmpty ||
|
||||
if( nameController.text.isEmpty ||
|
||||
!nameController.text.contains(' ') ||
|
||||
selectGender==null ||
|
||||
selectNaturality==null ||
|
||||
selectBreed==null ||
|
||||
|
||||
Reference in New Issue
Block a user