mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-12-26 04:48:51 +00:00
Fix navigability issue
This commit is contained in:
parent
fa8c1f46a1
commit
a076c08429
@ -37,6 +37,16 @@ class PresenceCalendarWidget extends StatefulWidget {
|
||||
class _PresenceCalendarWidgetState extends State<PresenceCalendarWidget> {
|
||||
var selectedDay = DateTime.now();
|
||||
|
||||
@override
|
||||
void didUpdateWidget(covariant PresenceCalendarWidget oldWidget) {
|
||||
super.didUpdateWidget(oldWidget);
|
||||
|
||||
if (oldWidget.selectedDay != widget.selectedDay) {
|
||||
selectedDay = widget.selectedDay;
|
||||
setState(() {});
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return TableCalendar(
|
||||
|
Loading…
Reference in New Issue
Block a user