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

+70
View File
@@ -0,0 +1,70 @@
import 'package:flutter/material.dart';
import '../../integrations/platform/editor_window_chrome.dart';
import 'package:cutdex_native/cutdex_native.dart';
import '../../l10n/l10n.dart';
/// Navigation and mode controls for bounded workspaces. Drawer visibility is
/// local presentation state and never overwrites the desktop sidebar preference.
class WorkspaceFrame extends StatelessWidget {
const WorkspaceFrame({
super.key,
required this.navigation,
required this.headerActions,
required this.title,
required this.integratedTitlebar,
required this.child,
this.bottomNavigationBar,
});
final Widget navigation;
final Widget headerActions;
final String title;
final bool integratedTitlebar;
final Widget child;
final Widget? bottomNavigationBar;
@override
Widget build(BuildContext context) => Scaffold(
drawer: Drawer(width: 320, child: SafeArea(child: navigation)),
body: Column(
children: [
SizedBox(
key: const Key('workspace-window-header'),
height: 48,
child: WindowHeaderPadding(
child: Row(
children: [
if (integratedTitlebar)
SizedBox(width: EditorWindowChrome.leadingWidth),
HeaderControlRegion(
child: Builder(
builder: (context) => IconButton(
key: const Key('workspace-navigation-button'),
tooltip: context.l10n.expandSidebar,
onPressed: () => Scaffold.of(context).openDrawer(),
icon: const Icon(Icons.menu),
),
),
),
Expanded(
child: Text(
title,
maxLines: 1,
overflow: TextOverflow.ellipsis,
),
),
headerActions,
],
),
),
),
const Divider(height: 1),
Expanded(child: child),
],
),
bottomNavigationBar: bottomNavigationBar,
);
}