number keyboard replaced with decimal

design_3.0_task_module_new
Sikander Saleem 4 months ago
parent afe0d45d86
commit fb6641f880

@ -89,7 +89,7 @@ class _CostDetailFormScreenState extends State<CostDetailFormScreen> with Ticker
initialValue: requestDetailProvider.workOrderCostModel?.labourCost?.toString(),
textAlign: TextAlign.center,
labelStyle: AppTextStyles.textFieldLabelStyle,
textInputType: TextInputType.number,
textInputType:const TextInputType.numberWithOptions(decimal: true),
showShadow: false,
onChange: (value) {
requestDetailProvider.workOrderCostModel?.labourCost = num.parse(value);
@ -103,7 +103,7 @@ class _CostDetailFormScreenState extends State<CostDetailFormScreen> with Ticker
initialValue: requestDetailProvider.workOrderCostModel?.travelCost?.toString(),
textAlign: TextAlign.center,
labelStyle: AppTextStyles.textFieldLabelStyle,
textInputType: TextInputType.number,
textInputType: const TextInputType.numberWithOptions(decimal: true),
showShadow: false,
onChange: (value) {
requestDetailProvider.workOrderCostModel?.travelCost = num.parse(value);
@ -117,7 +117,7 @@ class _CostDetailFormScreenState extends State<CostDetailFormScreen> with Ticker
initialValue: requestDetailProvider.workOrderCostModel?.qAmount?.toString(),
textAlign: TextAlign.center,
labelStyle: AppTextStyles.textFieldLabelStyle,
textInputType: TextInputType.number,
textInputType: const TextInputType.numberWithOptions(decimal: true),
showShadow: false,
onChange: (value) {
requestDetailProvider.workOrderCostModel?.qAmount = num.parse(value);
@ -131,7 +131,7 @@ class _CostDetailFormScreenState extends State<CostDetailFormScreen> with Ticker
initialValue: requestDetailProvider.workOrderCostModel?.prNo,
textAlign: TextAlign.center,
labelStyle: AppTextStyles.textFieldLabelStyle,
textInputType: TextInputType.text,
textInputType:const TextInputType.numberWithOptions(decimal: true),
showShadow: false,
onChange: (value) {
requestDetailProvider.workOrderCostModel?.prNo = value;
@ -145,7 +145,7 @@ class _CostDetailFormScreenState extends State<CostDetailFormScreen> with Ticker
initialValue: requestDetailProvider.workOrderCostModel?.poNo,
textAlign: TextAlign.center,
labelStyle: AppTextStyles.textFieldLabelStyle,
textInputType: TextInputType.text,
textInputType:const TextInputType.numberWithOptions(decimal: true),
showShadow: false,
onChange: (value) {
requestDetailProvider.workOrderCostModel?.poNo = value;

@ -222,7 +222,7 @@ class _SparePartRequestState extends State<SparePartRequest> with TickerProvider
AppTextFormField(
controller: _installQtyController,
labelText: context.translation.installedQty,
textInputType: TextInputType.number,
textInputType: const TextInputType.numberWithOptions(decimal: true),
labelStyle: AppTextStyles.textFieldLabelStyle,
showWithoutDecoration: true,
backgroundColor: context.isDark ? AppColor.neutral20 : AppColor.neutral90,

@ -321,7 +321,7 @@ class _CreateServiceReportState extends State<CreateServiceReport> with TickerPr
AppTextFormField(
labelText: context.translation.travelingExpense,
initialValue: _serviceReport.travelingExpenses?.toString(),
textInputType: TextInputType.number,
textInputType: const TextInputType.numberWithOptions(decimal: true),
onSaved: (value) {
_serviceReport.travelingExpenses = double.tryParse(value) ?? 0.0;
},
@ -330,7 +330,7 @@ class _CreateServiceReportState extends State<CreateServiceReport> with TickerPr
AppTextFormField(
labelText: context.translation.travelingHours,
initialValue: _serviceReport.travelingHours?.toString(),
textInputType: TextInputType.number,
textInputType: const TextInputType.numberWithOptions(decimal: true),
onSaved: (value) {
_serviceReport.travelingHours = double.tryParse(value) ?? 0.0;
},

@ -31,7 +31,7 @@ class UpdateProfileInfoBottmsheet extends StatelessWidget {
initialValue: userInfoModel.email,
textAlign: TextAlign.center,
labelStyle: AppTextStyles.textFieldLabelStyle,
textInputType: TextInputType.number,
textInputType: TextInputType.emailAddress,
showShadow: false,
onChange: (value) {
userInfoModel.email = value;
@ -47,7 +47,7 @@ class UpdateProfileInfoBottmsheet extends StatelessWidget {
initialValue: userInfoModel.phoneNo,
textAlign: TextAlign.center,
labelStyle: AppTextStyles.textFieldLabelStyle,
textInputType: TextInputType.number,
textInputType: TextInputType.phone,
showShadow: false,
onChange: (value) {
userInfoModel.phoneNo = value;
@ -63,7 +63,7 @@ class UpdateProfileInfoBottmsheet extends StatelessWidget {
initialValue: userInfoModel.extensionNo,
textAlign: TextAlign.center,
labelStyle: AppTextStyles.textFieldLabelStyle,
textInputType: TextInputType.number,
textInputType: const TextInputType.numberWithOptions(decimal: true),
showShadow: false,
onChange: (value) {
userInfoModel.extensionNo = value;

Loading…
Cancel
Save