perf(editor): native Windows preview and UI-first timeline navigation (#11)
Gitea CI / Check code and tests (push) Successful in 8m7s
Gitea CI / Build Windows x64 app (push) Successful in 5m48s
Gitea CI / Build Android APK (push) Successful in 5m59s
Gitea CI / Audit and package Windows x64 (push) Successful in 1m17s
Gitea CI / Assemble and validate CI artifacts (push) Successful in 1m22s
Gitea CI / Gitea CI passed (push) Successful in 2s
Gitea CI / Check code and tests (push) Successful in 8m7s
Gitea CI / Build Windows x64 app (push) Successful in 5m48s
Gitea CI / Build Android APK (push) Successful in 5m59s
Gitea CI / Audit and package Windows x64 (push) Successful in 1m17s
Gitea CI / Assemble and validate CI artifacts (push) Successful in 1m22s
Gitea CI / Gitea CI passed (push) Successful in 2s
This commit was merged in pull request #11.
This commit is contained in:
1 parent
0ecf920669
commit
b4cb12cbe3
36 files changed
+3292
-148
No files matched your search
@@ -37,10 +37,12 @@ class EditorTimelinePanel extends StatelessWidget {
|
||||
required this.projectId,
|
||||
required this.timelineId,
|
||||
this.pending = false,
|
||||
this.timelineLoading = false,
|
||||
});
|
||||
final String projectId;
|
||||
final String timelineId;
|
||||
final bool pending;
|
||||
final bool timelineLoading;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => Theme(
|
||||
@@ -56,10 +58,15 @@ class EditorTimelinePanel extends StatelessWidget {
|
||||
),
|
||||
const Divider(height: 1),
|
||||
Expanded(
|
||||
child: _TimelineSessionContent(
|
||||
projectId: projectId,
|
||||
timelineId: timelineId,
|
||||
),
|
||||
child: timelineLoading
|
||||
? const EditorTimelineDefaults(
|
||||
key: Key('timeline-pending'),
|
||||
showTabs: false,
|
||||
)
|
||||
: _TimelineSessionContent(
|
||||
projectId: projectId,
|
||||
timelineId: timelineId,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -183,7 +190,11 @@ class _TimelineTabsBarState extends ConsumerState<_TimelineTabsBar> {
|
||||
(ref.read(projectsProvider).value?.projectBusy ?? false);
|
||||
|
||||
Future<void> _openTimeline(TimelineSummary timeline) async {
|
||||
if (_operationsBusy || timeline.id == widget.timelineId) return;
|
||||
if (widget.creating ||
|
||||
(ref.read(projectsProvider).value?.projectBusy ?? false) ||
|
||||
timeline.id == widget.timelineId) {
|
||||
return;
|
||||
}
|
||||
await ref
|
||||
.read(projectsProvider.notifier)
|
||||
.openTimeline(widget.projectId, timeline.id);
|
||||
@@ -798,6 +809,13 @@ class _TimelineEditorState extends State<_TimelineEditor> {
|
||||
],
|
||||
),
|
||||
const Spacer(),
|
||||
_toolbarButton(
|
||||
key: const ValueKey('timeline-fit'),
|
||||
tooltip: context.l10n.fitTimeline,
|
||||
semanticLabel: context.l10n.fitTimeline,
|
||||
onPressed: controller.fitTimeline,
|
||||
icon: Icons.fit_screen,
|
||||
),
|
||||
if (controller.commandRejection != null)
|
||||
Tooltip(
|
||||
message: controller.commandRejection!,
|
||||
|
||||
Reference in new issue
Block a user