mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-05-23 20:02:15 +00:00
The horizontal layout (_buildHorizontalLayout) used FittedBox as a shared scaffold for both vertical and horizontal reading modes. FittedBox passes unbounded width constraints to its child, which caused RenderFlex to throw "children have non-zero flex but incoming width constraints are unbounded" when Row + Expanded children were used. This cascaded into a chain of "RenderBox was not laid out" assertions all the way up through IntrinsicHeight, ConstrainedBox, FittedBox, LayoutBuilder, and into the ScrollablePositionedList in image_view_webtoon.dart. Fix: split the two layout paths before they reach a scaffold widget. The vertical path keeps FittedBox (safe, maxWidth is capped at 480px). The horizontal path uses SizedBox(width: MediaQuery screenWidth) so Row/Expanded always receive a finite width constraint. |
||
|---|---|---|
| .. | ||
| anime | ||
| browse | ||
| calendar | ||
| history | ||
| library | ||
| main_view | ||
| manga | ||
| mass_migration | ||
| more | ||
| novel | ||
| tracker_library | ||
| updates | ||
| webview | ||
| widgets | ||