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:
1 parent
8d1f8db7e8
commit
789af7a68e
58 files changed
+6911
-1972
No files matched your search
@@ -146,6 +146,7 @@ class AppMenuItem extends StatefulWidget {
|
||||
this.destructive = false,
|
||||
this.selectOption = false,
|
||||
this.requestFocusOnHover = true,
|
||||
this.closeAncestors = true,
|
||||
});
|
||||
final String label;
|
||||
final String? description;
|
||||
@@ -156,6 +157,9 @@ class AppMenuItem extends StatefulWidget {
|
||||
final bool selectOption;
|
||||
final bool requestFocusOnHover;
|
||||
|
||||
/// False closes this menu while retaining an enclosing property popover.
|
||||
final bool closeAncestors;
|
||||
|
||||
@override
|
||||
State<AppMenuItem> createState() => _AppMenuItemState();
|
||||
}
|
||||
@@ -191,7 +195,15 @@ class _AppMenuItemState extends State<AppMenuItem> {
|
||||
}
|
||||
_focusFromHover = hovered;
|
||||
},
|
||||
onPressed: widget.onPressed,
|
||||
closeOnActivate: widget.closeAncestors,
|
||||
onPressed: widget.onPressed == null
|
||||
? null
|
||||
: () {
|
||||
if (!widget.closeAncestors) {
|
||||
MenuController.maybeOf(context)?.close();
|
||||
}
|
||||
widget.onPressed!();
|
||||
},
|
||||
style: widget.description != null
|
||||
? AppMenuStyle.descriptionItem(
|
||||
context,
|
||||
@@ -427,6 +439,7 @@ class AppSelect<T> extends StatelessWidget {
|
||||
this.searchable = false,
|
||||
this.controlHeight,
|
||||
this.textStyle,
|
||||
this.closeAncestors = true,
|
||||
}) : assert(!searchable || searchHint != null);
|
||||
final T value;
|
||||
final List<AppSelectOption<T>> options;
|
||||
@@ -438,6 +451,7 @@ class AppSelect<T> extends StatelessWidget {
|
||||
final bool searchable;
|
||||
final double? controlHeight;
|
||||
final TextStyle? textStyle;
|
||||
final bool closeAncestors;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => searchable
|
||||
@@ -473,6 +487,7 @@ class AppSelect<T> extends StatelessWidget {
|
||||
label: option.label,
|
||||
selected: option.value == value,
|
||||
selectOption: true,
|
||||
closeAncestors: closeAncestors,
|
||||
onPressed: onChanged == null || !option.enabled
|
||||
? null
|
||||
: () => onChanged!(option.value),
|
||||
|
||||
Reference in new issue
Block a user