diff --git a/bytedesk_demo/lib/main.dart b/bytedesk_demo/lib/main.dart index e62c5c3..2b4996a 100644 --- a/bytedesk_demo/lib/main.dart +++ b/bytedesk_demo/lib/main.dart @@ -189,6 +189,8 @@ class _MyAppState extends State with WidgetsBindingObserver { content: event.message.content, onReply: () { OverlaySupportEntry.of(context).dismiss(); + // 进入客服页面,支持自定义页面标题 + BytedeskKefu.startChatThread(context, event.message.thread, title: '客服会话'); }, ); }, duration: Duration(milliseconds: 4000)); diff --git a/bytedesk_demo/pubspec.yaml b/bytedesk_demo/pubspec.yaml index 94189cd..d3c442b 100644 --- a/bytedesk_demo/pubspec.yaml +++ b/bytedesk_demo/pubspec.yaml @@ -40,7 +40,7 @@ dependencies: # 请在ios/Podfile中添加:use_frameworks! vibration: ^1.7.2 # https://pub.dev/packages/bytedesk_kefu - bytedesk_kefu: ^0.3.0 + bytedesk_kefu: ^0.3.1 # The following adds the Cupertino Icons font to your application.