Home > Back-end >  How can i make a year picker in flutter displaying only years in list
How can i make a year picker in flutter displaying only years in list

Time:10-20

Please, how can i make a customized date Picker in flutter which shows only a list of years?

enter image description here

CodePudding user response:

You can use CupertinoPicker widget for this.

CupertinoPicker(
  children: [listOfYear],
  itemExtent: 100,
  onSelectedItemChanged: (value) {},
)

More about CupertinoPicker

CodePudding user response:

where can i find a json list of years to parse it into a dart list of years inside the picker?

  • Related