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.
This commit is contained in:
1 parent
4912aa1ab0
commit
7ebe0c8e2e
35 files changed
+449
-171
No files matched your search
@@ -12,7 +12,7 @@ import 'support/preview_fixture.dart';
|
||||
|
||||
void main() {
|
||||
testWidgets(
|
||||
'property categories restore scroll and expansion independently',
|
||||
'property categories restore scroll independently and keep color controls visible',
|
||||
(tester) async {
|
||||
final f = (await tester.runAsync(
|
||||
() => createPreviewFixture(Uri.file('/test/video.mov'), hasAudio: true),
|
||||
@@ -76,7 +76,7 @@ void main() {
|
||||
await tester.pumpAndSettle();
|
||||
expect(tester.takeException(), isNull);
|
||||
expect(find.byKey(const Key('media-color-menu')), findsNothing);
|
||||
await tester.tap(find.text('素材色彩解释'));
|
||||
await tester.tap(find.byKey(const ValueKey('property-tab-color')));
|
||||
await tester.pumpAndSettle();
|
||||
expect(find.byKey(const Key('media-color-menu')), findsOneWidget);
|
||||
|
||||
@@ -84,7 +84,7 @@ void main() {
|
||||
await tester.tap(find.byKey(const ValueKey('property-tab-audio')));
|
||||
await tester.pumpAndSettle();
|
||||
expect(tester.takeException(), isNull);
|
||||
await tester.tap(find.byKey(const ValueKey('property-tab-picture')));
|
||||
await tester.tap(find.byKey(const ValueKey('property-tab-color')));
|
||||
await tester.pumpAndSettle();
|
||||
expect(tester.takeException(), isNull);
|
||||
}
|
||||
@@ -106,19 +106,27 @@ void main() {
|
||||
|
||||
await switchBack();
|
||||
expect(find.byKey(const Key('media-color-menu')), findsOneWidget);
|
||||
await tester.tap(find.byKey(const ValueKey('property-tab-picture')));
|
||||
await tester.pumpAndSettle();
|
||||
expect(find.byKey(const Key('media-color-menu')), findsNothing);
|
||||
expect(find.text('素材色彩解释'), findsNothing);
|
||||
position().jumpTo(55);
|
||||
await tester.pumpAndSettle();
|
||||
expect(position().pixels, 55);
|
||||
await switchBack();
|
||||
expect(position().pixels, 55);
|
||||
await tester.tap(find.byKey(const ValueKey('property-tab-color')));
|
||||
await tester.pumpAndSettle();
|
||||
expect(position().pixels, 0);
|
||||
expect(find.byKey(const Key('media-color-menu')), findsOneWidget);
|
||||
await tester.tap(find.byKey(const ValueKey('property-tab-picture')));
|
||||
await tester.pumpAndSettle();
|
||||
expect(position().pixels, 55);
|
||||
await tester.tap(find.byKey(const ValueKey('property-tab-color')));
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
position().jumpTo(0);
|
||||
await tester.pumpAndSettle();
|
||||
await tester.tap(find.text('素材色彩解释'));
|
||||
await tester.pumpAndSettle();
|
||||
await switchBack();
|
||||
expect(find.byKey(const Key('media-color-menu')), findsNothing);
|
||||
expect(find.byKey(const Key('media-color-menu')), findsOneWidget);
|
||||
expect(position().pixels, 0);
|
||||
await tester.pumpWidget(const SizedBox());
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user