From 35896e40c81fc628233c93b4dea1c514b72d7381 Mon Sep 17 00:00:00 2001 From: path-yu <1974675011@qq.com> Date: Thu, 19 Jan 2023 18:43:11 +0800 Subject: [PATCH] fix: change showMessage --- lib/pages/chat_setting_page.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'); }); } });