The problem is in the user’s page in the scroll of the list view. I tried many solutions but no one is working.
This has been used on a scaffold’s body.
Users page the horizontal Scroll :
class UsersPage extends StatefulWidget {
const UsersPage({super.key});
@override
State createState() => _UsersPageState();
}
class _UsersPageState extends State {
@override
Widget build(BuildContext context) {
return Center(
child: Column(
children: [
Expanded(
child: ListView.builder(
scrollDirection: Axis.horizontal,
itemCount: 20,
itemBuilder: (c, index) {
return const UserItemCircular();
}),
)
],
),
);
}
}
2
Answers
For horizontal listview, you need to provide a fixed height.
Horizontal ListViews require a fixed height, as they expand horizontally.
Here is where you can make changes to your code. ✅
The Result