Skip to content

Divider widget's line width does not match Material design guidelines #10490

@pulyaevskiy

Description

@pulyaevskiy

Steps to Reproduce

Create a Divider widget and observe how it's rendered. Here is a screenshot from iOS simulator running iPhone 7 in front of Material design documentation page on Dividers:

image

Setting divider height to < 1.0 seems to be restricted by assertion.

The same behavior can be observed in ListTile.divideTiles which uses DecoratedBox with border decoration of 1.0 width.

I did some experimentation and was able to get better rendering by implementing custom divideTiles method and setting border width to 0.5. Result:

image

Logs

N/A

Flutter Doctor

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: fidelityMatching the OEM platforms betterf: material designflutter/packages/flutter/material repository.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions