I have below code to include all the list of items but i need to display a card item on top, which should be scrollable along with Firebaseanimatedlist, but the card should be visible only for the First Item.
How can i achieve this. With the below code, Card() sticks at the top and does not scroll in the scaffold.
return getContent() {
return new Container(
child: new Column(
children: <Widget>[
new Card(
child: new Text("STATIC ITEM TO DISPLAY ON TOP AS A HEADER FOR BELOW FIREBAE LIST"),
),
new Flexible(
child: new FirebaseAnimatedList(
query: Your database reference,
itemBuilder: (_, DataSnapshot snapshot, Animation<double>
animation, int index) {
return new Column();
}
),
)
]
)
);
}