Skip to content

Commit

Permalink
fix: remove unimplemented roll call button
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinlee-06 committed Dec 4, 2024
1 parent 2cc13fd commit 8798a7c
Showing 1 changed file with 27 additions and 28 deletions.
55 changes: 27 additions & 28 deletions lib/ui/pages/other/other_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ enum OnListViewPress {
about,
login,
subSystem,
rollCallRemind,
// rollCallRemind,
}

class OtherPage extends StatefulWidget {
Expand All @@ -57,12 +57,12 @@ class _OtherPageState extends State<OtherPage> {
"title": R.current.informationSystem,
"onPress": OnListViewPress.subSystem
},
{
"icon": Icons.access_alarm,
"color": Colors.red,
"title": R.current.rollCallRemind,
"onPress": OnListViewPress.rollCallRemind,
},
// {
// "icon": Icons.access_alarm,
// "color": Colors.red,
// "title": R.current.rollCallRemind,
// "onPress": OnListViewPress.rollCallRemind,
// },
{
"icon": EvaIcons.downloadOutline,
"color": Colors.yellow[700],
Expand Down Expand Up @@ -145,28 +145,27 @@ class _OtherPageState extends State<OtherPage> {
title: R.current.feedback,
);
break;
case OnListViewPress.rollCallRemind:
// TODO(TU): update this log to the real feature log.
await FirebaseAnalytics.instance.logEvent(
name: 'z_roll_call_pre_msg_clicked',
parameters: {
'position': 'other_page',
},
);
// case OnListViewPress.rollCallRemind:
// // TODO(TU): update this log to the real feature log.
// await FirebaseAnalytics.instance.logEvent(
// name: 'z_roll_call_pre_msg_clicked',
// parameters: {
// 'position': 'other_page',
// },
// );

if (await AppConfig.zuvioRollCallFeatureEnabled) {
RouteUtils.launchRollCallDashBoardPageAfterLogin();
} else {
MsgDialog(MsgDialogParameter(
desc: R.current.zuvioAutoRollCallFeatureReleaseNotice,
title: R.current.comingSoon,
dialogType: DialogType.info,
removeCancelButton: true,
okButtonText: R.current.sure,
)).show();
}

break;
// if (await AppConfig.zuvioRollCallFeatureEnabled) {
// RouteUtils.launchRollCallDashBoardPageAfterLogin();
// } else {
// MsgDialog(MsgDialogParameter(
// desc: R.current.zuvioAutoRollCallFeatureReleaseNotice,
// title: R.current.comingSoon,
// dialogType: DialogType.info,
// removeCancelButton: true,
// okButtonText: R.current.sure,
// )).show();
// }
// break;
default:
MyToast.show(R.current.noFunction);
break;
Expand Down

0 comments on commit 8798a7c

Please sign in to comment.