|
@@ -62,30 +62,31 @@ class CalendarDayCard extends StatelessWidget {
|
|
|
);
|
|
|
}).toList();
|
|
|
|
|
|
- final child = Padding(
|
|
|
- padding: const EdgeInsets.all(8.0),
|
|
|
- child: Column(
|
|
|
- mainAxisSize: MainAxisSize.min,
|
|
|
- children: [
|
|
|
- _Header(
|
|
|
+ final child = Column(
|
|
|
+ mainAxisSize: MainAxisSize.min,
|
|
|
+ children: [
|
|
|
+ Padding(
|
|
|
+ padding: const EdgeInsets.all(8.0),
|
|
|
+ child: _Header(
|
|
|
date: date,
|
|
|
isInMonth: isInMonth,
|
|
|
isToday: isToday,
|
|
|
onCreate: () => onCreateEvent(date),
|
|
|
),
|
|
|
- VSpace(GridSize.typeOptionSeparatorHeight),
|
|
|
- Flexible(
|
|
|
- child: ListView.separated(
|
|
|
- itemBuilder: (BuildContext context, int index) {
|
|
|
- return children[index];
|
|
|
- },
|
|
|
- itemCount: children.length,
|
|
|
- separatorBuilder: (BuildContext context, int index) =>
|
|
|
- VSpace(GridSize.typeOptionSeparatorHeight),
|
|
|
- ),
|
|
|
+ ),
|
|
|
+ VSpace(GridSize.typeOptionSeparatorHeight),
|
|
|
+ Flexible(
|
|
|
+ child: ListView.separated(
|
|
|
+ itemBuilder: (BuildContext context, int index) {
|
|
|
+ return children[index];
|
|
|
+ },
|
|
|
+ itemCount: children.length,
|
|
|
+ padding: const EdgeInsets.symmetric(horizontal: 8.0),
|
|
|
+ separatorBuilder: (BuildContext context, int index) =>
|
|
|
+ VSpace(GridSize.typeOptionSeparatorHeight),
|
|
|
),
|
|
|
- ],
|
|
|
- ),
|
|
|
+ ),
|
|
|
+ ],
|
|
|
);
|
|
|
|
|
|
return Container(
|
|
@@ -94,7 +95,10 @@ class CalendarDayCard extends StatelessWidget {
|
|
|
cursor: SystemMouseCursors.click,
|
|
|
onEnter: (p) => notifyEnter(context, true),
|
|
|
onExit: (p) => notifyEnter(context, false),
|
|
|
- child: child,
|
|
|
+ child: Padding(
|
|
|
+ padding: const EdgeInsets.symmetric(vertical: 8.0),
|
|
|
+ child: child,
|
|
|
+ ),
|
|
|
),
|
|
|
);
|
|
|
}),
|
|
@@ -149,6 +153,15 @@ class _DayEventCell extends StatelessWidget {
|
|
|
onTap: onClick,
|
|
|
child: Container(
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 8),
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ border: Border.fromBorderSide(
|
|
|
+ BorderSide(
|
|
|
+ color: Theme.of(context).dividerColor,
|
|
|
+ width: 1.0,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ borderRadius: Corners.s6Border,
|
|
|
+ ),
|
|
|
child: child,
|
|
|
),
|
|
|
),
|