decimal keyboard on traveling hours, email keyboard for email for external engineer

design_3.0_task_module_new
Sikander Saleem 5 months ago
parent 13be4e960a
commit bed3a9821e

@ -18,10 +18,7 @@ class VerifyOtpView extends StatelessWidget {
final defaultPinTheme = PinTheme( final defaultPinTheme = PinTheme(
width: 51.toScreenWidth, width: 51.toScreenWidth,
height: 63.toScreenHeight, height: 63.toScreenHeight,
textStyle: const TextStyle( textStyle: const TextStyle(fontSize: 22, color: Colors.black),
fontSize: 22,
color: Colors.black,
),
decoration: BoxDecoration( decoration: BoxDecoration(
color: AppColor.neutral100, color: AppColor.neutral100,
borderRadius: BorderRadius.circular(10), borderRadius: BorderRadius.circular(10),

@ -111,10 +111,7 @@ class _ExternalMaintenanceRequestState extends State<ExternalMaintenanceRequest>
borderRadius: BorderRadius.circular(10), borderRadius: BorderRadius.circular(10),
boxShadow: [BoxShadow(color: Colors.black.withOpacity(0.05), blurRadius: 10)], boxShadow: [BoxShadow(color: Colors.black.withOpacity(0.05), blurRadius: 10)],
), ),
child: Icon( child: Icon(Icons.add, color: context.isDark ? null : AppColor.neutral60),
Icons.add,
color: context.isDark ? null : AppColor.neutral60,
),
).onPress(requestDetailProvider.activityMaintenanceHelperModel?.supplier?.suppliername == null ).onPress(requestDetailProvider.activityMaintenanceHelperModel?.supplier?.suppliername == null
? null ? null
: () async { : () async {

@ -257,7 +257,7 @@ class _InternalMaintenanceRequestState extends State<InternalMaintenanceRequest>
labelStyle: AppTextStyles.textFieldLabelStyle, labelStyle: AppTextStyles.textFieldLabelStyle,
suffixIcon: "clock".toSvgAsset(width: 20, color: context.isDark ? AppColor.neutral10 : null).paddingOnly(end: 16), suffixIcon: "clock".toSvgAsset(width: 20, color: context.isDark ? AppColor.neutral10 : null).paddingOnly(end: 16),
initialValue: requestDetailProvider.activityMaintenanceHelperModel?.travelHours?.toString(), initialValue: requestDetailProvider.activityMaintenanceHelperModel?.travelHours?.toString(),
textInputType: TextInputType.number, textInputType: const TextInputType.numberWithOptions(decimal: true),
onChange: (value) { onChange: (value) {
requestDetailProvider.activityMaintenanceHelperModel?.travelHours = num.parse(value); // int.tryParse(value); requestDetailProvider.activityMaintenanceHelperModel?.travelHours = num.parse(value); // int.tryParse(value);
}, },

@ -104,7 +104,7 @@ class _AddSupplierEngineerBottomSheetState extends State<AddSupplierEngineerBott
8.height, 8.height,
AppTextFormField( AppTextFormField(
labelText: "Email".addTranslation, labelText: "Email".addTranslation,
textInputType: TextInputType.name, textInputType: TextInputType.emailAddress,
onChange: (text) { onChange: (text) {
engineer.email = text.isEmpty ? null : text; engineer.email = text.isEmpty ? null : text;
}, },

Loading…
Cancel
Save