diff --git a/lib/pages/chat_setting_page.dart b/lib/pages/chat_setting_page.dart index 694e134..01ff4eb 100644 --- a/lib/pages/chat_setting_page.dart +++ b/lib/pages/chat_setting_page.dart @@ -1,5 +1,6 @@ import 'package:flutter/material.dart'; import 'package:flutter_chat/common/firebase.dart'; +import 'package:flutter_chat/common/showToast.dart'; import 'package:flutter_chat/components/common.dart'; import 'package:adaptive_dialog/adaptive_dialog.dart'; @@ -34,7 +35,7 @@ class _ChatSettingPageState extends State { .doc(widget.chatId!) .update({widget.messageListKey!: []}).then((value) { Navigator.pop(context); - showMessage(context: context, title: 'success'); + showToast('success'); }); } });