Avatar menu: same side inset as the Files list rows

The card was inset 16px from each screen edge; the list rows are 12px, so it
read as narrower. Now NooSpace.sm, with a test on the account row's width.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Ayushya Amitabh
2026-10-06 21:02:21 -04:00
co-authored by Claude Sonnet 5.5
parent 8805bafb97
commit c5b46fd493
2 changed files with 7 additions and 1 deletions
+4
View File
@@ -219,5 +219,9 @@ void main() {
tester.getTopRight(row).dx - tester.getTopRight(avatar).dx,
NooSpace.md,
);
// The card is as wide as the Files list's rows: inset NooSpace.sm from
// each screen edge, less its 1px border and 1px inner padding per side.
final screenWidth = tester.getSize(find.byType(MaterialApp)).width;
expect(tester.getSize(row).width, screenWidth - 2 * NooSpace.sm - 4);
});
}