63 lines
1.8 KiB
Dart
63 lines
1.8 KiB
Dart
import 'package:cutdex_ui/widgets.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
/// Empty values while a project's content is being bound to its cards.
|
|
class EditorEmptyPanel extends StatelessWidget {
|
|
const EditorEmptyPanel({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) =>
|
|
const WorkspacePanel(child: SizedBox.expand());
|
|
}
|
|
|
|
class EditorTimelineDefaults extends StatelessWidget {
|
|
const EditorTimelineDefaults({super.key, this.showTabs = true});
|
|
|
|
final bool showTabs;
|
|
|
|
@override
|
|
Widget build(BuildContext context) => Column(
|
|
children: [
|
|
if (showTabs) ...[
|
|
const SizedBox(
|
|
key: Key('timeline-tabs-bar'),
|
|
height: 26,
|
|
child: Row(
|
|
children: [
|
|
IconButton(onPressed: null, icon: Icon(Icons.add, size: 16)),
|
|
],
|
|
),
|
|
),
|
|
const Divider(height: 1),
|
|
],
|
|
Expanded(
|
|
child: WorkspacePanel(
|
|
headerHeight: 32,
|
|
headerPadding: EdgeInsets.zero,
|
|
controls: SizedBox(
|
|
key: const Key('timeline-toolbar'),
|
|
height: 32,
|
|
child: SingleChildScrollView(
|
|
scrollDirection: Axis.horizontal,
|
|
child: Row(
|
|
children: [
|
|
for (final icon in [
|
|
Icons.undo,
|
|
Icons.redo,
|
|
Icons.content_cut,
|
|
Icons.align_horizontal_left,
|
|
Icons.align_horizontal_right,
|
|
Icons.delete_outline,
|
|
])
|
|
IconButton(onPressed: null, icon: Icon(icon, size: 16)),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
child: const SizedBox.expand(key: Key('timeline-default-tracks')),
|
|
),
|
|
),
|
|
],
|
|
);
|
|
}
|