mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-22 04:49:21 +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> {
|
class _PresenceCalendarWidgetState extends State<PresenceCalendarWidget> {
|
||||||
var selectedDay = DateTime.now();
|
var selectedDay = DateTime.now();
|
||||||
|
|
||||||
|
@override
|
||||||
|
void didUpdateWidget(covariant PresenceCalendarWidget oldWidget) {
|
||||||
|
super.didUpdateWidget(oldWidget);
|
||||||
|
|
||||||
|
if (oldWidget.selectedDay != widget.selectedDay) {
|
||||||
|
selectedDay = widget.selectedDay;
|
||||||
|
setState(() {});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return TableCalendar(
|
return TableCalendar(
|
||||||
|
Loading…
Reference in New Issue
Block a user