Skip to content

[web]: Table wrapped with a SingleChildScrollView(scrollDirection: Axis.horizontal) doesn't get rendered #38525

@bmsan

Description

@bmsan

Flutter 1.7.8+hotfix.4 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 20e5931 (4 weeks ago) • 2019-07-18 20:04:33 -0700
Engine • revision fee001c93f
Tools • Dart 2.4.0
flutter pub global run webdev --version shows 2.4.0

Browser : Chrome
OS: Windows

I'm hitting an issue with flutter webdev when using a Table inside a SingleChildScrollView which has scrollDirection horizontal(doesn't show anything). See examples below.

  1. Vertical direction works perfect
  2. The command prompt where I started flutter doesn't give any error
  3. The console log of the browser doesn't say anything different between (Vertical and Horizontal)
  4. I've tried making the elements inside the TableRow to use SizedBox with width & height given but that didn't help

SingleChildScrollView(horizontal scroll) doesn't show anything:
SingleChildScrollView(scrollDirection: Axis.**horizontal**, child : Table(children: rows) )
image

SingleChildScrollView(vertical scroll) works ok:
SingleChildScrollView(scrollDirection: Axis.**vertical**, child : Table(children: rows) )
image

Code example which exhibits problem

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions