return ListView.builder(
// itemCount: snapshot.data.length,
itemBuilder: (_,i) => Row(
mainAxisAlignment:
MainAxisAlignment.spaceEvenly,
children: index < snapshot.data.length-1
? <Widget>[
Column(
children: <Widget>[
geetBookCard(
"assets/picfour.jpeg",
snapshot
.data[(index % 2 != 0
? index += 1
: index)
]
.data['Name'],
snapshot.data[index]
.data['Price'],
true,
context),
SizedBox(height: 15.0)
],
),
Column(
children: <Widget>[
geetBookCard(
"assets/picfour.jpeg",
snapshot
.data[ (index % 2 == 0
? index += 1
: index)
]
.data['Name'],
snapshot.data[index]
.data['Price'],
true,
context),
],
),
]
: blank(i),
));
Widget blank(int i){
return Container(
width: 0,
height: 0,
);
}
please help me I want to divide data from firebase into two columns i divided it but getting type 'Container' is not a subtype of type 'List<Widget>' that error please give me a suggestion.