Home > Software design >  Flutter :: How to limit the time in showTimePicker?
Flutter :: How to limit the time in showTimePicker?

Time:12-15

I'm want to build showTimePicker who can show only the times we want.

CodePudding user response:

    CustomCupertinoTimerPicker(
        startRestriction: startTime,
        endRestriction: endTime,),

CodePudding user response:

Here is the Example solution of the problem, is based CupertinoTimerPicker class:

https://dartpad.dev/?id=089bd3ce24ef472be9e8df2e3656719a

  • Related