update manual start
This commit is contained in:
@ -38,22 +38,33 @@ class _HistoryPageState extends State<HistoryPage> {
|
||||
} else if (snapshot.hasData) {
|
||||
final dests = snapshot.data;
|
||||
if (dests!.length > 0) {
|
||||
return Center(
|
||||
child: ListView.builder(itemBuilder:(ctx, index){
|
||||
return ListTile(
|
||||
title: Text(dests[index].name?? ""),
|
||||
subtitle: Text(dests[index].address ?? ""),
|
||||
leading: dests[0].photos != null ? Image.file(File(dests[0].photos!)) : Container(),
|
||||
);
|
||||
}),
|
||||
);
|
||||
print("----- history -----");
|
||||
return Container(
|
||||
width: MediaQuery.of(context).size.width,
|
||||
height: 150,
|
||||
child: Expanded(
|
||||
child: ListView.builder(
|
||||
itemCount: dests.length,
|
||||
itemBuilder: (ctx, index) {
|
||||
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!)))
|
||||
: Container(),
|
||||
);
|
||||
}),
|
||||
));
|
||||
} else {
|
||||
return Center(child: Text("No checkin yet"));
|
||||
}
|
||||
}
|
||||
}
|
||||
else if(snapshot.connectionState == ConnectionState.waiting){
|
||||
return Center(child: CircularProgressIndicator(),);
|
||||
} else if (snapshot.connectionState ==
|
||||
ConnectionState.waiting) {
|
||||
return Center(
|
||||
child: CircularProgressIndicator(),
|
||||
);
|
||||
}
|
||||
return Container();
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user