criação dos dados na tela visita domiciliar
This commit is contained in:
@@ -6,6 +6,7 @@ import 'package:rkm/widgets/button_default.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 'dropdown_button_default.dart';
|
||||
import 'input_search_text.dart';
|
||||
class AlertDialogDefault {
|
||||
@@ -124,13 +125,18 @@ class AlertDialogDefault {
|
||||
|
||||
return ListTile(
|
||||
onTap: (){
|
||||
if(index!=0){
|
||||
Navigator.pushNamed(context, routes[index]);
|
||||
}else{
|
||||
if(index==0){
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(builder:(context) => ServiceHomeScreen(name: name,)),
|
||||
);
|
||||
}else if (index==7){
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(builder:(context) => HomeVisitScreen(name: name,)),
|
||||
);
|
||||
}else{
|
||||
Navigator.pushNamed(context, routes[index]);
|
||||
}
|
||||
},
|
||||
tileColor: rest==0?ColorPalette.white:ColorPalette.appBar,
|
||||
|
||||
@@ -35,7 +35,7 @@ class CheckBoxTwoSubtitle extends StatelessWidget {
|
||||
),
|
||||
Container(
|
||||
width: width/2.5,
|
||||
child: TextDefault(text: subtitle1,fontSize: 15,color: ColorPalette.black54,)
|
||||
child: TextDefault(text: subtitle1,fontSize: 14,color: ColorPalette.black54,)
|
||||
),
|
||||
Spacer(),
|
||||
Checkbox(
|
||||
@@ -44,7 +44,7 @@ class CheckBoxTwoSubtitle extends StatelessWidget {
|
||||
),
|
||||
Container(
|
||||
width: width/3,
|
||||
child: TextDefault(text: subtitle2,fontSize: 15,color: ColorPalette.black54)
|
||||
child: TextDefault(text: subtitle2,fontSize: 14,color: ColorPalette.black54)
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -21,7 +21,7 @@ class SwitchWithSubtitle extends StatelessWidget {
|
||||
width: width,
|
||||
child: Row(
|
||||
children: [
|
||||
TextDefault(text: title,color: ColorPalette.black54,fontSize: 18),
|
||||
TextDefault(text: title,color: Colors.black,fontSize: 15),
|
||||
Spacer(),
|
||||
Switch(
|
||||
value: value,
|
||||
|
||||
@@ -7,11 +7,13 @@ class TitleContainers extends StatelessWidget {
|
||||
String title;
|
||||
double width;
|
||||
TextAlign textAling;
|
||||
double fontSize;
|
||||
|
||||
TitleContainers({
|
||||
required this.title,
|
||||
this.width = double.infinity,
|
||||
this.textAling = TextAlign.center
|
||||
this.textAling = TextAlign.center,
|
||||
this.fontSize = 20
|
||||
});
|
||||
|
||||
@override
|
||||
@@ -20,7 +22,7 @@ class TitleContainers extends StatelessWidget {
|
||||
padding: textAling!=TextAlign.center?EdgeInsets.all(10):ConstVariable().marginHightInput,
|
||||
width: width,
|
||||
color: ColorPalette.titleContainer,
|
||||
child: TextDefault(text: title,fontWeigth: FontWeight.bold,textAlign: textAling,color: ColorPalette.black54,),
|
||||
child: TextDefault(text: title,fontWeigth: FontWeight.bold,textAlign: textAling,color: ColorPalette.black54,fontSize: fontSize),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user