Fix: some changes
This commit is contained in:
@@ -283,9 +283,22 @@ class _BasketPageState extends State<BasketPage> {
|
||||
name: shortString(item.title),
|
||||
price: item.price.toStringAsFixed(2),
|
||||
id: item.id,
|
||||
image: Image(
|
||||
image: NetworkImage(item.images[0].url),
|
||||
width: 50,
|
||||
image: FutureBuilder(
|
||||
future: precacheImage(
|
||||
NetworkImage(item.images[0].url),
|
||||
context),
|
||||
builder: (context, snapshot) {
|
||||
if (snapshot.connectionState ==
|
||||
ConnectionState.done) {
|
||||
return Image(
|
||||
image: NetworkImage(
|
||||
item.images[0].url),
|
||||
width: 50,
|
||||
);
|
||||
} else {
|
||||
return const CircularProgressIndicator();
|
||||
}
|
||||
},
|
||||
),
|
||||
onTapPlus: () =>
|
||||
addItem(item.id.toString()),
|
||||
|
||||
Reference in New Issue
Block a user