diff --git a/lib/controllers/providers/api/service_requests_provider.dart b/lib/controllers/providers/api/service_requests_provider.dart index 41c75d37..645a8a09 100644 --- a/lib/controllers/providers/api/service_requests_provider.dart +++ b/lib/controllers/providers/api/service_requests_provider.dart @@ -239,6 +239,12 @@ class ServiceRequestsProvider extends ChangeNotifier { final List callSiteContacts = (serviceRequest['callSiteContactPerson'] as List); final Map callSiteContactPerson = callSiteContacts.isEmpty ? {} : callSiteContacts[0]; Response response; + try { + if ((request.audio ?? "").isNotEmpty) { + request.audio = request.audio.substring(request.audio.indexOf("=") + 1, request.audio.length); + } + } catch (ex) {} + var body = { "id": request.id, "callNo": serviceRequest['callNo'], diff --git a/lib/new_views/common_widgets/app_filled_button.dart b/lib/new_views/common_widgets/app_filled_button.dart index b20672a2..4736ad10 100644 --- a/lib/new_views/common_widgets/app_filled_button.dart +++ b/lib/new_views/common_widgets/app_filled_button.dart @@ -28,7 +28,13 @@ class AppFilledButton extends StatelessWidget { width: maxWidth ? double.infinity : null, alignment: Alignment.center, decoration: BoxDecoration(borderRadius: BorderRadius.circular(10), color: buttonColor ?? AppColor.blueStatus(context)), - child: label.heading6(context).custom(color: textColor ?? AppColor.background(context)), + child: loading + ? SizedBox( + width: 40, + height: 40, + child: CircularProgressIndicator(color: textColor ?? AppColor.background(context)), + ) + : label.heading6(context).custom(color: textColor ?? AppColor.background(context)), ).onPress(onPressed); } } diff --git a/lib/views/pages/user/requests/first_action_bottom_sheet.dart b/lib/views/pages/user/requests/first_action_bottom_sheet.dart index 0a12a6d3..f0fe1dc5 100644 --- a/lib/views/pages/user/requests/first_action_bottom_sheet.dart +++ b/lib/views/pages/user/requests/first_action_bottom_sheet.dart @@ -120,6 +120,9 @@ class _FirstActionBottomSheetState extends State { labelText: context.translation.comments, textInputType: TextInputType.multiline, alignLabelWithHint: true, + onChange: (text) { + _serviceRequest.comments = text; + }, onSaved: (text) { _serviceRequest.comments = text; },