Files
arbiter/.claude/memory/feedback_widget_decomposition.md
hdbg f461d945cb
Some checks failed
ci/woodpecker/push/server-audit Pipeline was successful
ci/woodpecker/push/server-lint Pipeline failed
ci/woodpecker/push/server-vet Pipeline failed
ci/woodpecker/push/server-test Pipeline was successful
ci/woodpecker/push/useragent-analyze Pipeline failed
feat(evm): add EVM grants screen with create UI and list
2026-03-28 16:34:02 +01:00

865 B

name, description, type
name description type
Widget decomposition and provider subscriptions Prefer splitting screens into multiple focused files/widgets; each widget subscribes to its own relevant providers feedback

Split screens into multiple smaller widgets across multiple files. Each widget should subscribe only to the providers it needs (ref.watch at lowest possible level), rather than having one large screen widget that watches everything and passes data down as parameters.

Why: Reduces unnecessary rebuilds; improves readability; each file has one clear responsibility.

How to apply: When building a new screen, identify which sub-widgets need their own provider subscriptions and extract them into separate files (e.g., widgets/grant_card.dart watches enrichment providers itself, rather than the screen doing it and passing resolved strings down).