Skip to content

ui(grid): fix RenderFlex overflow during DataGridCalcBar collapse animation #1641

Closed

Description

@ZhuchkaTriplesix

Problem

In lib/features/workspace/data_grid_calc_bar.dart, DataGridCalcBar uses an AnimatedContainer to animate its height between 26 and 0 when selection statistics appear or disappear:

return AnimatedContainer(
  duration: duration,
  curve: curve,
  height: visible ? 26 : 0,
  clipBehavior: Clip.hardEdge,
  child: material.Row(...),
);

During the collapse transition, the container's height continuously decreases from 26 to 0. However, the inner Row and its child badges have an intrinsic height of ~20px. When the animated height drops below ~20px, Flutter throws:
A RenderFlex overflowed by X pixels on the bottom.

Change

Use QueryaAnimatedExpand (lib/core/motion/querya_animated_expand.dart) or substitute the collapsed state with const SizedBox(width: double.infinity, height: 0) so that the child row is not squeezed below its intrinsic minimum height during the collapse animation.

Activity

  1. ZhuchkaTriplesix commented on Oct 17, 2026

    @ZhuchkaTriplesix
    MemberAuthor

    Closed by PR #1674 into dev.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfrontendTheme parser epic label: frontend

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions