voice note issue fix in update

main_design2.0
Sikander Saleem 2 years ago
parent 7d41050713
commit 965ccc3c9f

@ -239,6 +239,12 @@ class ServiceRequestsProvider extends ChangeNotifier {
final List callSiteContacts = (serviceRequest['callSiteContactPerson'] as List); final List callSiteContacts = (serviceRequest['callSiteContactPerson'] as List);
final Map<String, dynamic> callSiteContactPerson = callSiteContacts.isEmpty ? {} : callSiteContacts[0]; final Map<String, dynamic> callSiteContactPerson = callSiteContacts.isEmpty ? {} : callSiteContacts[0];
Response response; Response response;
try {
if ((request.audio ?? "").isNotEmpty) {
request.audio = request.audio.substring(request.audio.indexOf("=") + 1, request.audio.length);
}
} catch (ex) {}
var body = { var body = {
"id": request.id, "id": request.id,
"callNo": serviceRequest['callNo'], "callNo": serviceRequest['callNo'],

@ -28,7 +28,13 @@ class AppFilledButton extends StatelessWidget {
width: maxWidth ? double.infinity : null, width: maxWidth ? double.infinity : null,
alignment: Alignment.center, alignment: Alignment.center,
decoration: BoxDecoration(borderRadius: BorderRadius.circular(10), color: buttonColor ?? AppColor.blueStatus(context)), 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); ).onPress(onPressed);
} }
} }

@ -120,6 +120,9 @@ class _FirstActionBottomSheetState extends State<FirstActionBottomSheet> {
labelText: context.translation.comments, labelText: context.translation.comments,
textInputType: TextInputType.multiline, textInputType: TextInputType.multiline,
alignLabelWithHint: true, alignLabelWithHint: true,
onChange: (text) {
_serviceRequest.comments = text;
},
onSaved: (text) { onSaved: (text) {
_serviceRequest.comments = text; _serviceRequest.comments = text;
}, },

Loading…
Cancel
Save