I have a list of widgets I want the first two swipe horizontally and the others vertically displaying all the widgets on the screen I tried that but it doesn't work . each widget is wrap in this widget widcard .so what are the changes to be made here is the structure of all the widgets.it contains the following elements it is the scroll that does not work I tried with pageview but it doesn't work how to make it work properly
body: SingleChildScrollView(
scrollDirection: Axis.vertical,
child: Column(
mainAxisSize: MainAxisSize.min,
children: <Widget>[
SizedBox(
child: ListView(
scrollDirection: Axis.horizontal
children: [
Widget1(),
Widget2()
]),
),
Widget3(),
Widget4(),
widget5(),
widget6(),
],
),
),```
```class widcard extends StatelessWidget {
final Widget child;
widcard ({required this.child});
@override
Widget build(BuildContext context) {
return Padding(
padding: EdgeInsets.only(bottom: 24),
child: Card(
child: child,
),
);
}
}```
the widget
``` Widget build(BuildContext context) {
return FutureBuilder<Mydata?>(
future: fetchdatas(),
builder: (context, snapshot) {
if (snapshot.connectionState == ConnectionState.active ) {
return loading();
}
if (snapshot.hasData) {
return Stack(
children: [
widcard (
child: Padding(
padding: EdgeInsets.symmetric(horizontal: 16),
child: Column(
children: [
Padding(padding: EdgeInsets.all(8)),
Center(
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Container(
decoration: BoxDecoration(
shape: BoxShape.circle, color: Colors.grey),
width: 10,
height: 10,
),
SizedBox(
width: 10,
),
Container(
decoration: BoxDecoration(
shape: BoxShape.circle,
color: Colors.black),
width: 10,
height: 10,
),
]),
),
Text(snapshot.data!.fistarticle),
],
),
),
),
],
);
} else {
return Nodata();
}
},
);
}
```ListView(
children: [
SingleChildScrollView(
scrollDirection: Axis.horizontal,
child: Row(children: [
widget1()
widget2()
]),
),
widget3()
widget4()
widget5()
widget6()
],
));```
