Invoice and trade screens overflow at 320 dp with 2× text in German
Maintainers usually reply within 1 day
@pgauravparashar is already working on this.
Since Oct 7, 2026.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 68/100
Research direction
Start with the named widgets in lib/features/order/widgets/invoice_widgets.dart and lib/features/trades/widgets/trade_step_block.dart, then read the 320 dp, 2× German test pattern in trade_detail_screen_test.dart. Add coverage for the listed invoice, time-up and trade states; re-measure InvoiceTimeUpView on the bond screens. Done when each case fits without overflow and tester.takeException() is null.
Written by the indexing model from the issue text.
Description
What happens
At 320 dp wide, with text scaled to 2× and the app in German — the combination .specify/DESIGN_SYSTEM.md asks every screen to hold up in (DS-SPC-5, DS-L10N-2, DS-A11Y-4) — the buyer's invoice screen, the seller's hold-invoice screen, the bond time-up view and the trade screen overflow. Users with large text on a narrow phone get clipped content and, in debug builds, the overflow stripes.
Measured on main (7a8f7075)
Widget tests mounting each screen with Locale('de'), a 320 × 800 view and TextScaler.linear(2); each overflow reported with the widget that caused it:
| Screen | State | Overflow | Widget |
|---|---|---|---|
Buyer's invoice (/add_invoice) |
waiting for the invoice | 103 px right | hero amount row — InvoiceHeroCard, lib/features/order/widgets/invoice_widgets.dart:205 |
Seller's hold invoice (/pay_invoice) |
QR shown | 178 px right | hero amount row — same InvoiceHeroCard row |
| Seller's hold invoice | QR shown | 25 px right | label → value row — InvoiceCounterpartCard, invoice_widgets.dart:607 |
InvoiceTimeUpView |
time up | 208–284 px bottom | its Column, invoice_widgets.dart:736 |
Trade screen (/trade_detail) |
waiting step, active, fiat sent | 27 px right | step block header row — lib/features/trades/widgets/trade_step_block.dart:81 |
InvoiceTimeUpView was measured on the invoice screens, which showed it at 00:00 until #710; after #710 only the bond screens use it, so it should be re-measured there.
Likely causes
- The hero amount is a 38-pt figure plus
satsin aRowthat cannot shrink or wrap; at 2× it is wider than the screen even for small amounts. InvoiceCounterpartCardputs the label, the value and the reputation on one row; the value hasExpanded+ ellipsis, but the label and the trailing reputation do not give way.InvoiceTimeUpViewlays its content between twoSpacers in aColumnwith no scroll, so at 2× it does not fit the height.- The step block header puts the step label and the status chip side by side with nothing allowed to wrap.
Expected
Each screen holds up at 320 dp, 2× text, German, with a widget test that proves it (tester.takeException() is null), as DS-A11Y-4 requires. The fix should keep the regular layout unchanged: the hero amount scaling down (e.g. FittedBox) rather than wrapping, rows letting their secondary piece shrink or wrap, and the time-up view scrolling. trade_detail_screen_test.dart has the pattern since #710 (the id row case: 320 dp, textScaleFactorTestValue = 2.0, German, scrolled into view).
- The step block header puts the step label and the status chip swed to wrap.
Context
Found while reviewing #710 (the countdown change for #569), where the review bots asked for this coverage. These overflows are the same before and after #710, which does not touch these widgets. #710 fixed the one it did touch — the trade screen's order-id row (16 px without the creation date, about 618 px with it) — and covers it with a test; the rest is tracked here.
- Dominant language
- Dart
- Stars
- 11
- Forks
- 9
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 16
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from MostroP2P/app
-
documentation priority: low
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
Maintainers usually reply within 1 day
-
area: ui bug priority: medium
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
area: ui bug priority: high
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Bug: Button "Share logs" does nothingPossibly taken @Luquitasjeffrey claimed this 7 days ago. Open
Difficulty 2/5 Half a day Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
area: rust-core bug priority: low
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
Similar issues
-
Python example: list a model's scenes and their camerasPossibly taken @rudraparmar76 claimed this today. Opendocumentation good first issue python
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
iamahsanmehmood/openskp#796 · 1 comment ·
Maintainers usually reply within 1 day
-
needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Plural rendering: first matching part wins, but gen-l10n lets the last one win (=1 shadows one)Openbug help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
crowdin/flutter-sdk#97 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
MrSpideyNihal/lockfeed#16 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
InlitX/GymMane#529 · 1 comment ·
Maintainers usually reply within 1 day