Sub6Resources / flutter_html

A Flutter widget for rendering static html as Flutter widgets (Will render over 80 different html tags!)
https://pub.dev/packages/flutter_html
MIT License
1.8k stars 874 forks source link

Fix: Aspect ratio exception when height is 0 #1222

Closed ib-8 closed 1 year ago

ib-8 commented 1 year ago

Error: 'package:flutter/src/widgets/basic.dart': Failed assertion: line 3294 pos 15: 'aspectRatio > 0.0': is not true.

When height is 0, aspect ratio error occurs. By returning aspect ratio is 1 when height is 0 then the problem gets solved.