fix: ultra-fake orders

This commit is contained in:
2024-06-18 20:40:45 +03:00
parent bdcd4507c2
commit 893b925a04
7 changed files with 170 additions and 191 deletions

View File

@@ -153,10 +153,22 @@ class _HistoryPageState extends State<HistoryPage> {
id: item.id,
cost: item.sum,
date: item.date,
image: Image(
image: AssetImage(
'assets/${item.photo}'),
width: 50,
image: FutureBuilder(
future: precacheImage(
NetworkImage(item.photo),
context),
builder: (context, snapshot) {
if (snapshot.connectionState ==
ConnectionState.done) {
return Image(
image: NetworkImage(
item.photo),
width: 50,
);
} else {
return const CircularProgressIndicator();
}
},
),
);
},