mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-11 17:30:00 +02:00
Fixed NaN error in TvChannelGrid width calculation by properly resolving EdgeInsetsGeometry to concrete values before arithmetic operations. EdgeInsetsGeometry.horizontal can return NaN/infinity, causing invalid width calculations. Changed from: padding.horizontal To: padding.resolve(TextDirection.ltr).left + padding.resolve(TextDirection.ltr).right This ensures we get concrete padding values before division operations. Fixes: Unsupported operation: Result of truncating division is NaN: NaN ~/ 225.0357142857143 Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>