Skip to content

ResponsiveConstraints consider rendering ConstrainedBox instead of Container #189

@vasilich6107

Description

@vasilich6107

Container widget is a Swiss knife and has a loot of internal checks which just takes more time to get through.

Let me give you an exmaple - you can set background color with ColoredBox or Container
ColoredBox is more preferable due to performance penalties of Container

Same could be applied for ResponsiveConstraints
If we are using only constraints prop - ConstrainedBox looks more ideal option to use

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