title: Flutter Card Color
body: <p>I want to make this card which i have divided into columns (Expanded widget), The problem i am facing is : i am unable to set color container (parent of right column) to full height, so only part of it shows colored background.</p>
  
  <p><strong>What I Have:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/tCBXQ.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/tCBXQ.jpg" alt="enter image description here"></a></p>
  
  <p><strong>What I Want:</strong>
  <a href="https://i.stack.imgur.com/bIIaD.png" rel="noreferrer"><img src="https://i.stack.imgur.com/bIIaD.png" alt="enter image description here"></a></p>
  
  <ul>
  <li><p>I tried Flutter Inspector tool and noticed that Container and its child Column are not getting full height (Even after typing mainAxisSize: MainAxisSize.max)</p></li>
  <li><p>Instead of Using Expanded i also tried using FractionSized.. but not luck. </p></li>
  </ul>
  
  <p>Code : </p>
  
  <pre class="lang-dart prettyprint-override"><code>    import 'package:flutter/material.dart';
  
      class SubjectPage extends StatelessWidget {
        final String dayStr;
        SubjectPage(this.dayStr);
  
        @override
        Widget build(BuildContext context) {
          return Padding(
            padding: EdgeInsets.fromLTRB(20.0, 40.0, 20.0, 0),
            child: Column(
              children: &lt;Widget&gt;[
                Card(
                  child: Row(
                    children: &lt;Widget&gt;[
                      // Column 1
                      Expanded(
                        flex: 7,
                        child: Padding(
                          padding: EdgeInsets.all(20.0),
                          child: Column(
                            mainAxisSize: MainAxisSize.min,
                            crossAxisAlignment: CrossAxisAlignment.start,
                            children: &lt;Widget&gt;[
                              getTitle("UEC607"),
                              getSubName("Data Communication &amp; Protocol"),
                              getVenue("E-204"),
                            ],
                          ),
                        ),
                      ),
                      // Column 2
                      // The Place where I am Stuck//
                      Expanded(
                        flex: 3,
                        child: Container(
                          color: Colors.blue,
                          child: Column(
                            mainAxisSize: MainAxisSize.max,
                            children: &lt;Widget&gt;[
                              getType("L"),
                              getTime("9:00"),
                            ],
                          ),
                        ),
                      )
                    // COlumn 2 End
                    ],
                  ),
                )
              ],
            ),
          );
        }
  
        // Get Title Widget
        Widget getTitle(String title) {
          return Padding(
            padding: EdgeInsets.only(bottom: 8.0),
            child: Text(title),
          );
        }
  
        // Get Subject Name
        Widget getSubName(String subName) {
          return Padding(
            padding: EdgeInsets.only(bottom: 25.0),
            child: Text(subName),
          );
        }
  
        // Get Venue Name
        Widget getVenue(String venue) {
          return Padding(
            padding: EdgeInsets.only(bottom: 0.0),
            child: Text(venue),
          );
        }
  
        Widget getType(String type) {
          return Padding(
            padding: EdgeInsets.only(bottom: 10.0),
            child: Text(type),
          );
        }
  
        Color getColor(String type) {
          if (type == "L") {
            return Color(0xff74B1E9);
          }
        }
  
        Widget getTime(String time) {
          return Text(time);
        }
      }
  </code></pre>