fix(inventory): tappable photo dots + non-truncated quantity scale

- Photo carousel dots are now tappable (jump to that photo) with a larger hit
  area, so you can browse all images even when swiping the small thumbnail is
  awkward.
- The quantity unit scale is a Wrap instead of a horizontal scroll, so every
  unit stays visible instead of being cut off.
This commit is contained in:
vjrj 2026-07-08 13:59:21 +02:00
parent a69047326e
commit 46ef2c61cd
2 changed files with 35 additions and 21 deletions

View file

@ -154,22 +154,19 @@ class _QuantityPickerState extends State<QuantityPicker> {
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(
height: 76,
child: ListView.separated(
scrollDirection: Axis.horizontal,
itemCount: kinds.length,
separatorBuilder: (_, _) => const SizedBox(width: 4),
itemBuilder: (context, i) {
final kind = kinds[i];
return _ScaleItem(
// Wrap (not a horizontal scroll) so every unit stays visible.
Wrap(
spacing: 4,
runSpacing: 4,
children: [
for (final kind in kinds)
_ScaleItem(
kind: kind,
label: unitLabel(t, kind),
selected: _kind == kind,
onTap: () => _select(kind),
);
},
),
),
],
),
if (_kind?.countable ?? false) ...[
const SizedBox(height: 8),