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.
34 lines
829 B
Dart
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,
|
|
};
|
|
}
|