-
-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add multiDateEventHeaderStyle.maxEventCount
- Loading branch information
1 parent
bee93d7
commit 0ea6549
Showing
6 changed files
with
276 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import 'package:black_hole_flutter/black_hole_flutter.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
import '../event/all_day.dart'; | ||
import '../event/basic.dart'; | ||
import '../localization.dart'; | ||
import '../utils.dart'; | ||
|
||
class AllDayOverflow extends StatelessWidget { | ||
AllDayOverflow(this.date, {super.key, required this.overflowCount}) | ||
: assert(date.debugCheckIsValidTimetableDate()), | ||
assert(overflowCount >= 1); | ||
|
||
final DateTime date; | ||
final int overflowCount; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return BasicAllDayEventWidget( | ||
BasicEvent( | ||
id: date, | ||
title: TimetableLocalizations.of(context).allDayOverflow(overflowCount), | ||
backgroundColor: context.theme.backgroundColor.withOpacity(0), | ||
start: date, | ||
end: date.atEndOfDay, | ||
), | ||
info: AllDayEventLayoutInfo(hiddenStartDays: 0, hiddenEndDays: 0), | ||
); | ||
} | ||
} |
Oops, something went wrong.