Skip to content

Commit

Permalink
fix: change showMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
path-yu committed Jan 19, 2023
1 parent a3761c3 commit 35896e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/pages/chat_setting_page.dart
Original file line number Diff line number Diff line change
@@ -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';

Expand Down Expand Up @@ -34,7 +35,7 @@ class _ChatSettingPageState extends State<ChatSettingPage> {
.doc(widget.chatId!)
.update({widget.messageListKey!: []}).then((value) {
Navigator.pop(context);
showMessage(context: context, title: 'success');
showToast('success');
});
}
});
Expand Down

0 comments on commit 35896e4

Please sign in to comment.