You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I am trying to create a calendar, initializing with DateTime.now().add(Duration(days: -7)) , but it is focusing on the first date and not the current date.
Expected behavior
I would like it to start with the current date, with the possibility for the user to select earlier dates by scrolling to the left.
Screenshots
It is initializing this way, with the focus of the dates 7 days ago.
I would like it to initialize with the focus on DateTime.now()
Make a stateful widget and then in initState function call DatePickerController's animation methods such as animateToDate, animateToSelection, etc.
For example, the code snippet below initializes a date picker and then immediately animates to two days back (in order for the selected date to appear at center):
Describe the bug
I am trying to create a calendar, initializing with
DateTime.now().add(Duration(days: -7))
, but it is focusing on the first date and not the current date.Expected behavior
I would like it to start with the current date, with the possibility for the user to select earlier dates by scrolling to the left.
Screenshots
It is initializing this way, with the focus of the dates 7 days ago.
I would like it to initialize with the focus on DateTime.now()
The text was updated successfully, but these errors were encountered: