Browse Source

[new]聊天界面增加回弹效果

zk 1 year ago
parent
commit
1c113623b0
1 changed files with 2 additions and 0 deletions
  1. 2 0
      lib/module/chat/view.dart

+ 2 - 0
lib/module/chat/view.dart

@@ -144,6 +144,8 @@ class ChatPage extends BasePage<ChatController> {
                 onRefresh: controller.loadMoreHistory,
                 child: ListView.builder(
                     reverse: true,
+                    physics: const BouncingScrollPhysics(
+                        parent: AlwaysScrollableScrollPhysics()),
                     controller: controller.listScrollController,
                     itemBuilder: _chatItemBuilder,
                     itemCount: controller.chatItems.length),