delay greeting
This commit is contained in:
@@ -69,10 +69,12 @@ class _FullScreenState extends State<FullScreen> {
|
||||
final messageService = context.read<MessageService>();
|
||||
List<ChatMessage> fullScreenMessages = List.from(handler.messages);
|
||||
if (fullScreenMessages.isEmpty) {
|
||||
String text = Intl.getCurrentLocale().startsWith('zh')
|
||||
? "您好,我是众众,请问有什么可以帮您?"
|
||||
: "Hi, I'm Zhongzhong, may I help you ? ";
|
||||
messageService.addMessage(text, false, MessageStatus.normal);
|
||||
Future.delayed(const Duration(milliseconds: 500), () {
|
||||
String text = Intl.getCurrentLocale().startsWith('zh')
|
||||
? "您好,我是众众,请问有什么可以帮您?"
|
||||
: "Hi, I'm Zhongzhong, may I help you ? ";
|
||||
messageService.addMessage(text, false, MessageStatus.normal);
|
||||
});
|
||||
}
|
||||
return ChatBox(
|
||||
scrollController: _scrollController,
|
||||
|
||||
Reference in New Issue
Block a user