title: Set parent height - Flutter
body: <p>I have this code:</p>
  <pre><code>          child: Row(
          children: [
            Expanded(
              child: Container(// &lt;----------------- 2) like this height
                //height: 150,
                decoration: BoxDecoration(
                  borderRadius: BorderRadius.circular(10),
                  //border: Border.all(),
                  color: Colors.white,
                  boxShadow: [
                    BoxShadow(
                      color: Colors.grey.withOpacity(0.8),
                      spreadRadius: 1,
                      blurRadius: 10,
                      offset: Offset(4, 4), // changes position of shadow
                    ),
                  ],
                ),
                child: Row(
                  children: [
                    Column(
                      children: [
                        IntrinsicHeight(
                          child: Container( // &lt;----------------- 1) this, height
                            width: 16,
                            decoration: BoxDecoration(
                              color: Colors.green,
                              borderRadius: BorderRadius.only(
                                  bottomLeft: Radius.circular(10.0),
                                  topLeft: Radius.circular(10.0)),
                            ),
                          ),
                        ),
                      ],
                    ),
  </code></pre>
  <p>[...]</p>
  <p>i have to set Container height (1) like Container's height (2). The height of the general container may change so I would not like to set a numerical height on neither the first nor the second container.</p>
  <hr />
  <p>try this but not work</p>
  <pre><code>              child: Row(
                  children: [
                    Column(
                      children: [
                        IntrinsicHeight(
                          child: Row(
                            crossAxisAlignment: CrossAxisAlignment.stretch,
                            children: [
                              Container(
                                width: 16,
                                decoration: BoxDecoration(
                                  color: Colors.green,
                                  borderRadius: BorderRadius.only(
                                      bottomLeft: Radius.circular(10.0),
                                      topLeft: Radius.circular(10.0)),
                                ),
                              ),
                            ],
                          ),
                        ),
                      ],
                    ),
  </code></pre>