🐛 FixedExtentScrollController
scrolling issue in DatePicker
#1054
Labels
bug
Something isn't working
FixedExtentScrollController
scrolling issue in DatePicker
#1054
Issue Description
Upon utilization of the DatePicker feature, if the day and/or month fields are deselected, an error message emerges during scrolling within the DatePicker, stating: "FixedExtentScrollController.selectedItem cannot be accessed before a scroll view is built with it." Additionally, occasional occurrences of jagged animations are observable during scrolling.
Steps to Reproduce
To replicate the behavior, follow these steps:
Expected Outcome
The scrolling process should occur seamlessly, devoid of any error messages or jagged animations.
Error Demo
![Recording 2024-04-10 233613](https://private-user-images.githubusercontent.com/83510709/321357616-4d83b152-5680-4e81-bdaf-cb7cc051aa3f.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NzE3MjcsIm5iZiI6MTczOTY3MTQyNywicGF0aCI6Ii84MzUxMDcwOS8zMjEzNTc2MTYtNGQ4M2IxNTItNTY4MC00ZTgxLWJkYWYtY2I3Y2MwNTFhYTNmLmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE2VDAyMDM0N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFlMWQ3ZTczMmQ1NGE0ZGQ3YjAzZDkyNjQ4ZWNiMmQ5YjhiNzE1NDNlOTcwYzFlNGNkYTQ1MjY5ZmQyODQ4MDImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.U3Tzk9TDvCu51IlSILJqNTpKdxGpSOlZfGWNbXGkCr0)
The text was updated successfully, but these errors were encountered: