feat(inspector): edit animated effects, strokes and corner distortion

Replace the shadow-only inspector with layered effect and stroke controls and per-corner distortion editors. Share color inputs, layer rows, keyframe controls and property edit boundaries; keep nested selection menus within their property popover and update localized labels.

Add property editing, preview interaction and benchmark comparison coverage. Validation: Dart analysis reports no issues and 160 targeted application tests pass. The macOS development app was rebuilt and visually checked during native rendering validation. Exclude local dependency override changes from the committed lockfile.
This commit is contained in:
lingjhf committed 2026-10-10 16:55:27 +08:00
1 parent 8d1f8db7e8
commit 789af7a68e
58 files changed
+6911 -1972

No files matched your search

+45 -11
View File
@@ -22,7 +22,10 @@ import '../../shared/state/operation_scope.dart';
import '../preview/preview_panel.dart';
import 'property_number_input.dart';
import 'picture_edits.dart';
import 'shadow_properties.dart';
import 'effect_properties.dart';
import 'stroke_properties.dart';
import 'distortion_properties.dart';
import 'effect_labels.dart';
class PictureProperties extends ConsumerStatefulWidget {
const PictureProperties({
@@ -208,7 +211,8 @@ class _PicturePropertiesState extends ConsumerState<PictureProperties> {
value.rotation == _scrubBase!.rotation &&
value.scale == _scrubBase!.scale &&
value.scaleY == _scrubBase!.scaleY &&
value.sameCorners(_scrubBase!))) {
value.sameCorners(_scrubBase!) &&
value.distortion.same(_scrubBase!.distortion))) {
_cancelScrub();
return;
}
@@ -271,6 +275,10 @@ class _PicturePropertiesState extends ConsumerState<PictureProperties> {
value.scale,
value.scaleY,
value.rotation,
value.distortion.topLeft,
value.distortion.topRight,
value.distortion.bottomRight,
value.distortion.bottomLeft,
value.cornerRadius,
value.topLeftRadius,
value.topRightRadius,
@@ -866,6 +874,13 @@ class _PicturePropertiesState extends ConsumerState<PictureProperties> {
keyTools(TransformChannel.scale),
]),
],
DistortionProperties(
projectId: widget.projectId,
timelineId: widget.timelineId,
session: widget.session,
sequence: widget.sequence,
clip: widget.clip.id,
),
section([
if (desktop)
AppPropertyGroup(
@@ -921,7 +936,14 @@ class _PicturePropertiesState extends ConsumerState<PictureProperties> {
keyTools(TransformChannel.cornerRadius),
],
]),
ShadowProperties(
StrokeProperties(
projectId: widget.projectId,
timelineId: widget.timelineId,
session: widget.session,
sequence: widget.sequence,
clip: widget.clip.id,
),
EffectProperties(
projectId: widget.projectId,
timelineId: widget.timelineId,
session: widget.session,
@@ -996,17 +1018,29 @@ class _KeyframeTimeline extends StatelessWidget {
for (final (id, label, times) in [
for (final channel in TransformChannel.values)
(channel.name, channel.label(context), animation.keyTimes(channel)),
if (ClipShadowStack(
for (final layer in ClipStrokeStack(
animation.record,
animation.localTick,
).layers.isNotEmpty)
).layers)
(
'shadow',
context.l10n.shadow,
ClipShadowStack(
animation.record,
animation.localTick,
).keyOffsets.map((t) => animation.start + t).toList(),
'stroke-${layer.id}',
context.l10n.stroke,
ClipStrokeStack(animation.record, animation.localTick)
.keyOffsets(layer.parameterIds)
.map((t) => animation.start + t)
.toList(),
),
for (final layer in ClipEffectStack(
animation.record,
animation.localTick,
).layers)
(
layer.id,
layer.type.label(context),
ClipEffectStack(animation.record, animation.localTick)
.keyOffsets(layer.parameterIds)
.map((t) => animation.start + t)
.toList(),
),
])
SizedBox(