Skip to content

Some way to access the child of a SizedBox and a Container #1141

Open
@smmalis37

Description

@smmalis37

I created a widget with the code Label::new("foo").with_text_color(Color::BLACK).border(Color::BLACK, 0.5) and needed to store it somewhere. The return type of this builder was Container<String>, so I made a field of that type, stored it, and moved on. Later I wanted to be able to dynamically change the text color of the label, but I couldn't find a way to access this property through the Container. It would be helpful to have a .child() getter or similar to enable this sort of usecase. Maybe even a Deref impl, although that might be too much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questioncauses uncertainty

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions