ajustes para exibir e salvos dados no cadastro individual e visita domiciliar
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
import 'package:line_icons/line_icons.dart';
|
||||
import 'package:rkm/screens/home_screen.dart';
|
||||
import '../../config/color_palette.dart';
|
||||
import '../../config/const_variable.dart';
|
||||
import '../../models/check_model.dart';
|
||||
@@ -85,9 +86,11 @@ class _HomeVisitScreenState extends State<HomeVisitScreen> {
|
||||
escolherprazoInicio(BuildContext context) async {
|
||||
var pickDate = await showDatePicker(
|
||||
context: context,
|
||||
locale: Locale('pt','BR'),
|
||||
initialDate: DateTime.now(),
|
||||
firstDate: DateTime(2022),
|
||||
lastDate: DateTime(2025));
|
||||
lastDate: DateTime.now()
|
||||
);
|
||||
if (pickDate != null) {
|
||||
setState(() {
|
||||
dateDB = '${pickDate.year}-${pickDate.month<10?'0':''}${pickDate.month}-${pickDate.day<10?'0':''}${pickDate.day}';
|
||||
@@ -378,6 +381,7 @@ class _HomeVisitScreenState extends State<HomeVisitScreen> {
|
||||
'Visita Domiciliar realizada com sucesso!',
|
||||
'OK'
|
||||
);
|
||||
Navigator.pushAndRemoveUntil(context, MaterialPageRoute(builder: (context)=>HomeScreen(username: widget.username)), (route) => false);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -578,7 +582,7 @@ class _HomeVisitScreenState extends State<HomeVisitScreen> {
|
||||
TitleContainers(title: 'Acompanhamento',width: width*0.7,textAling: TextAlign.start,fontSize: 15),
|
||||
Container(
|
||||
width: width*0.7,
|
||||
height: heigth*1.15,
|
||||
height: heigth*0.85,
|
||||
child: ListView.builder(
|
||||
physics: const NeverScrollableScrollPhysics(),
|
||||
itemCount: ConstVariable().tipoAcompanhamentoModel.length,
|
||||
|
||||
@@ -22,6 +22,7 @@ import '../../widgets/input_with_subtitle.dart';
|
||||
import '../../widgets/onbackbutton.dart';
|
||||
import '../../widgets/text_default.dart';
|
||||
import '../../widgets/title_containers.dart';
|
||||
import '../home_screen.dart';
|
||||
|
||||
class ServiceHomeScreen extends StatefulWidget {
|
||||
String name;
|
||||
@@ -286,6 +287,7 @@ class _ServiceHomeScreenState extends State<ServiceHomeScreen> {
|
||||
'Atendimento Domiciliar salvo com sucesso!',
|
||||
'OK'
|
||||
);
|
||||
Navigator.pushAndRemoveUntil(context, MaterialPageRoute(builder: (context)=>HomeScreen(username: widget.username)), (route) => false);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -531,7 +533,7 @@ class _ServiceHomeScreenState extends State<ServiceHomeScreen> {
|
||||
TitleContainers(title: 'Condição Avaliada',width: width * 0.73),
|
||||
Container(
|
||||
width: width*0.7,
|
||||
height: heigth*1.3,
|
||||
height: heigth*0.95,
|
||||
child: ListView.builder(
|
||||
physics: const NeverScrollableScrollPhysics(),
|
||||
itemCount: ConstVariable().serviceHomeCheckConditionlist.length,
|
||||
@@ -633,7 +635,7 @@ class _ServiceHomeScreenState extends State<ServiceHomeScreen> {
|
||||
padding: const EdgeInsets.symmetric(horizontal: 10.0),
|
||||
child: Container(
|
||||
width: width*0.7,
|
||||
height: heigth*1.2,
|
||||
height: heigth*0.9,
|
||||
child: ListView.builder(
|
||||
physics: const NeverScrollableScrollPhysics(),
|
||||
itemCount: ConstVariable().serviceHomeCheckProclist.length,
|
||||
|
||||
Reference in New Issue
Block a user