Skip to content

Commit

Permalink
[feat] 종료 알림에 커피챗 진행중 페이지로 이동버튼 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
jm3789 committed May 23, 2024
1 parent c5b646a commit e1fd986
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 e1fd986

Please sign in to comment.