flutter / devtools

Performance tools for Flutter
https://flutter.dev/docs/development/tools/devtools/
BSD 3-Clause "New" or "Revised" License
1.59k stars 326 forks source link

RenderFlex overflow on Debugger screen #4917

Open kenzieschmoll opened 1 year ago

kenzieschmoll commented 1 year ago

Screenshot 2022-12-09 at 10 36 32 AM

══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
The following assertion was thrown during layout:
A RenderFlex overflowed by 130 pixels on the right.

The relevant error-causing widget was:
  Row
  Row:file:///Users/kenzieschmoll/develop/devtools/packages/devtools_app/lib/src/screens/debugger/controls.dart:51:14

To inspect this widget in Flutter DevTools, visit:
http://127.0.0.1:9101/#/inspector?uri=http%3A%2F%2F127.0.0.1%3A50376%2FJfmk2APEhSQ%3D%2F.%2C&inspectorRef=inspector-0

The overflowing RenderFlex has an orientation of Axis.horizontal.
The edge of the RenderFlex that is overflowing has been marked in the rendering with a yellow and
black striped pattern. This is usually caused by the contents being too big for the RenderFlex.
Consider applying a flex factor (e.g. using an Expanded widget) to force the children of the
RenderFlex to fit within the available space instead of being sized to their natural size.
This is considered an error condition because it indicates that there is content that cannot be
seen. If the content is legitimately bigger than the available space, consider clipping it with a
ClipRect widget before putting it in the flex, or using a scrollable container rather than a Flex,
like a ListView.
The specific RenderFlex in question is: RenderFlex#f6a6c relayoutBoundary=up2 OVERFLOWING:
  creator: Row ← SizedBox ← DebuggingControls ← Column ← SizedBox ← Flex ← LayoutBuilder ← Split ←
    DebuggerScreenBody ← Expanded ← Column ← BannerMessages ← ⋯
  parentData: <none> (can use size)
  constraints: BoxConstraints(0.0<=w<=521.3, h=32.0)
  size: Size(521.3, 32.0)
  direction: horizontal
  mainAxisAlignment: start
  mainAxisSize: max
  crossAxisAlignment: center
  textDirection: ltr
  verticalDirection: down
◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤
════════════════════════════════════════════════════════════════════════════════════════════════════
flutter: [ERROR]: A RenderFlex overflowed by 63 pixels on the right.
kenzieschmoll commented 1 year ago
Screenshot 2023-05-26 at 3 55 15 PM

Couple things we could do here:

  1. Merge the pause and resume buttons into a single button (https://github.com/flutter/devtools/issues/4924)
  2. Make the stepping button group more dense
  3. Reduce the font size on the exceptions dropdown - the font looks larger than the font for the rest of the actions