From df6a9a7822ca421b6d18830e6b0bef65b7f58649 Mon Sep 17 00:00:00 2001 From: hussam al-habibeh Date: Tue, 1 Jun 2021 16:30:48 +0300 Subject: [PATCH] hot fix --- lib/screens/prescription/add_favourite_prescription.dart | 3 +-- lib/screens/prescription/add_prescription_form.dart | 4 +++- lib/screens/prescription/prescription_checkout_screen.dart | 4 +++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/screens/prescription/add_favourite_prescription.dart b/lib/screens/prescription/add_favourite_prescription.dart index 7dad10dd..118df049 100644 --- a/lib/screens/prescription/add_favourite_prescription.dart +++ b/lib/screens/prescription/add_favourite_prescription.dart @@ -8,7 +8,6 @@ import 'package:doctor_app_flutter/screens/base/base_view.dart'; import 'package:doctor_app_flutter/screens/prescription/prescription_checkout_screen.dart'; import 'package:doctor_app_flutter/screens/procedures/entity_list_fav_procedure.dart'; import 'package:doctor_app_flutter/util/dr_app_toast_msg.dart'; -import 'package:doctor_app_flutter/util/translations_delegate_base.dart'; import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart'; import 'package:doctor_app_flutter/widgets/shared/buttons/app_buttons_widget.dart'; import 'package:doctor_app_flutter/widgets/shared/network_base_view.dart'; @@ -76,7 +75,7 @@ class _AddFavPrescriptionState extends State { alignment: WrapAlignment.center, children: [ AppButton( - title: 'Add Prescription', + title: 'Add Selected Prescription', color: Color(0xff359846), fontWeight: FontWeight.w700, onPressed: () { diff --git a/lib/screens/prescription/add_prescription_form.dart b/lib/screens/prescription/add_prescription_form.dart index 797d0255..f4761897 100644 --- a/lib/screens/prescription/add_prescription_form.dart +++ b/lib/screens/prescription/add_prescription_form.dart @@ -635,7 +635,9 @@ class _PrescriptionFormWidgetState extends State { size: 35, ), onPressed: () { - initSpeechState().then((value) => {onVoiceText()}); + setState(() { + initSpeechState().then((value) => {onVoiceText()}); + }); }, ), ), diff --git a/lib/screens/prescription/prescription_checkout_screen.dart b/lib/screens/prescription/prescription_checkout_screen.dart index 78c78590..27905b2d 100644 --- a/lib/screens/prescription/prescription_checkout_screen.dart +++ b/lib/screens/prescription/prescription_checkout_screen.dart @@ -559,7 +559,9 @@ class _PrescriptionCheckOutScreenState extends State size: 35, ), onPressed: () { - initSpeechState().then((value) => {onVoiceText()}); + setState(() { + initSpeechState().then((value) => {onVoiceText()}); + }); }, ), ),