Skip to content

Instantly share code, notes, and snippets.

@VB10
Created October 23, 2020 12:14
Show Gist options
  • Save VB10/66617101cff5dad526842e189d5f87ab to your computer and use it in GitHub Desktop.
Save VB10/66617101cff5dad526842e189d5f87ab to your computer and use it in GitHub Desktop.
ListView _buildListview(AsyncSnapshot<List<GiyimModel>> snapshot) {
return ListView.builder(
itemCount: snapshot.data.length,
itemBuilder: (BuildContext context, int index) {
GiyimModel item = snapshot.data[index];
return Container(
margin: EdgeInsets.symmetric(horizontal: 10, vertical: 15),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(6),
boxShadow: [
BoxShadow(
color: Theme.of(context).hintColor.withOpacity(0.15),
offset: Offset(0, 3),
blurRadius: 10)
],
),
child: ListView.builder(
itemCount: item.kiyafetDonemItemList.length,
shrinkWrap: true,
itemBuilder: (context,index2)=> Column(children:[
ListTile(
// leading: Image.asset(
// "assets/icon/egitim-icon.png",
// height: 30,
// ),
title: Text(
item.kiyafetDonem.bitisTarihi.toString(),
),
),
ListTile(
title: Text(
item.kiyafetDonemItemList[index2].kiyafetDonemItem.adi,
style: Helper.cardHeader1,
),
trailing: Column(
children: [
Text(
item
.kiyafetDonemItemList[index]
.kiyafetDonemItemSecenekLineList[index2]
.kiyafetDonemItemSecenek
.adi,
style: Helper.cardHeader1,
),
],
),
),
]),
),
);
},
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment