Files
cutdex/lib/features/properties/properties_presentation_state.dart
lingjhf 7ebe0c8e2e feat(inspector): separate input and output color controls
Give video clips a dedicated color tab with immediate input interpretation,
automatic detection, and reset controls. Clarify project output color space,
source-stream scope, and unavailable metadata across localized UI text.

Share unknown-source color defaults with the SDK and retain independent
property tab scroll state. Include localized resources and control previews.

Validation: full application analysis, 1261 Flutter tests passed
(9 skipped), generated-code verification, and 171 tool tests.
2026-10-10 22:43:35 +08:00

34 lines
829 B
Dart

import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import '../../l10n/l10n.dart';
final propertyCategoryProvider =
Provider.family<ValueNotifier<PropertyCategory?>, (String, String, String)>(
(ref, identity) {
final category = ValueNotifier<PropertyCategory?>(null);
ref.onDispose(category.dispose);
return category;
},
);
enum PropertyCategory {
picture,
color,
mask,
audio,
speed,
animation,
basic;
String label(BuildContext context) => switch (this) {
picture => context.l10n.pictureProperties,
color => context.l10n.color,
mask => context.l10n.mask,
audio => context.l10n.audio,
speed => context.l10n.speedChange,
animation => context.l10n.animation,
basic => context.l10n.basic,
};
}