fixed history
This commit is contained in:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user