What I want to do is to add an independent item in fron at listview.builder in flutter Like Instagram Stories the first element should be independent from the others items into the listview.builder. This is my code for listview.builder
ListView.builder(
scrollDirection: Axis.horizontal,
shrinkWrap: true,
itemBuilder: (ctx, int) {
return Card(
elevation: 5,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(5)),
child: Container(
decoration: BoxDecoration(
color: Color(0xFF1f2032),
borderRadius: BorderRadius.circular(5),
),
width: 130,
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Icon(Icons.book,color: Colors.white,size: 16,),
SizedBox(width: 5,),
Text(
aliasName,
style: TextStyle(
color: Colors.white,
fontSize: 14,
fontWeight: FontWeight.w300,
),
)
]),
),
);
},
),
