update manual start

This commit is contained in:
Mohamed Nouffer
2023-09-06 15:25:12 +05:30
parent 0f3bf2c2c7
commit 7b33468e3f
2 changed files with 53 additions and 18 deletions

View File

@ -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();
}),