ajustes no layout
This commit is contained in:
@@ -183,8 +183,8 @@ class _EditProceduresScreenState extends State<EditProceduresScreen> {
|
|||||||
child: DropDownButtonDefault(
|
child: DropDownButtonDefault(
|
||||||
title: '',
|
title: '',
|
||||||
fontSize: 15,
|
fontSize: 15,
|
||||||
width: width*0.50,
|
width: width*0.4,
|
||||||
widthContainer: width*0.45,
|
widthContainer: width*0.3,
|
||||||
select: selectCBO,
|
select: selectCBO,
|
||||||
list: ConstVariable().itensCBO,
|
list: ConstVariable().itensCBO,
|
||||||
onChanged: (value){
|
onChanged: (value){
|
||||||
|
|||||||
@@ -22,6 +22,8 @@ class _LoginLoadScreenState extends State<LoginLoadScreen> {
|
|||||||
|
|
||||||
var inputUser = TextEditingController();
|
var inputUser = TextEditingController();
|
||||||
var inputPassword = TextEditingController();
|
var inputPassword = TextEditingController();
|
||||||
|
var inputIP = TextEditingController(text: '192.168.0.42');
|
||||||
|
var inputPort = TextEditingController(text: '8010');
|
||||||
String error = '';
|
String error = '';
|
||||||
String? now;
|
String? now;
|
||||||
String? selectCity;
|
String? selectCity;
|
||||||
@@ -41,7 +43,6 @@ class _LoginLoadScreenState extends State<LoginLoadScreen> {
|
|||||||
if(inputUser.text.isNotEmpty && inputPassword.text.isNotEmpty && inputUser.text.length>3 && inputPassword.text.length>3){
|
if(inputUser.text.isNotEmpty && inputPassword.text.isNotEmpty && inputUser.text.length>3 && inputPassword.text.length>3){
|
||||||
if(selectCity!=null){
|
if(selectCity!=null){
|
||||||
_prefService.createCacheModel(inputUser.text,inputPassword.text,selectCity!,mode);
|
_prefService.createCacheModel(inputUser.text,inputPassword.text,selectCity!,mode);
|
||||||
setState(() {
|
|
||||||
error = '';
|
error = '';
|
||||||
loading = true;
|
loading = true;
|
||||||
for(int i=0;ConstVariable().itensCity.length > i;i++){
|
for(int i=0;ConstVariable().itensCity.length > i;i++){
|
||||||
@@ -53,7 +54,10 @@ class _LoginLoadScreenState extends State<LoginLoadScreen> {
|
|||||||
codState = ConstVariable().itensCity[i].codState;
|
codState = ConstVariable().itensCity[i].codState;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
setState(() {});
|
||||||
|
if(inputIP.text.isNotEmpty && inputPort.text.isNotEmpty && mode == 'desenvolvimento'){
|
||||||
|
urlAPI = 'http://${inputIP.text}:${inputPort.text}/api/atb/';
|
||||||
|
}
|
||||||
await ApiDataLoad().apiConect(urlAPI,mode,nameCityApi,inputUser.text).then((response) async {
|
await ApiDataLoad().apiConect(urlAPI,mode,nameCityApi,inputUser.text).then((response) async {
|
||||||
// print("erre : "+response.toString());
|
// print("erre : "+response.toString());
|
||||||
if(response == 'Erro' || response.toString() == 'Error: -902 - I/O error during "open" operation for file "/bases/conectasus/extrema/SISTEMA.FDB" Error while trying to open file No such file or directory'){
|
if(response == 'Erro' || response.toString() == 'Error: -902 - I/O error during "open" operation for file "/bases/conectasus/extrema/SISTEMA.FDB" Error while trying to open file No such file or directory'){
|
||||||
@@ -182,7 +186,7 @@ class _LoginLoadScreenState extends State<LoginLoadScreen> {
|
|||||||
autovalidateMode: AutovalidateMode.onUserInteraction,
|
autovalidateMode: AutovalidateMode.onUserInteraction,
|
||||||
child: Container(
|
child: Container(
|
||||||
width: width*0.6,
|
width: width*0.6,
|
||||||
height: height*0.3,
|
height: mode == 'desenvolvimento'?height*0.4:height*0.3,
|
||||||
child: ListView(
|
child: ListView(
|
||||||
children: [
|
children: [
|
||||||
InputText(
|
InputText(
|
||||||
@@ -213,6 +217,24 @@ class _LoginLoadScreenState extends State<LoginLoadScreen> {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
mode == 'desenvolvimento'?InputText(
|
||||||
|
hint: 'IP',
|
||||||
|
label: 'IP',
|
||||||
|
obscure: false,
|
||||||
|
controller: inputIP,
|
||||||
|
width: width*0.6,
|
||||||
|
colorBorder: Colors.white,
|
||||||
|
onChanged: (v)=>setState((){}),
|
||||||
|
):Container(),
|
||||||
|
mode == 'desenvolvimento'?InputText(
|
||||||
|
hint: 'Porta',
|
||||||
|
label: 'Porta',
|
||||||
|
obscure: false,
|
||||||
|
controller: inputPort,
|
||||||
|
width: width*0.6,
|
||||||
|
colorBorder: Colors.white,
|
||||||
|
onChanged: (v)=>setState((){}),
|
||||||
|
):Container(),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -191,12 +191,12 @@ class _ServiceIndividualScreenState extends State<ServiceIndividualScreen> {
|
|||||||
),
|
),
|
||||||
DropdownWithSubtitle(
|
DropdownWithSubtitle(
|
||||||
list: ConstVariable().typeService2,
|
list: ConstVariable().typeService2,
|
||||||
widthSubtitle: width*0.2,
|
widthSubtitle: width*0.55,
|
||||||
subtitle: 'Tipo de Atendimento',
|
subtitle: 'Tipo de Atendimento',
|
||||||
hintDropdown: 'Tipo de Atendimento',
|
hintDropdown: 'Tipo de Atendimento',
|
||||||
select: selectTypeService,
|
select: selectTypeService,
|
||||||
widthDropdown: width*0.7,
|
widthDropdown: width*0.7,
|
||||||
widthContainerDropdown: width*0.65,
|
widthContainerDropdown: width*0.6,
|
||||||
onChanged: (value){
|
onChanged: (value){
|
||||||
setState(() {
|
setState(() {
|
||||||
selectTypeService = value!;
|
selectTypeService = value!;
|
||||||
@@ -432,18 +432,18 @@ class _ServiceIndividualScreenState extends State<ServiceIndividualScreen> {
|
|||||||
child: Icon(LineIcons.edit,size: 80,),
|
child: Icon(LineIcons.edit,size: 80,),
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 10.0),
|
padding: const EdgeInsets.symmetric(horizontal: 0.0),
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
children: [
|
||||||
DropdownWithSubtitle(
|
DropdownWithSubtitle(
|
||||||
list: ['ATENÇÃO DOMICILIAR 1','ATENÇÃO DOMICILIAR 2','ATENÇÃO DOMICILIAR 3',],
|
list: ['ATENÇÃO DOMICILIAR 1','ATENÇÃO DOMICILIAR 2','ATENÇÃO DOMICILIAR 3',],
|
||||||
widthSubtitle: width*0.2,
|
widthSubtitle: width*0.5,
|
||||||
subtitle: 'Modalidade',
|
subtitle: 'Modalidade',
|
||||||
hintDropdown:'Modalidade',
|
hintDropdown:'Modalidade',
|
||||||
select: selectModelService,
|
select: selectModelService,
|
||||||
widthDropdown: width*0.65,
|
widthDropdown: width*0.7,
|
||||||
widthContainerDropdown: width*0.6,
|
widthContainerDropdown: width*0.6,
|
||||||
onChanged: (value)=>setState(()=>selectModelService = value!),
|
onChanged: (value)=>setState(()=>selectModelService = value!),
|
||||||
colorBorder: ColorPalette.white,
|
colorBorder: ColorPalette.white,
|
||||||
@@ -685,11 +685,11 @@ class _ServiceIndividualScreenState extends State<ServiceIndividualScreen> {
|
|||||||
'AYURVEDA',
|
'AYURVEDA',
|
||||||
'OUTROS',
|
'OUTROS',
|
||||||
],
|
],
|
||||||
widthSubtitle: width*0.2,
|
widthSubtitle: width*0.5,
|
||||||
subtitle: 'Racionalidade em Saúde',
|
subtitle: 'Racionalidade em Saúde',
|
||||||
hintDropdown: 'Racionalidade em Saúde',
|
hintDropdown: 'Racionalidade em Saúde',
|
||||||
select: selectRationalityHealth,
|
select: selectRationalityHealth,
|
||||||
widthDropdown: width*0.65,
|
widthDropdown: width*0.7,
|
||||||
widthContainerDropdown: width*0.6,
|
widthContainerDropdown: width*0.6,
|
||||||
onChanged: (value)=>setState(()=>selectRationalityHealth = value!),
|
onChanged: (value)=>setState(()=>selectRationalityHealth = value!),
|
||||||
colorBorder: ColorPalette.white,
|
colorBorder: ColorPalette.white,
|
||||||
|
|||||||
Reference in New Issue
Block a user