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
@@ -225,29 +225,38 @@ class _EditorPreviewContent extends ConsumerWidget {
|
||||
listenable: activeController.positionChanges,
|
||||
builder: (context, _) => Theme(
|
||||
data: AppTheme.previewCanvasTheme,
|
||||
child:
|
||||
activeController.maskEditingElement != null ||
|
||||
activeController.obscureEditingElement != null
|
||||
? MaskInteractionOverlay(
|
||||
controller: activeController,
|
||||
canvasRect: rect,
|
||||
obscure:
|
||||
activeController.obscureEditingElement !=
|
||||
null,
|
||||
)
|
||||
: PreviewInteractionOverlay(
|
||||
onError: (error) =>
|
||||
ErrorNotificationHost.maybeOf(context)?.show(
|
||||
ErrorNotification(
|
||||
content: Text(
|
||||
context.l10n.canvasTransformFailed,
|
||||
child: NativePreviewOverlay(
|
||||
session: activeController.session!,
|
||||
enabled:
|
||||
activeController.selectedVisualIds.isNotEmpty ||
|
||||
activeController.maskEditingElement != null ||
|
||||
activeController.obscureEditingElement != null,
|
||||
child:
|
||||
activeController.maskEditingElement != null ||
|
||||
activeController.obscureEditingElement != null
|
||||
? MaskInteractionOverlay(
|
||||
controller: activeController,
|
||||
canvasRect: rect,
|
||||
obscure:
|
||||
activeController.obscureEditingElement !=
|
||||
null,
|
||||
)
|
||||
: PreviewInteractionOverlay(
|
||||
onError: (error) =>
|
||||
ErrorNotificationHost.maybeOf(
|
||||
context,
|
||||
)?.show(
|
||||
ErrorNotification(
|
||||
content: Text(
|
||||
context.l10n.canvasTransformFailed,
|
||||
),
|
||||
details: error.toString(),
|
||||
),
|
||||
details: error.toString(),
|
||||
),
|
||||
),
|
||||
controller: activeController,
|
||||
canvasRect: rect,
|
||||
),
|
||||
controller: activeController,
|
||||
canvasRect: rect,
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
: null;
|
||||
@@ -339,7 +348,9 @@ class _EditorPreviewContent extends ConsumerWidget {
|
||||
return Stack(
|
||||
fit: StackFit.expand,
|
||||
children: [
|
||||
if (preview.session case final session?)
|
||||
if (preview.session case final session?
|
||||
when preview.error == null &&
|
||||
preview.durationTick > 0)
|
||||
RuntimePreview(session: session),
|
||||
ListenableSelector(
|
||||
listenable: Listenable.merge([
|
||||
@@ -367,14 +378,17 @@ class _EditorPreviewContent extends ConsumerWidget {
|
||||
padding: const EdgeInsets.all(
|
||||
AppSpacing.medium,
|
||||
),
|
||||
child: Text(
|
||||
context.l10n.mediaOffline(
|
||||
unavailable.join(', '),
|
||||
child: NativePreviewOcclusion(
|
||||
child: Text(
|
||||
context.l10n.mediaOffline(
|
||||
unavailable.join(', '),
|
||||
),
|
||||
maxLines: 2,
|
||||
overflow:
|
||||
TextOverflow.ellipsis,
|
||||
textAlign:
|
||||
TextAlign.center,
|
||||
),
|
||||
maxLines: 2,
|
||||
overflow:
|
||||
TextOverflow.ellipsis,
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -559,7 +573,8 @@ class _SourcePreviewPanel extends ConsumerWidget {
|
||||
return Stack(
|
||||
fit: StackFit.expand,
|
||||
children: [
|
||||
RuntimePreview(session: session),
|
||||
if (!source.audioOnly)
|
||||
RuntimePreview(session: session),
|
||||
if (source.audioOnly)
|
||||
IgnorePointer(
|
||||
child: AudioAssetTile(
|
||||
|
||||
Reference in new issue
Block a user