Smooth scroll for comments page.

This commit is contained in:
2025-04-03 11:53:43 +08:00
parent 3da00595b7
commit 276e23354d

View File

@@ -99,7 +99,11 @@ class _CommentsPageState extends State<CommentsPage> {
return Column(
children: [
Expanded(
child: ListView.builder(
child: SmoothScrollProvider(
builder: (context, controller, physics) {
return ListView.builder(
controller: controller,
physics: physics,
primary: false,
padding: EdgeInsets.zero,
itemCount: _comments!.length + 2,
@@ -156,6 +160,8 @@ class _CommentsPageState extends State<CommentsPage> {
showAvatar: showAvatar,
);
},
);
},
),
),
buildBottom(context)