From 58613aaa27e772e87150feef9f60ee5b29d34cb9 Mon Sep 17 00:00:00 2001 From: bggRGjQaUbCoE Date: Sat, 14 Sep 2024 01:02:55 +0800 Subject: [PATCH] mod: image width on html page --- lib/common/widgets/html_render.dart | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/common/widgets/html_render.dart b/lib/common/widgets/html_render.dart index c5292511..c0737e00 100644 --- a/lib/common/widgets/html_render.dart +++ b/lib/common/widgets/html_render.dart @@ -1,8 +1,5 @@ -import 'dart:ffi'; - import 'package:flutter/material.dart'; import 'package:flutter_html/flutter_html.dart'; -import 'package:get/get.dart'; import '../../utils/storage.dart'; import 'network_img_layer.dart'; @@ -62,7 +59,7 @@ class HtmlRender extends StatelessWidget { // height: isEmote ? 22 : null, // ); return NetworkImgLayer( - width: isEmote ? 22 : (constrainedWidth - 23) / textScale, + width: isEmote ? 22 : constrainedWidth / textScale, height: isEmote ? 22 : 200, src: imgUrl, ignoreHeight: !isEmote,