Skip to content

Border.symmetric seems wrong. Horizontal = top/bottom? #122034

@bernaferrari

Description

@bernaferrari

I really don't understand this. Shouldn't vertical = top/bottom and horizontal = left/right? Why is the opposite?

image

Source:
https://github.com/flutter/flutter/blob/f5ddece56e0e9d21d3b3f2d46d96330cb7bd789b/packages/flutter/lib/src/painting/box_border.dart#LL340C5-L340C5

Could anyone help me understand if this is intended and why?
EdgeInsets work fine, every other symmetrical Flutter usage seems fine, but Border.symmetric doesn't make sense to me.
This was implemented/updated by @tvolkert about 3 years ago.

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