Fix: category colors and count elements

This commit is contained in:
2024-06-04 23:13:21 +03:00
parent 15105a7f33
commit 0170505376
4 changed files with 24 additions and 18 deletions

View File

@@ -269,13 +269,19 @@ class _DetailPageState extends State<DetailPage> {
item!.images[0].url,
height: 400,
),
Padding(
Center(
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 10),
child: Center(
child: Text(categoryName != null
? 'Категория: ${categoryName == "" ? "Без категории" : categoryName}'
child: Chip(
label: Text(categoryName != null
? (categoryName == ""
? "Без категории"
: categoryName!)
: ''),
)),
backgroundColor: Colors.white,
),
),
),
Center(
child: MarkdownBody(
data: '### Отстаток: _${item!.count}_',