|
|
|
|
@ -14,7 +14,6 @@ import 'package:test_sa/controllers/validator/validator.dart';
|
|
|
|
|
import 'package:test_sa/extensions/int_extensions.dart';
|
|
|
|
|
import 'package:test_sa/extensions/widget_extensions.dart';
|
|
|
|
|
import 'package:test_sa/models/device/device.dart';
|
|
|
|
|
import 'package:test_sa/models/lookup.dart';
|
|
|
|
|
import 'package:test_sa/models/service_request/service_request.dart';
|
|
|
|
|
import 'package:test_sa/models/subtitle.dart';
|
|
|
|
|
import 'package:test_sa/views/app_style/colors.dart';
|
|
|
|
|
@ -271,7 +270,7 @@ class CreateRequestPageState extends State<CreateRequestPage> {
|
|
|
|
|
initialValue: _serviceRequest.callComments,
|
|
|
|
|
hintText: _subtitle.maintenanceIssue,
|
|
|
|
|
prefixIconData: FontAwesomeIcons.triangleExclamation,
|
|
|
|
|
style: Theme.of(context).textTheme.headline6,
|
|
|
|
|
style: Theme.of(context).textTheme.titleLarge,
|
|
|
|
|
textInputType: TextInputType.multiline,
|
|
|
|
|
validator: (value) => Validator.hasValue(value) ? null : _subtitle.maintenanceIssueRequired,
|
|
|
|
|
onSaved: (value) {
|
|
|
|
|
@ -286,12 +285,12 @@ class CreateRequestPageState extends State<CreateRequestPage> {
|
|
|
|
|
if (widget.serviceRequest != null)
|
|
|
|
|
ATextFormField(
|
|
|
|
|
controller: _commentController,
|
|
|
|
|
initialValue: _serviceRequest.comment,
|
|
|
|
|
initialValue: _serviceRequest.comments,
|
|
|
|
|
hintText: _subtitle.comment,
|
|
|
|
|
style: Theme.of(context).textTheme.titleMedium,
|
|
|
|
|
textInputType: TextInputType.multiline,
|
|
|
|
|
onSaved: (value) {
|
|
|
|
|
_serviceRequest.comment = value;
|
|
|
|
|
_serviceRequest.comments = value;
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
|