Skip to content

Commit

Permalink
fix: 🐛Unwanted space at top of dayView while using sliver #225.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaiminrana05 committed Aug 8, 2023
1 parent c0334eb commit 3d91969
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
Issue [#237 - DayView & MonthView layout issue in landscape mode](https://github.com/SimformSolutionsPvtLtd/flutter_calendar_view/issues/237)
- Added Feature
[#57 - Change default start hour in DayView](https://github.com/SimformSolutionsPvtLtd/flutter_calendar_view/issues/57)
- Fixed
Issue [#225 - Unwanted space at top in DayView while using sliver](https://github.com/SimformSolutionsPvtLtd/flutter_calendar_view/issues/225)


# [1.0.3 - 3 Apr 2023](https://github.com/SimformSolutionsPvtLtd/flutter_calendar_view/tree/1.0.3)

Expand Down
5 changes: 4 additions & 1 deletion lib/src/day_view/_internal_day_view_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,15 @@ class InternalDayViewPage<T extends Object?> extends StatelessWidget {

@override
Widget build(BuildContext context) {
final fullDayEventList = controller.getFullDayEvent(date);
return Container(
height: height,
width: width,
child: Column(
children: [
fullDayEventBuilder(controller.getFullDayEvent(date), date),
fullDayEventList.isEmpty
? SizedBox.shrink()
: fullDayEventBuilder(fullDayEventList, date),
Expanded(
child: SingleChildScrollView(
controller: scrollController,
Expand Down

0 comments on commit 3d91969

Please sign in to comment.