Skip to content

Flutter right overflow caused by wide HTML tables #600

Closed
@misici234

Description

@misici234

When I want to display wide HTML table I get the error in attached screenshot.
I managed to workaround this with following code

  @override
  Widget build(BuildContext context) {
    // we have to make width wider for big tables, for example
    final double width = shrinkWrap ? null : MediaQuery.of(context).size.width * 2;

in your flutter_html.dart
I reference flutter_html: 1.3.0 in my pubspec.yaml file and
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.0.1, on Mac OS X 10.15.7 19H2 darwin-x64, locale en-CA)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)

Screenshot_1617038908

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions