perf(editor): native Windows preview and UI-first timeline navigation #11

Merged
lingjhf merged 3 commits from perf/windows-preview-20261007 into main 2026-10-07 10:05:17 +00:00
2 changed files with 14 additions and 3 deletions
Showing only changes of commit e345c81af7 - Show all commits

No files matched your search

+1 -1
View File
@@ -33,7 +33,7 @@ final class ProjectsProvider
Projects create() => Projects();
}
String _$projectsHash() => r'89495fb433ac9e5d066f0882599598fb2e0a4e54';
String _$projectsHash() => r'ecadd6625f90f179184942fe492eac7edb6e21c6';
abstract class _$Projects extends $AsyncNotifier<ProjectState> {
FutureOr<ProjectState> build();
+13 -2
View File
@@ -3608,7 +3608,12 @@ void main() {
of: find.byKey(const Key('timeline-toolbar')),
matching: find.byType(IconButton),
);
expect(toolbarButtons, findsNWidgets(6));
expect(toolbarButtons, findsNWidgets(7));
final fitButton = find.byKey(const ValueKey('timeline-fit'));
expect(
tester.widget<IconButton>(fitButton).tooltip,
localized.fitTimeline,
);
final toolbarBounds = tester.getRect(
find.byKey(const Key('timeline-toolbar')),
);
@@ -3620,7 +3625,9 @@ void main() {
final bounds = tester.getRect(
find.byElementPredicate((e) => e == button),
);
buttonBounds.add(bounds);
if (button.widget.key != const ValueKey('timeline-fit')) {
buttonBounds.add(bounds);
}
expect(
bounds.size,
const Size(AppControlSize.headerButton, AppControlSize.headerButton),
@@ -3628,6 +3635,10 @@ void main() {
expect((button.widget as IconButton).iconSize, AppIconSize.header);
}
expect(buttonBounds.first.left - panelBounds.left, AppSpacing.gap);
expect(
panelBounds.right - tester.getRect(fitButton).right,
AppSpacing.gap,
);
for (var i = 1; i < buttonBounds.length; i++) {
expect(
buttonBounds[i].left - buttonBounds[i - 1].right,