diff --git a/CHANGELOG.md b/CHANGELOG.md index 633999f7..5c06255e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/lib/src/day_view/_internal_day_view_page.dart b/lib/src/day_view/_internal_day_view_page.dart index 68ae33c9..706cf02c 100644 --- a/lib/src/day_view/_internal_day_view_page.dart +++ b/lib/src/day_view/_internal_day_view_page.dart @@ -133,12 +133,15 @@ class InternalDayViewPage 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,