diff --git a/lib/screens/edit_procedures_screen.dart b/lib/screens/edit_procedures_screen.dart index 02480a4..8fc63c9 100644 --- a/lib/screens/edit_procedures_screen.dart +++ b/lib/screens/edit_procedures_screen.dart @@ -183,8 +183,8 @@ class _EditProceduresScreenState extends State { child: DropDownButtonDefault( title: '', fontSize: 15, - width: width*0.50, - widthContainer: width*0.45, + width: width*0.4, + widthContainer: width*0.3, select: selectCBO, list: ConstVariable().itensCBO, onChanged: (value){ diff --git a/lib/screens/login/login_load_screen.dart b/lib/screens/login/login_load_screen.dart index a927e9e..1b2ae19 100644 --- a/lib/screens/login/login_load_screen.dart +++ b/lib/screens/login/login_load_screen.dart @@ -22,6 +22,8 @@ class _LoginLoadScreenState extends State { var inputUser = TextEditingController(); var inputPassword = TextEditingController(); + var inputIP = TextEditingController(text: '192.168.0.42'); + var inputPort = TextEditingController(text: '8010'); String error = ''; String? now; String? selectCity; @@ -41,7 +43,6 @@ class _LoginLoadScreenState extends State { if(inputUser.text.isNotEmpty && inputPassword.text.isNotEmpty && inputUser.text.length>3 && inputPassword.text.length>3){ if(selectCity!=null){ _prefService.createCacheModel(inputUser.text,inputPassword.text,selectCity!,mode); - setState(() { error = ''; loading = true; for(int i=0;ConstVariable().itensCity.length > i;i++){ @@ -53,7 +54,10 @@ class _LoginLoadScreenState extends State { 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 { // 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'){ @@ -182,7 +186,7 @@ class _LoginLoadScreenState extends State { autovalidateMode: AutovalidateMode.onUserInteraction, child: Container( width: width*0.6, - height: height*0.3, + height: mode == 'desenvolvimento'?height*0.4:height*0.3, child: ListView( children: [ InputText( @@ -213,6 +217,24 @@ class _LoginLoadScreenState extends State { }); }, ), + 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(), ], ), ), diff --git a/lib/screens/select_service/service_individual_screen.dart b/lib/screens/select_service/service_individual_screen.dart index 87a26b7..c2a72d5 100644 --- a/lib/screens/select_service/service_individual_screen.dart +++ b/lib/screens/select_service/service_individual_screen.dart @@ -191,12 +191,12 @@ class _ServiceIndividualScreenState extends State { ), DropdownWithSubtitle( list: ConstVariable().typeService2, - widthSubtitle: width*0.2, + widthSubtitle: width*0.55, subtitle: 'Tipo de Atendimento', hintDropdown: 'Tipo de Atendimento', select: selectTypeService, widthDropdown: width*0.7, - widthContainerDropdown: width*0.65, + widthContainerDropdown: width*0.6, onChanged: (value){ setState(() { selectTypeService = value!; @@ -432,18 +432,18 @@ class _ServiceIndividualScreenState extends State { child: Icon(LineIcons.edit,size: 80,), ), Padding( - padding: const EdgeInsets.symmetric(horizontal: 10.0), + padding: const EdgeInsets.symmetric(horizontal: 0.0), child: Column( mainAxisAlignment: MainAxisAlignment.start, mainAxisSize: MainAxisSize.min, children: [ DropdownWithSubtitle( list: ['ATENÇÃO DOMICILIAR 1','ATENÇÃO DOMICILIAR 2','ATENÇÃO DOMICILIAR 3',], - widthSubtitle: width*0.2, + widthSubtitle: width*0.5, subtitle: 'Modalidade', hintDropdown:'Modalidade', select: selectModelService, - widthDropdown: width*0.65, + widthDropdown: width*0.7, widthContainerDropdown: width*0.6, onChanged: (value)=>setState(()=>selectModelService = value!), colorBorder: ColorPalette.white, @@ -685,11 +685,11 @@ class _ServiceIndividualScreenState extends State { 'AYURVEDA', 'OUTROS', ], - widthSubtitle: width*0.2, + widthSubtitle: width*0.5, subtitle: 'Racionalidade em Saúde', hintDropdown: 'Racionalidade em Saúde', select: selectRationalityHealth, - widthDropdown: width*0.65, + widthDropdown: width*0.7, widthContainerDropdown: width*0.6, onChanged: (value)=>setState(()=>selectRationalityHealth = value!), colorBorder: ColorPalette.white,