Skip to content

setSizes: validation runs after partial save into _savedSizes #110

@andyhorn

Description

@andyhorn

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions