Gitea CI / Check code and tests (push) Successful in 6m37s
Gitea CI / Build Windows x64 app (push) Successful in 3m18s
Gitea CI / Build Android APK (push) Successful in 3m47s
Gitea CI / Audit and package Windows x64 (push) Successful in 1m7s
Gitea CI / Assemble and validate CI artifacts (push) Successful in 50s
Gitea CI / Gitea CI passed (push) Successful in 2s
Gitea Release / Prepare draft Release (push) Successful in 9s
Gitea Release / Upload Android to draft Release (push) Successful in 16s
Gitea Release / Upload Windows to draft Release (push) Successful in 22s
Gitea Release / Verify and publish Release (push) Successful in 14s
36 lines
1.1 KiB
Dart
36 lines
1.1 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
import 'package:cutdex_ui/widgets.dart';
|
|
import 'package:cutdex_ui/theme.dart';
|
|
|
|
import 'properties_content.dart';
|
|
export 'properties_presentation_state.dart';
|
|
|
|
/// Desktop inspector uses compact category tabs over shared property editors.
|
|
class EditorPropertiesPanel extends StatelessWidget {
|
|
const EditorPropertiesPanel({
|
|
super.key,
|
|
required this.projectId,
|
|
required this.timelineId,
|
|
});
|
|
final String projectId;
|
|
final String timelineId;
|
|
@override
|
|
Widget build(BuildContext context) => PropertiesContent(
|
|
projectId: projectId,
|
|
timelineId: timelineId,
|
|
categoryHeaderHeight: AppTheme.isDesktop(context)
|
|
? AppDesktopMetrics.panelHeader
|
|
: CompactPanelTabs.height,
|
|
categoryControls: (context, categories, selected, onSelected) =>
|
|
CompactPanelTabs<PropertyCategory>(
|
|
values: categories,
|
|
selected: selected,
|
|
labelBuilder: (category) => category.label(context),
|
|
tabKeyBuilder: (category) =>
|
|
ValueKey('property-tab-${category.name}'),
|
|
onSelected: onSelected,
|
|
),
|
|
);
|
|
}
|