Skip to content

Commit

Permalink
fix regression in DatePicker: invert first and last dates (#4661)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndonkoHenri authored and FeodorFitsner committed Jan 16, 2025
1 parent 3d63ec1 commit 8c6b62b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/python/packages/flet/src/flet/core/date_picker.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ def __init__(
self,
open: bool = False,
value: Optional[DateTimeValue] = None,
first_date: DateTimeValue = datetime(year=2050, month=1, day=1),
last_date: DateTimeValue = datetime(year=1900, month=1, day=1),
first_date: DateTimeValue = datetime(year=1900, month=1, day=1),
last_date: DateTimeValue = datetime(year=2050, month=1, day=1),
current_date: DateTimeValue = datetime.now(),
keyboard_type: Optional[KeyboardType] = None,
date_picker_mode: Optional[DatePickerMode] = None,
Expand Down

0 comments on commit 8c6b62b

Please sign in to comment.