feat(ui): align desktop controls and inspector typography with Figma UI3

This commit is contained in:
lingjhf committed 2026-10-09 19:20:54 +08:00
1 parent abc1868550
commit bc3fdd6119
45 files changed
+1806 -227

No files matched your search

@@ -19,8 +19,7 @@ void main() {
home: Scaffold(
body: SizedBox(
width: 220,
child: Padding(
padding: const EdgeInsets.all(12),
child: AppPropertySection(
child: AppPropertyGroup(
label: 'Position',
actions: [
@@ -38,7 +37,7 @@ void main() {
errorText: 'Invalid value',
),
),
SizedBox(width: 4),
SizedBox(width: AppInspectorMetrics.rowGap),
Expanded(child: AppTextField(label: 'Y')),
],
),
@@ -51,8 +50,8 @@ void main() {
await tester.pumpAndSettle();
final first = find.byType(TextField).first;
final second = find.byType(TextField).last;
expect(tester.getRect(first).width, 96);
expect(tester.getRect(second).right, 208);
expect(tester.getRect(first).width, 94);
expect(tester.getRect(second).right, 212);
expect(tester.getRect(first).top, tester.getRect(second).top);
expect(
tester.getRect(first).height,
@@ -60,7 +59,7 @@ void main() {
);
expect(
tester.getRect(find.byType(IconButton)).bottom,
tester.getRect(first).top - 4,
tester.getRect(first).top - 12,
);
expect(
tester.widget<TextField>(first).decoration!.prefixIcon,