Is your feature request related to a problem? Please describe.
When we want to show the android picker on iOS, we currently need to provide a new theme around it with the platform set to android. See #38.
This works fine with one rather annoying exception:
Due to setting the Platform to Android, the date and time picker always provide haptic feedback by vibrating the device whenever a value is chosen. Because there are no other controls in iOS exposing this device, it is kind of disturbing to user experience if suddenly the device vibrates. This behaviour depends on the platform as seen here and here.
Describe the solution you'd like
Add a new, optional enum property pickerStyle to the widget that choses which kind of picker should be shown without the need to change platform. Its behaviour should be as follows:
if null, choose the picker depending on platform as is,
if cupertino always show an iOS style picker
if material always show an Android style picker
If the widget doesn't need to be wrapped with a different platform, the flutter picker widgets should follow the system vibration behaviour.
Describe alternatives you've considered
Also tried setting the enableFeedbackto false but this seems to not apply to the pickers as they do not expose any proeprty to change vibration behaviour as seen in the links above. It solely depends on Platform.
Is your feature request related to a problem? Please describe. When we want to show the android picker on iOS, we currently need to provide a new theme around it with the platform set to android. See #38.
This works fine with one rather annoying exception: Due to setting the Platform to Android, the date and time picker always provide haptic feedback by vibrating the device whenever a value is chosen. Because there are no other controls in iOS exposing this device, it is kind of disturbing to user experience if suddenly the device vibrates. This behaviour depends on the platform as seen here and here.
Describe the solution you'd like Add a new, optional enum property
pickerStyle
to the widget that choses which kind of picker should be shown without the need to change platform. Its behaviour should be as follows:cupertino
always show an iOS style pickermaterial
always show an Android style pickerIf the widget doesn't need to be wrapped with a different platform, the flutter picker widgets should follow the system vibration behaviour.
Describe alternatives you've considered Also tried setting the
enableFeedback
to false but this seems to not apply to the pickers as they do not expose any proeprty to change vibration behaviour as seen in the links above. It solely depends on Platform.