setSizes validates total pixels and ratio sums, but the loop that updates _savedSizes[index] for hidden indices is interleaved with validation. Individual per-element validation (clamping each value, range checks) is also missing — only the totals are checked.
Consider:
- Validate all inputs before any mutation.
- Add per-element clamping/checks (a single pixel value > available space is currently allowed if the sum is OK).
Location: lib/src/resizable_controller.dart:92-129
setSizesvalidates total pixels and ratio sums, but the loop that updates_savedSizes[index]for hidden indices is interleaved with validation. Individual per-element validation (clamping each value, range checks) is also missing — only the totals are checked.Consider:
Location:
lib/src/resizable_controller.dart:92-129