Skip to content

Layout explorer layout using bad ratios #2727

Description

@kenzieschmoll

Here's an example where all 3 children should be the same size (33.0 px). The widgets are rendered in the layout explorer in different sizes.
@jacob314
Screen Shot 2021-02-23 at 1 30 56 PM

Activity

  1. jacob314 commented on Feb 23, 2021

    @jacob314
    Contributor

    Please attach repro steps.

  2. jacob314 commented on Feb 23, 2021

    @jacob314
    Contributor
    return MaterialApp(
          title: 'Flutter Demo',
          home: Scaffold(
            appBar: AppBar(
              title: Text('hi'),
            ),
            body: Center(
          child: SizedBox(
            width: 100.0,
            height: 100.0,
            child: Row(
              children: <Widget>[
                Flexible(
                  child: Container(
                    color: Colors.green,
                    width: 20.0,
                    height: 100.0,
                  ),
                ),
                Flexible(
                  child: Container(
                    color: Colors.red,
                    width: 20.0,
                    height: 100.0,
                  ),
                ),
                Flexible(
                  child: Container(
                    color: Colors.green,
                    width: 20.0,
                    height: 100.0,
                  ),
                ),
          ),
        );
    
        ```
  3. added this to the On Deck milestone on Mar 6, 2021
  4. added
    P2important to work on, but not at the top of the work list.
    P3issues we think are valid but not important
    and removed
    P2important to work on, but not at the top of the work list.
    on Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions