Skip to content

Commit 63871e1

Browse files
authored
Merge pull request Realank#184 from maerlynflagg/maerlynflagg-patch-1
Enabling UI refresh on change the right list
2 parents 7a66eee + 2a82660 commit 63871e1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/flutter_datetime_picker.dart

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,8 +412,12 @@ class _DatePickerState extends State<_DatePickerComponent> {
412412
rightScrollCtrl,
413413
widget.pickerModel.layoutProportions()[2], (index) {
414414
widget.pickerModel.setRightIndex(index);
415-
_notifyDateChanged();
416-
}, null)
415+
}, (index) {
416+
setState(() {
417+
refreshScrollOffset();
418+
_notifyDateChanged();
419+
});
420+
})
417421
: null,
418422
),
419423
],

0 commit comments

Comments
 (0)