|
|
|
@ -72,20 +72,21 @@ class _CostDetailFormScreenState extends State<CostDetailFormScreen> with Ticker
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
// AppTextFormField(
|
|
|
|
AppTextFormField(
|
|
|
|
// labelText: "Spare Part Cost",
|
|
|
|
labelText: "Spare Part Cost",
|
|
|
|
// backgroundColor: AppColor.neutral100,
|
|
|
|
backgroundColor: AppColor.neutral100,
|
|
|
|
// initialValue: requestDetailProvider.workOrderCostModel?.sparePartCost?.toString(),
|
|
|
|
initialValue: requestDetailProvider.workOrderCostModel?.sparePartCost?.toString(),
|
|
|
|
// textAlign: TextAlign.center,
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
// labelStyle: AppTextStyles.textFieldLabelStyle,
|
|
|
|
enable: false,
|
|
|
|
// textInputType: TextInputType.number,
|
|
|
|
labelStyle: AppTextStyles.textFieldLabelStyle,
|
|
|
|
// showShadow: false,
|
|
|
|
textInputType: TextInputType.number,
|
|
|
|
// onChange: (value) {
|
|
|
|
showShadow: false,
|
|
|
|
// requestDetailProvider.workOrderCostModel?.sparePartCost = num.parse(value);
|
|
|
|
onChange: (value) {
|
|
|
|
// },
|
|
|
|
requestDetailProvider.workOrderCostModel?.sparePartCost = num.parse(value);
|
|
|
|
// style: Theme.of(context).textTheme.titleMedium,
|
|
|
|
},
|
|
|
|
// ),
|
|
|
|
style: Theme.of(context).textTheme.titleMedium,
|
|
|
|
// 8.height,
|
|
|
|
),
|
|
|
|
|
|
|
|
8.height,
|
|
|
|
AppTextFormField(
|
|
|
|
AppTextFormField(
|
|
|
|
initialValue: requestDetailProvider.workOrderCostModel?.labourCost?.toString(),
|
|
|
|
initialValue: requestDetailProvider.workOrderCostModel?.labourCost?.toString(),
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
|