mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 15:57:25 +00:00
Smooth scroll for comments page.
This commit is contained in:
@@ -99,7 +99,11 @@ class _CommentsPageState extends State<CommentsPage> {
|
|||||||
return Column(
|
return Column(
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
child: ListView.builder(
|
child: SmoothScrollProvider(
|
||||||
|
builder: (context, controller, physics) {
|
||||||
|
return ListView.builder(
|
||||||
|
controller: controller,
|
||||||
|
physics: physics,
|
||||||
primary: false,
|
primary: false,
|
||||||
padding: EdgeInsets.zero,
|
padding: EdgeInsets.zero,
|
||||||
itemCount: _comments!.length + 2,
|
itemCount: _comments!.length + 2,
|
||||||
@@ -156,6 +160,8 @@ class _CommentsPageState extends State<CommentsPage> {
|
|||||||
showAvatar: showAvatar,
|
showAvatar: showAvatar,
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
);
|
||||||
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
buildBottom(context)
|
buildBottom(context)
|
||||||
|
Reference in New Issue
Block a user