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

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

Loading…
Cancel
Save