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

@@ -12,318 +12,6 @@ part of 'picture_edits.dart';
// GENERATED CODE - DO NOT MODIFY BY HAND
T _$identity<T>(T value) => value;
/// @nodoc
mixin _$PictureEditTarget {
TimelineVersion get version;
int get tick;
/// Create a copy of PictureEditTarget
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$PictureEditTargetCopyWith<PictureEditTarget> get copyWith =>
_$PictureEditTargetCopyWithImpl<PictureEditTarget>(
this as PictureEditTarget,
_$identity,
);
@override
bool operator ==(Object other) {
final _this = this as PictureEditTarget;
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is PictureEditTarget &&
(identical(other.version, _this.version) ||
other.version == _this.version) &&
(identical(other.tick, _this.tick) || other.tick == _this.tick));
}
@override
int get hashCode {
final _this = this as PictureEditTarget;
return Object.hash(runtimeType, _this.version, _this.tick);
}
@override
String toString() {
final _this = this as PictureEditTarget;
return 'PictureEditTarget(version: ${_this.version}, tick: ${_this.tick})';
}
}
/// @nodoc
abstract mixin class $PictureEditTargetCopyWith<$Res> {
factory $PictureEditTargetCopyWith(
PictureEditTarget value,
$Res Function(PictureEditTarget) _then,
) = _$PictureEditTargetCopyWithImpl;
@useResult
$Res call({TimelineVersion version, int tick});
}
/// @nodoc
class _$PictureEditTargetCopyWithImpl<$Res>
implements $PictureEditTargetCopyWith<$Res> {
_$PictureEditTargetCopyWithImpl(this._self, this._then);
final PictureEditTarget _self;
final $Res Function(PictureEditTarget) _then;
/// Create a copy of PictureEditTarget
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({Object? version = null, Object? tick = null}) {
return _then(
PictureEditTarget(
version: null == version
? _self.version
: version // ignore: cast_nullable_to_non_nullable
as TimelineVersion,
tick: null == tick
? _self.tick
: tick // ignore: cast_nullable_to_non_nullable
as int,
),
);
}
}
/// Adds pattern-matching-related methods to [PictureEditTarget].
extension PictureEditTargetPatterns on PictureEditTarget {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs
TResult maybeMap<TResult extends Object?>(
TResult Function(_PictureEditTarget value)? $default, {
required TResult orElse(),
}) {
final _that = this;
switch (_that) {
case _PictureEditTarget() when $default != null:
return $default(_that);
case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case final Subclass2 value:
/// return ...;
/// }
/// ```
@optionalTypeArgs
TResult map<TResult extends Object?>(
TResult Function(_PictureEditTarget value) $default,
) {
final _that = this;
switch (_that) {
case _PictureEditTarget():
return $default(_that);
case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>(
TResult? Function(_PictureEditTarget value)? $default,
) {
final _that = this;
switch (_that) {
case _PictureEditTarget() when $default != null:
return $default(_that);
case _:
return null;
}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>(
TResult Function(TimelineVersion version, int tick)? $default, {
required TResult orElse(),
}) {
final _that = this;
switch (_that) {
case _PictureEditTarget() when $default != null:
return $default(_that.version, _that.tick);
case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case Subclass2(:final field2):
/// return ...;
/// }
/// ```
@optionalTypeArgs
TResult when<TResult extends Object?>(
TResult Function(TimelineVersion version, int tick) $default,
) {
final _that = this;
switch (_that) {
case _PictureEditTarget():
return $default(_that.version, _that.tick);
case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>(
TResult? Function(TimelineVersion version, int tick)? $default,
) {
final _that = this;
switch (_that) {
case _PictureEditTarget() when $default != null:
return $default(_that.version, _that.tick);
case _:
return null;
}
}
}
/// @nodoc
class _PictureEditTarget implements PictureEditTarget {
const _PictureEditTarget({required this.version, required this.tick});
@override
final TimelineVersion version;
@override
final int tick;
/// Create a copy of PictureEditTarget
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$PictureEditTargetCopyWith<_PictureEditTarget> get copyWith =>
__$PictureEditTargetCopyWithImpl<_PictureEditTarget>(this, _$identity);
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _PictureEditTarget &&
(identical(other.version, version) || other.version == version) &&
(identical(other.tick, tick) || other.tick == tick));
}
@override
int get hashCode {
return Object.hash(runtimeType, version, tick);
}
@override
String toString() {
return 'PictureEditTarget(version: $version, tick: $tick)';
}
}
/// @nodoc
abstract mixin class _$PictureEditTargetCopyWith<$Res>
implements $PictureEditTargetCopyWith<$Res> {
factory _$PictureEditTargetCopyWith(
_PictureEditTarget value,
$Res Function(_PictureEditTarget) _then,
) = __$PictureEditTargetCopyWithImpl;
@override
@useResult
$Res call({TimelineVersion version, int tick});
}
/// @nodoc
class __$PictureEditTargetCopyWithImpl<$Res>
implements _$PictureEditTargetCopyWith<$Res> {
__$PictureEditTargetCopyWithImpl(this._self, this._then);
final _PictureEditTarget _self;
final $Res Function(_PictureEditTarget) _then;
/// Create a copy of PictureEditTarget
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$Res call({Object? version = null, Object? tick = null}) {
return _then(
_PictureEditTarget(
version: null == version
? _self.version
: version // ignore: cast_nullable_to_non_nullable
as TimelineVersion,
tick: null == tick
? _self.tick
: tick // ignore: cast_nullable_to_non_nullable
as int,
),
);
}
}
/// @nodoc
mixin _$PictureEditException {
PictureEditFailure get failure;