Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Is there a widget or a library recommended for making this kind of TimePicker?

DatePicker

This is exactly what I want it to look like. But how can I make it? I don’t know if I can get this result with a ListView and a ScrollController since I need to be able to loop through the seconds and minutes and I also want it to start at the 00:30 position.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

You can try with CupertinoPicker

Container(
    color: Colors.grey.shade100,
    width: 100,
    height: 200,
    child: CupertinoPicker(
      itemExtent: 48,
      onSelectedItemChanged: (value) {},
      children: List.generate(
        12,
        (index) => Center(
          child: Text(
            index.toString(),
          ),
        ),
      ),
    ),
  ),
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading