EventView needs to be stateful because when you mess with an event in that view, it should be dynamic and update. CalendarView has data represented from EventView and thus when EventView updates it's data, the CalendarView will need to be updated as well.
There is the pattern where because both of these Views are in the main widget Calendar which is stateful. Both views can have access to the state in the main widget and potentially can remain stateless.
EventView
needs to be stateful because when you mess with an event in that view, it should be dynamic and update.CalendarView
has data represented fromEventView
and thus whenEventView
updates it's data, theCalendarView
will need to be updated as well.There is the pattern where because both of these
Views
are in the main widgetCalendar
which is stateful. Both views can have access to the state in the main widget and potentially can remain stateless.