fixed history

This commit is contained in:
Mohamed Nouffer
2023-09-12 16:00:58 +05:30
parent 48f4b833f6
commit f64ac1ccfd
4 changed files with 21 additions and 8 deletions

View File

@ -41,17 +41,24 @@ class _HistoryPageState extends State<HistoryPage> {
print("----- history -----");
return Container(
width: MediaQuery.of(context).size.width,
height: 150,
height: MediaQuery.of(context).size.height,
child: ListView.builder(
itemCount: dests.length,
itemBuilder: (ctx, index) {
print("--- photo ${dests[index].checkin_image!} ----");
return ListTile(
title: Text(dests[index].name ?? ""),
subtitle:
Text(dests[index].address ?? ""),
leading: dests[0].photos != null
? Container(width: 100, height: 100, child: Image.file(File(dests[0].photos!)))
leading: dests[index].checkin_image != null
? Container(width: 100, height: 100, child: Image.file(File(dests[index].checkin_image!)))
: Container(),
trailing: ElevatedButton(
child: Text(dests[index].cp.toString()),
style: ElevatedButton.styleFrom(shape: CircleBorder()),
onPressed: () {
},),
);
}));
} else {