mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
The check in computeMaxIntrinsicHeight was redundant since the method delegates to getMinIntrinsicHeight(), which eventually calls computeMinIntrinsicHeight() where the same check already exists. This simplifies the code while maintaining the same functionality. The checks in computeMinIntrinsicWidth, computeMaxIntrinsicWidth, and computeMinIntrinsicHeight remain as they either prevent division by zero or serve as performance optimizations for direct computations.