feat: initial Cutdex application

Add the Flutter video editing application with project management, media
import, timeline editing, preview, AI assistance, diagnostics and settings.

Include shared UI and native host packages, platform runners, application
tests and release tooling.

Provide usage and contribution guides, the MIT license and third-party
notices. Exclude local credentials, build outputs and validation data.
This commit is contained in:
lingjhf committed 2026-10-05 23:36:23 +08:00
commit 27e77fff39
718 files changed
+183958

No files matched your search

@@ -0,0 +1,58 @@
import 'package:cutdex/l10n/l10n.dart';
import 'package:flutter/material.dart';
import 'package:cutdex_ui/theme.dart';
import '../../workspace/media_availability.dart';
class UnavailableMediaPlaceholder extends StatelessWidget {
const UnavailableMediaPlaceholder({
super.key,
required this.availability,
this.showLabel = true,
this.isPreview = false,
});
final MediaAvailability availability;
final bool showLabel;
final bool isPreview;
@override
Widget build(BuildContext context) {
final theme = Theme.of(context);
final label = availability == MediaAvailability.missing
? context.l10n.mediaMissing
: context.l10n.mediaUnavailable;
// Project covers share the canvas background, including missing media.
return ColoredBox(
color: isPreview
? Colors.transparent
: AppSurfaces.of(context).previewBackground,
child: Center(
child: FittedBox(
fit: BoxFit.scaleDown,
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
Icon(
Icons.broken_image_outlined,
size: isPreview ? 32 : 24,
color: theme.colorScheme.error,
),
if (showLabel) ...[
const SizedBox(height: AppSpacing.gap),
Text(
label,
style:
(isPreview
? theme.textTheme.bodyMedium
: theme.textTheme.bodySmall)
?.copyWith(color: theme.colorScheme.error),
),
],
],
),
),
),
);
}
}