correção visita_domiciliar_tela.dart, register_citizen_screen.dart e register_individual_screen.dart
This commit is contained in:
@@ -6,14 +6,14 @@ import 'package:rkm/screens/select_service/consumption_markers_screen.dart';
|
||||
import 'package:rkm/screens/select_service/eligibility_assessment_screen.dart';
|
||||
import 'package:rkm/screens/select_service/procedures_screen.dart';
|
||||
import 'package:rkm/screens/select_service/service_dental_screen.dart';
|
||||
import 'package:rkm/screens/select_service/service_home_screen.dart';
|
||||
import 'package:rkm/screens/select_service/atendimento_domiciliar_tela.dart';
|
||||
import 'package:rkm/screens/select_service/service_individual_screen.dart';
|
||||
import 'package:rkm/widgets/button_default.dart';
|
||||
import 'package:rkm/widgets/dropdown_button_com_pesquisa.dart';
|
||||
import 'package:rkm/widgets/switch_with_subtitle.dart';
|
||||
import 'package:rkm/widgets/text_default.dart';
|
||||
import 'package:rkm/widgets/title_containers.dart';
|
||||
import '../screens/select_service/home_visit_screen.dart';
|
||||
import '../screens/select_service/visita_domiciliar_tela.dart';
|
||||
import 'dropdown_button_default.dart';
|
||||
import 'input_search_text.dart';
|
||||
class AlertDialogDefault {
|
||||
@@ -85,6 +85,41 @@ class AlertDialogDefault {
|
||||
);
|
||||
}
|
||||
|
||||
sucess(BuildContext context,String title,String subtitle,String textButtom, var onPressed) {
|
||||
|
||||
double width = MediaQuery.of(context).size.width;
|
||||
double height = MediaQuery.of(context).size.height;
|
||||
|
||||
return showDialog(
|
||||
context: context,
|
||||
builder: (context){
|
||||
return AlertDialog(
|
||||
title: TextDefault(
|
||||
text: title,
|
||||
color: ColorPalette.black54,
|
||||
textAlign: TextAlign.center,
|
||||
fontWeigth: FontWeight.bold,
|
||||
),
|
||||
content: TextDefault(
|
||||
text: subtitle,
|
||||
color: ColorPalette.black54,
|
||||
maxLines: 4,
|
||||
),
|
||||
actions: [
|
||||
ButtonDefault(
|
||||
onPressed: onPressed,
|
||||
title: textButtom,
|
||||
width: width*0.85,
|
||||
textColor: ColorPalette.white,
|
||||
borderColor: ColorPalette.appBar,
|
||||
background: ColorPalette.appBar,
|
||||
)
|
||||
],
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
alertSelect(BuildContext context,String name,String username, var dataPatient) {
|
||||
//Cadastro e edição do Cadastro do Cidadão, Cadastro Individual, Cadastro Domiciliar e Visita Domiciliar
|
||||
List list = [
|
||||
@@ -95,7 +130,7 @@ class AlertDialogDefault {
|
||||
// 'Ficha Complementar',
|
||||
// 'Marcadores de Consumo',
|
||||
// 'Procedimentos',
|
||||
'Visita domiciliar',
|
||||
'Visita Domiciliar',
|
||||
];
|
||||
|
||||
double width = MediaQuery.of(context).size.width;
|
||||
@@ -126,12 +161,12 @@ class AlertDialogDefault {
|
||||
if(index==0){
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(builder:(context) => ServiceHomeScreen(name: name,username: username,)),
|
||||
MaterialPageRoute(builder:(context) => AtendimentoDomiciliarTela(name: name,username: username,)),
|
||||
);
|
||||
}else if(index == 1){
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(builder:(context) => HomeVisitScreen(name: name,username: username,)),
|
||||
MaterialPageRoute(builder:(context) => VisitaDomiciliarTela(name: name,username: username,)),
|
||||
);
|
||||
// Navigator.push(
|
||||
// context,
|
||||
@@ -165,7 +200,7 @@ class AlertDialogDefault {
|
||||
}else if (index==7){
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(builder:(context) => HomeVisitScreen(name: name,username: username,)),
|
||||
MaterialPageRoute(builder:(context) => VisitaDomiciliarTela(name: name,username: username,)),
|
||||
);
|
||||
}
|
||||
},
|
||||
@@ -458,7 +493,7 @@ class AlertDialogDefault {
|
||||
String? selectProfessionals,
|
||||
String? selectCBO,
|
||||
String add,
|
||||
List list,
|
||||
List listProcProfissional,
|
||||
List listProc,
|
||||
) {
|
||||
|
||||
@@ -498,22 +533,22 @@ class AlertDialogDefault {
|
||||
}),
|
||||
select: selectProfessionals,
|
||||
title: '',
|
||||
list: list,
|
||||
list: listProcProfissional,
|
||||
width: width*0.8,
|
||||
widthContainer: width*0.75,
|
||||
),
|
||||
ButtonDefault(
|
||||
onPressed:(){
|
||||
listProc.add(selectProfessionals);
|
||||
setState((){});
|
||||
},
|
||||
title: 'Adicionar',
|
||||
width: width*0.8,
|
||||
textColor: ColorPalette.white,
|
||||
borderColor:ColorPalette.appBar,
|
||||
background: ColorPalette.appBar,
|
||||
disableColor: ColorPalette.buttonDisable,
|
||||
)
|
||||
// ButtonDefault(
|
||||
// onPressed:(){
|
||||
// listProc.add(selectProfessionals);
|
||||
// setState((){});
|
||||
// },
|
||||
// title: 'Adicionar',
|
||||
// width: width*0.8,
|
||||
// textColor: ColorPalette.white,
|
||||
// borderColor:ColorPalette.appBar,
|
||||
// background: ColorPalette.appBar,
|
||||
// disableColor: ColorPalette.buttonDisable,
|
||||
// )
|
||||
],
|
||||
),
|
||||
),
|
||||
@@ -522,7 +557,7 @@ class AlertDialogDefault {
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
TitleContainers(title: 'Procedimentos'),
|
||||
list.length!=0
|
||||
listProcProfissional.length!=0
|
||||
?Container(
|
||||
width: width*0.8,
|
||||
height: listProc.length*70,
|
||||
@@ -548,6 +583,7 @@ class AlertDialogDefault {
|
||||
onPressed: () =>
|
||||
setState(() {
|
||||
listProc.removeAt(index);
|
||||
setState((){});
|
||||
}),
|
||||
)
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user