improvements.

merge-requests/31/head
Sikander Saleem 1 year ago
parent c8f498db6a
commit dd7c866e39

@ -107,6 +107,7 @@ class _CreateServiceReportState extends State<CreateServiceReport> with TickerPr
child: Stack(
children: [
ListView(
padding: const EdgeInsets.all(16),
children: [
//AppNameBar(),
const SizedBox(
@ -673,37 +674,37 @@ class _CreateServiceReportState extends State<CreateServiceReport> with TickerPr
const SizedBox(
height: 8,
),
Row(
children: [
ASubTitle(_subtitle.workPreformed),
Expanded(
child: SizedBox(
height: 32 * AppStyle.getScaleFactor(context),
child: SpeechToTextButton(
controller: _workPreformedController,
mini: true,
),
),
),
],
),
const SizedBox(
height: 4,
),
ATextFormField(
initialValue: _serviceReport?.workPreformed,
textAlign: TextAlign.center,
controller: _workPreformedController,
style: Theme.of(context).textTheme.subtitle1,
validator: (value) => Validator.hasValue(value) ? null : _subtitle.requiredWord,
textInputType: TextInputType.multiline,
onSaved: (value) {
_serviceReport.workPreformed = value;
},
),
const SizedBox(
height: 8,
),
// Row(
// children: [
// ASubTitle(_subtitle.workPreformed),
// Expanded(
// child: SizedBox(
// height: 32 * AppStyle.getScaleFactor(context),
// child: SpeechToTextButton(
// controller: _workPreformedController,
// mini: true,
// ),
// ),
// ),
// ],
// ),
// const SizedBox(
// height: 4,
// ),
// ATextFormField(
// initialValue: _serviceReport?.workPreformed,
// textAlign: TextAlign.center,
// controller: _workPreformedController,
// style: Theme.of(context).textTheme.subtitle1,
// validator: (value) => Validator.hasValue(value) ? null : _subtitle.requiredWord,
// textInputType: TextInputType.multiline,
// onSaved: (value) {
// _serviceReport.workPreformed = value;
// },
// ),
// const SizedBox(
// height: 8,
// ),
const SizedBox(height: 8),
Row(

@ -28,9 +28,9 @@ class ServiceReportFaultDescription extends StatelessWidget {
menuProvider.reset();
await menuProvider.getData(user: userProvider.user, host: settingProvider.host, requestId: requestId);
},
child: menuProvider.items?.isEmpty ?? true
child: (menuProvider.items?.isEmpty ?? true)
? const ATextFormField(
initialValue: "NULL",
initialValue: "",
enable: false,
)
: FaultDescriptionMenu(

Loading…
Cancel
Save