fix: ultra-fake orders
This commit is contained in:
@@ -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();
|
||||
}
|
||||
},
|
||||
),
|
||||
);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user