@ -209,6 +209,10 @@ class _PrescriptionFormWidgetState extends State<PrescriptionFormWidget> {
) = >
NetworkBaseView (
baseViewModel: model ,
child: GestureDetector (
onTap: ( ) {
FocusScope . of ( context ) . requestFocus ( new FocusNode ( ) ) ;
} ,
child: DraggableScrollableSheet (
initialChildSize: 0.90 ,
maxChildSize: 0.90 ,
@ -243,6 +247,7 @@ class _PrescriptionFormWidgetState extends State<PrescriptionFormWidget> {
child: InkWell (
onTap: model . allMedicationList ! = null
? ( ) {
Helpers . hideKeyboard ( context ) ;
setState ( ( ) {
_selectedMedication = null ;
} ) ;
@ -377,6 +382,7 @@ class _PrescriptionFormWidgetState extends State<PrescriptionFormWidget> {
onTap: model . medicationStrengthList ! =
null
? ( ) {
Helpers . hideKeyboard ( context ) ;
ListSelectDialog dialog =
ListSelectDialog (
list: model
@ -424,6 +430,7 @@ class _PrescriptionFormWidgetState extends State<PrescriptionFormWidget> {
child: InkWell (
onTap: model . medicationRouteList ! = null
? ( ) {
Helpers . hideKeyboard ( context ) ;
ListSelectDialog dialog =
ListSelectDialog (
list: model . medicationRouteList ,
@ -468,6 +475,7 @@ class _PrescriptionFormWidgetState extends State<PrescriptionFormWidget> {
child: InkWell (
onTap: model . medicationFrequencyList ! = null
? ( ) {
Helpers . hideKeyboard ( context ) ;
ListSelectDialog dialog =
ListSelectDialog (
list:
@ -509,6 +517,7 @@ class _PrescriptionFormWidgetState extends State<PrescriptionFormWidget> {
child: InkWell (
onTap: model . medicationDoseTimeList ! = null
? ( ) {
Helpers . hideKeyboard ( context ) ;
ListSelectDialog dialog =
ListSelectDialog (
list:
@ -552,6 +561,7 @@ class _PrescriptionFormWidgetState extends State<PrescriptionFormWidget> {
child: InkWell (
onTap: indicationList ! = null
? ( ) {
Helpers . hideKeyboard ( context ) ;
ListSelectDialog dialog =
ListSelectDialog (
list: indicationList ,
@ -669,6 +679,7 @@ class _PrescriptionFormWidgetState extends State<PrescriptionFormWidget> {
child: InkWell (
onTap: model . medicationDurationList ! = null
? ( ) {
Helpers . hideKeyboard ( context ) ;
ListSelectDialog dialog =
ListSelectDialog (
list:
@ -830,10 +841,12 @@ class _PrescriptionFormWidgetState extends State<PrescriptionFormWidget> {
) ;
} ) ,
) ,
) ,
) ;
}
selectDate ( BuildContext context , PrescriptionViewModel model ) async {
Helpers . hideKeyboard ( context ) ;
DateTime selectedDate ;
selectedDate = DateTime . now ( ) ;
final DateTime picked = await showDatePicker (