fix(flutter_desktop): fix calendar event bugs (#6446)

* fix: row controller being disposed too early in calendar

* fix: empty accessories in calendar event card
This commit is contained in:
Richard Shiue 2024-10-02 09:17:02 +08:00 committed by GitHub
parent 19361e2c68
commit 092aefdd71
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 28 additions and 13 deletions

View file

@ -24,6 +24,10 @@ class CardAccessoryContainer extends StatelessWidget {
@override
Widget build(BuildContext context) {
if (accessories.isEmpty) {
return const SizedBox.shrink();
}
final children = accessories.map<Widget>((accessory) {
return GestureDetector(
behavior: HitTestBehavior.opaque,