[BUG] when useing the "container" set the value of "width", it won't have any effect on the "html"
Describe the bug:
when i use "container" to wrap the "html" assembly and I set the size of "width", it does not impose any constraints on the html; In particular, the size of the photo clearly exceeds the value of width.
HTML to reproduce the issue:
Container(
padding: const EdgeInsets.symmetric(
vertical: 0, horizontal: 45.0),
width: 1013,
child: Html(
data: content,
onLinkTap: (url, attributes, element) {
if (url != null) launchUrl(Uri.parse(url));
},
style: {
"p": Style(
fontStyle: FontStyle.italic,
fontSize: FontSize(16),
color: Colors.black,
// margin: EdgeInsets.zero,
lineHeight: const LineHeight(2)),
},
),
),
Screenshots:
Device details and Flutter/Dart/flutter_html versions: flutter_html: ^3.0.0-beta.2
flutetr doctor: [✓] Flutter (Channel stable, 3.10.4, on macOS 12.3 21E230 darwin-arm64, locale zh-Hans-AL) [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 13.4.1) [✓] Chrome - develop for the web [✓] Android Studio (version 2021.2) [✓] VS Code (version 1.78.2) [✓] Connected device (2 available)