Add custom increments and decrements for hours and minutes in TimePicker
Is there an existing issue for this?
- [X] I have searched the existing issues
Is your feature request related to a problem? Please describe the problem.
I was trying to increase or decrease the minutes for the time picker so that the user can change the time by increasing or decreasing by 15 minutes.
Describe the solution you'd like
In the ChangeMinute and ChangeHour methods, within the increase and decrease sections, a property must be received. Based on this property, the value should either increase or decrease
for example:
private async Task ChangeMinute(bool isNext)
{
if (isNext)
{
if (_minute < 59)
{
_minute += myPropsMin; // This Section
}
else
{
_minute = 0;
}
}
else
{
if (_minute > 0)
{
_minute -= myPropsMin; // This Section
}
else
{
_minute = 59;
}
}
await UpdateCurrentValue();
}
Additional context
for Hour:
private async Task ChangeHour(bool isNext)
{
if (isNext)
{
if (_hour < 23)
{
_hour += MyPropHour // this section;
}
else
{
_hour = 0;
}
}
else
{
if (_hour > 0)
{
_hour -= MyPropHour // this section;
}
else
{
_hour = 23;
}
}
await UpdateCurrentValue();
}
@mostafa1374 Thanks for contacting us. We're investigating this issue. We'll let you know if it's possible to work on this issue.
The issue is accepted and planned. Resolving it will start ASAP.
Resolving this issue has started. It will be announced when this issue is resolved.
This issue has been resolved and it will be available in the next pre-release version. It will be announced when the pre-release becomes ready.
The pre-release has been published. Please give it a try and give feedback.