Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/material_ui/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
- README updated for the full release of material_ui.
- Promotes the pre-release to 1.0.0.

## 0.0.3+2

- Replace usages of `WidgetStatesController setter` with the recommended update method

## 0.0.3+1

- Replace unresolvable doc imports
Expand Down
8 changes: 6 additions & 2 deletions packages/material_ui/lib/src/calendar_date_picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1235,7 +1235,9 @@ class _DayState extends State<_Day> {
if (widget.isSelectedDay) WidgetState.selected,
};

_statesController.value = states;
for (final state in states) {
_statesController.update(state, true);
}

final Color? dayForegroundColor = resolve<Color?>(
(DatePickerThemeData? theme) =>
Expand Down Expand Up @@ -1568,7 +1570,9 @@ class _YearPickerState extends State<YearPicker> {
assert(date.year == widget.lastDate.year);
date = widget.calendarDelegate.getMonth(year, widget.lastDate.month);
}
_statesController.value = states;
for (final state in states) {
_statesController.update(state, true);
}
yearItem = InkWell(
key: ValueKey<int>(year),
onTap: () => widget.onChanged(date),
Expand Down
4 changes: 3 additions & 1 deletion packages/material_ui/lib/src/date_picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2894,7 +2894,9 @@ class _DayItemState extends State<_DayItem> {
if (widget.isSelectedDayStart || widget.isSelectedDayEnd) WidgetState.selected,
};

_statesController.value = states;
for (final state in states) {
_statesController.update(state, true);
}

final Color? dayForegroundColor = resolve<Color?>(
(DatePickerThemeData? theme) => theme?.dayForegroundColor,
Expand Down
Loading