mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-04-24 22:57:12 -04:00
feat: double click day cell to create event (#2424)
This commit is contained in:
parent
a48fca159f
commit
c4ff1a6290
1 changed files with 10 additions and 7 deletions
|
@ -82,6 +82,8 @@ class CalendarDayCard extends StatelessWidget {
|
||||||
|
|
||||||
return Container(
|
return Container(
|
||||||
color: backgroundColor,
|
color: backgroundColor,
|
||||||
|
child: GestureDetector(
|
||||||
|
onDoubleTap: () => onCreateEvent(date),
|
||||||
child: MouseRegion(
|
child: MouseRegion(
|
||||||
cursor: SystemMouseCursors.basic,
|
cursor: SystemMouseCursors.basic,
|
||||||
onEnter: (p) => notifyEnter(context, true),
|
onEnter: (p) => notifyEnter(context, true),
|
||||||
|
@ -91,6 +93,7 @@ class CalendarDayCard extends StatelessWidget {
|
||||||
child: child,
|
child: child,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue