Skip to content

Commit 35896e4

Browse files
committed
fix: change showMessage
1 parent a3761c3 commit 35896e4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/pages/chat_setting_page.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import 'package:flutter/material.dart';
22
import 'package:flutter_chat/common/firebase.dart';
3+
import 'package:flutter_chat/common/showToast.dart';
34
import 'package:flutter_chat/components/common.dart';
45
import 'package:adaptive_dialog/adaptive_dialog.dart';
56

@@ -34,7 +35,7 @@ class _ChatSettingPageState extends State<ChatSettingPage> {
3435
.doc(widget.chatId!)
3536
.update({widget.messageListKey!: []}).then((value) {
3637
Navigator.pop(context);
37-
showMessage(context: context, title: 'success');
38+
showToast('success');
3839
});
3940
}
4041
});

0 commit comments

Comments
 (0)