review comment

main_design2.0
nextwo 3 years ago
parent eae8be206e
commit b40727b920

@ -336,7 +336,7 @@ class ServiceRequestsProvider extends ChangeNotifier {
},
)
?.toList(),
"reviewComment": report.reviewComment ?? "",
"reviewComment": "",
"comment": report.comment,
"attachmentsWorkOrder": request.devicePhotos?.map((e) => {"name": e})?.toList(),
"equipmentStatus": report.equipmentStatus?.toMap(),

@ -306,7 +306,7 @@ class CreateRequestPageState extends State<CreateRequestPage> {
Fluttertoast.showToast(msg: _subtitle.pickDevice);
return;
}
if (_serviceRequest.firstAction.name == "Need a visit" && _dateTime == null) {
if (_serviceRequest.firstAction?.name == "Need a visit" && _dateTime == null) {
Fluttertoast.showToast(msg: _subtitle.noDateFound);
return;
}

@ -397,21 +397,21 @@ class _CreateServiceReportState extends State<CreateServiceReport> with TickerPr
),
],
),
if (_showCommentField)
const SizedBox(
height: 8,
),
if (_showCommentField)
ATextFormField(
initialValue: _serviceReport?.reviewComment,
hintText: "Review Comment",
textAlign: TextAlign.center,
style: Theme.of(context).textTheme.titleMedium,
textInputType: TextInputType.multiline,
onSaved: (value) {
_serviceReport.reviewComment = value;
},
),
// if (_showCommentField)
// const SizedBox(
// height: 8,
// ),
// if (_showCommentField)
// ATextFormField(
// initialValue: _serviceReport?.reviewComment,
// hintText: "Review Comment",
// textAlign: TextAlign.center,
// style: Theme.of(context).textTheme.titleMedium,
// textInputType: TextInputType.multiline,
// onSaved: (value) {
// _serviceReport.reviewComment = value;
// },
// ),
SizedBox(
height: 8 * AppStyle.getScaleFactor(context),
),

Loading…
Cancel
Save