Dev_3.3_MedicalReportCR
haroon amjad 3 years ago
parent 7702960bb5
commit e64a91855f

@ -24,7 +24,9 @@ class MedicalReports extends StatelessWidget {
message: TranslationBase.of(context).confirmMsgReport, message: TranslationBase.of(context).confirmMsgReport,
onTap: () => reportsViewModel.insertRequestForMedicalReport(model, TranslationBase.of(context).successSendReport), onTap: () => reportsViewModel.insertRequestForMedicalReport(model, TranslationBase.of(context).successSendReport),
), ),
); ).then((value) {
Navigator.pop(context);
});
return; return;
} }

@ -50,6 +50,7 @@ class RadioSelectionDialogState extends State<RadioSelectionDialog> {
insetPadding: EdgeInsets.only(left: 21, right: 21), insetPadding: EdgeInsets.only(left: 21, right: 21),
child: Padding( child: Padding(
padding: EdgeInsets.only(left: 20, right: 20, top: 18, bottom: 28), padding: EdgeInsets.only(left: 20, right: 20, top: 18, bottom: 28),
child: SingleChildScrollView(
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
@ -82,7 +83,8 @@ class RadioSelectionDialogState extends State<RadioSelectionDialog> {
TranslationBase.of(context).pleaseSelectFromBelowOptions, TranslationBase.of(context).pleaseSelectFromBelowOptions,
style: TextStyle(fontSize: 14, fontWeight: FontWeight.w600, color: Color(0xff2B353E), letterSpacing: -0.56), style: TextStyle(fontSize: 14, fontWeight: FontWeight.w600, color: Color(0xff2B353E), letterSpacing: -0.56),
), ),
widget.isShowSearch ? Padding( widget.isShowSearch
? Padding(
padding: const EdgeInsets.all(8.0), padding: const EdgeInsets.all(8.0),
child: TextField( child: TextField(
controller: controller, controller: controller,
@ -107,12 +109,14 @@ class RadioSelectionDialogState extends State<RadioSelectionDialog> {
contentPadding: EdgeInsets.all(12), contentPadding: EdgeInsets.all(12),
), ),
), ),
) : Container(), )
: Container(),
SizedBox(height: widget.isScrollable ? 12 : 0), SizedBox(height: widget.isScrollable ? 12 : 0),
SizedBox( SizedBox(
height: widget.isScrollable ? MediaQuery.of(context).size.height * .4 : null, height: widget.isScrollable ? MediaQuery.of(context).size.height * .4 : null,
child: ListView.separated( child: ListView.separated(
physics: widget.isScrollable ? BouncingScrollPhysics() : NeverScrollableScrollPhysics(), physics: widget.isScrollable ? BouncingScrollPhysics() : NeverScrollableScrollPhysics(),
// shrinkWrap: !widget.isScrollable,
shrinkWrap: !widget.isScrollable, shrinkWrap: !widget.isScrollable,
padding: EdgeInsets.only(bottom: widget.isScrollable ? 21 : 42, top: 10), padding: EdgeInsets.only(bottom: widget.isScrollable ? 21 : 42, top: 10),
itemBuilder: (context, index) { itemBuilder: (context, index) {
@ -151,7 +155,7 @@ class RadioSelectionDialogState extends State<RadioSelectionDialog> {
); );
}, },
separatorBuilder: (context, index) => SizedBox(height: 10), separatorBuilder: (context, index) => SizedBox(height: 10),
itemCount: widget.listData.length), itemCount: tempListData.length),
), ),
SizedBox(height: widget.isScrollable ? 12 : 0), SizedBox(height: widget.isScrollable ? 12 : 0),
Row( Row(
@ -172,6 +176,7 @@ class RadioSelectionDialogState extends State<RadioSelectionDialog> {
], ],
), ),
), ),
),
); );
} }
} }

Loading…
Cancel
Save