Skip to content

Commit

Permalink
Merge pull request #349 from kookmin-sw/#348-finish-notification-matc…
Browse files Browse the repository at this point in the history
…hing-page

[feat] 종료 알림에 커피챗 진행중 페이지로 이동버튼 추가
  • Loading branch information
jm3789 authored May 23, 2024
2 parents 79f7a1f + e1fd986 commit d30af64
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions frontend/lib/widgets/dialog/notification_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,15 @@ class ReqFinishedNotification extends StatelessWidget {

@override
Widget build(BuildContext context) {
final selectedIndexProvider = Provider.of<SelectedIndexModel>(context);
return NotificationDialog(
contents: '$nickname님이 커피챗을 종료했어요!',
backButton: "확인",
);
contents: '$nickname님이 커피챗을 \n종료했어요!',
backButton: "닫기",
navigateButton: "종료하기",
handleNavigate: () {
Navigator.of(context).popUntil(ModalRoute.withName('/'));
selectedIndexProvider.selectedIndex = 1;
});
}
}

Expand Down

0 comments on commit d30af64

Please sign in to comment.