Skip to content

Commit

Permalink
Merge pull request #405 from bannzai/remove/unused/calendar_today
Browse files Browse the repository at this point in the history
Remove unnecessary today buttons
  • Loading branch information
bannzai authored Oct 26, 2021
2 parents a6aaf02 + fd1b3ff commit fbbd8f9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
10 changes: 1 addition & 9 deletions lib/domain/calendar/calendar_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,7 @@ class CalendarPage extends HookWidget {
return Scaffold(
backgroundColor: PilllColors.background,
appBar: AppBar(
leading: AppBarTextActionButton(
onPressed: () {
analytics.logEvent(name: "calendar_to_today_pressed");
store.updateCurrentCalendarIndex(state.todayCalendarIndex);
itemScrollController.scrollTo(
index: state.todayCalendarIndex,
duration: Duration(milliseconds: 300));
},
text: "今日"),
leading: Container(),
actions: [
IconButton(
icon: SvgPicture.asset("images/help.svg"),
Expand Down
11 changes: 0 additions & 11 deletions lib/domain/menstruation/menstruation_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,6 @@ class MenstruationPage extends HookWidget {
return Scaffold(
backgroundColor: PilllColors.background,
appBar: AppBar(
actions: [
AppBarTextActionButton(
onPressed: () {
analytics.logEvent(name: "menstruation_to_today_pressed");
store.updateCurrentCalendarIndex(state.todayCalendarIndex);
itemScrollController.scrollTo(
index: state.todayCalendarIndex,
duration: Duration(milliseconds: 300));
},
text: "今日"),
],
title: SizedBox(
child: Text(
state.displayMonth,
Expand Down

0 comments on commit fbbd8f9

Please sign in to comment.