Skip to content

Commit 8bcae59

Browse files
committed
feat: group management main page entry at profile page
1 parent ca5929b commit 8bcae59

File tree

4 files changed

+277
-330
lines changed

4 files changed

+277
-330
lines changed

assets/icons/color-filter.svg

Lines changed: 7 additions & 0 deletions
Loading

lib/app/modules/core/data/models/analytics_event.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ class AnalyticsEvent with _$AnalyticsEvent {
114114
const factory AnalyticsEvent.profileLogout(PageSource from) = _ProfileLogout;
115115
const factory AnalyticsEvent.profileWithdraw() = _ProfileWithdraw;
116116
const factory AnalyticsEvent.profileLogin(PageSource from) = _ProfileLogin;
117+
const factory AnalyticsEvent.profileGroup() = _ProfileGroup;
117118
const factory AnalyticsEvent.profileSettingEnableNotification() =
118119
_ProfileSettingEnableNotification;
119120
const factory AnalyticsEvent.profileSettingLanguage(AppLocale lang) =

lib/app/modules/user/presentation/pages/profile_page.dart

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,18 @@ class _Layout extends StatelessWidget {
8585
],
8686
),
8787
),
88-
const SizedBox(height: 40),
88+
SizedBox(height: 40),
89+
if (authenticated) ...[
90+
ZiggleRowButton(
91+
icon: Assets.icons.colorFilter.svg(),
92+
title: Text(context.t.user.groups),
93+
onPressed: () {
94+
AnalyticsRepository.click(AnalyticsEvent.profileGroup());
95+
GroupManagementMainRoute().push(context);
96+
},
97+
),
98+
const SizedBox(height: 20),
99+
],
89100
ZiggleRowButton(
90101
leadingIcon: Assets.icons.setting.svg(),
91102
title: Text(context.t.user.setting.title),

0 commit comments

Comments
 (0)