Single Flutter package at the repo root. All code, tests, assets, and platform directories moved from app/ to root. Package renamed from clide_app to clide — all imports rewritten. Merged pubspec combines core (ffi) and app (flutter, yaml, xterm) dependencies. Makefile simplified: no APP_PRESENT conditionals, no cd, no daemon lifecycle. 317 tests pass. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
45 lines
1.1 KiB
Dart
45 lines
1.1 KiB
Dart
import 'package:alchemist/alchemist.dart';
|
|
import 'package:clide/widgets/widgets.dart';
|
|
import 'package:flutter/widgets.dart';
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
|
|
import '../helpers/kernel_fixture.dart';
|
|
import '../helpers/widget_harness.dart';
|
|
|
|
void main() {
|
|
late KernelFixture f;
|
|
setUp(() async => f = await KernelFixture.create());
|
|
tearDown(() async => f.dispose());
|
|
|
|
goldenTest(
|
|
'ClideIcon painter set',
|
|
fileName: 'clide_icon',
|
|
builder: () => GoldenTestGroup(
|
|
columns: 4,
|
|
children: [
|
|
for (final pair in const [
|
|
('folder', FolderIcon()),
|
|
('gear', GearIcon()),
|
|
('close', CloseIcon()),
|
|
('chevron-right', ChevronRightIcon()),
|
|
('chevron-down', ChevronDownIcon()),
|
|
('dot', DotIcon()),
|
|
('check', CheckIcon()),
|
|
('plug', PlugIcon()),
|
|
])
|
|
GoldenTestScenario(
|
|
name: pair.$1,
|
|
child: harness(
|
|
f,
|
|
SizedBox(
|
|
width: 24,
|
|
height: 24,
|
|
child: ClideIcon(pair.$2, size: 24),
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|