Description
Describe the bug:
I use the flutter_html: ^3.0.0-alpha.6 to load page,android devices show correct,but on iOS device,after the picture is loaded, there will always be a large blank space below the picture
HTML to reproduce the issue:
<p><img src=\"https://exchange-xzy.oss-accelerate.aliyuncs.com/xzy/uploadImg/aafggxzak4iu-8ac62adc-ac04-4e07-a93d-3f4167952470-1684477825819.jpg\" data-filename=\"aafggxzak4iu-8ac62adc-ac04-4e07-a93d-3f4167952470-1684477825819.jpg\" style=\"width: 455px;\"><br></p>
Html
widget configuration:
Html(
shrinkWrap: true,
data: controller.htmlstringss.value,
style: {
"img": Style(
width: Width.auto(),
height: Height.auto(),
margin: Margins.zero,
padding: EdgeInsets.zero),
},
///去掉自带的圆形转圈加载指示器,使用网络请求部分加载
customRenders: {
tagMatcher("img"): CustomRender.widget(
widget: (context, buildChildren) {
String? imgUrl =
context.tree.element?.attributes["src"];
return CachedNetworkImage(
imageUrl: imgUrl!,
width: double.infinity,
fit: BoxFit.fitWidth,
progressIndicatorBuilder:
(context, url, downloadProgress) {
return const SizedBox();
},
);
})
},
)
Expected behavior:
no extra white space
Screenshots:
https://exchange-xzy.oss-cn-hongkong.aliyuncs.com/xzy/uploadImg/lQDPJxd_PwKvsfrNCeTNBJKwnN30LaQNJ4EEZykHFcASAA_1170_2532.jpg
Device details and Flutter/Dart/flutter_html
versions:
flutter_html: ^3.0.0-alpha.6
[✓] Flutter (Channel stable, 3.0.2, on macOS 13.3.1 22E772610a darwin-arm, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Android Studio (version 2021.2)
[✓] VS Code (version 1.65.2)
Stacktrace/Logcat
Additional info:
Metadata
Metadata
Assignees
Labels
Projects
Status