image
This commit is contained in:
parent
61134f7b63
commit
7ee1cda550
2 changed files with 10 additions and 5 deletions
|
@ -361,12 +361,14 @@ class FlowInfo {
|
|||
|
||||
class Item {
|
||||
late String id;
|
||||
late String? image;
|
||||
late String name;
|
||||
late String? category;
|
||||
late Map<String, ItemVariant> variants;
|
||||
|
||||
Item(Map<String, dynamic> json) {
|
||||
id = json["uuid"];
|
||||
image = json["image"];
|
||||
name = json["name"];
|
||||
category = json["category"];
|
||||
variants = <String, ItemVariant>{};
|
||||
|
|
|
@ -43,12 +43,15 @@ class _ItemViewState extends State<ItemView> {
|
|||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
children: [
|
||||
const Align(
|
||||
Align(
|
||||
alignment: Alignment.centerLeft,
|
||||
child: Placeholder(
|
||||
fallbackWidth: 100,
|
||||
fallbackHeight: 100,
|
||||
),
|
||||
child: widget.item.image != null
|
||||
? Image.network(
|
||||
"${API().instance}/${widget.item.image}",
|
||||
height: 100,
|
||||
width: 100,
|
||||
)
|
||||
: null,
|
||||
),
|
||||
const SizedBox(
|
||||
width: 16.0,
|
||||
|
|
Loading…
Reference in a new issue