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 Map<String, dynamic> 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'],

@ -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);
}
}

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

Loading…
Cancel
Save