activityTabBarView method
- ActivityModel data
The TabBarView of the activity page.
Implementation
TabBarView activityTabBarView(ActivityModel data) {
return TabBarView(
children: [
ReferencedPostPage(activityID: data.id),
Column(
children: [
Expanded(
child: SingleChildScrollView(
child: data.category == ActivityCategory.europe
? EuropeanEventDescription(
description: data.description,
)
: QuillReadOnlyEditor(
text: data.description,
),
),
),
ParticipateSection(data: data),
],
),
if (data.category != ActivityCategory.europe)
SingleChildScrollView(
child: CommentSection(
commentSectionId: data.id,
builder: CommentSection.activityCommentSectionBuilder(),
),
),
],
);
}