title: Card layouts - Flutter
body: <p>I am trying to build a card using flutter, that looks like the concept shown below, but I am getting this instead.</p>
  
  <p>Here's the card widget code in Dart:</p>
  
  <pre><code>@override
  Widget build(BuildContext context) {
      return Center(
        child: Card(
          margin: EdgeInsets.symmetric(horizontal: 14.0),
          color: Colors.white,
          elevation: 6.0,
          child: InkWell(
            splashColor: Colors.blue.withAlpha(30),
            onLongPress: () {_copy();},
            onTap: () {},
            child: Container(
              child: Padding( 
                padding: EdgeInsets.all(12.0),
                child: Row(
                  children: &lt;Widget&gt;[
                    Text(widget.cardTitle),
                    Spacer(),
                    ButtonBar(
                      children: &lt;Widget&gt;[
                        new IconButton(
                          icon: Icon(CardsIcons.arrows_ccw, color: primaryDark,),
                          onPressed: () {_refresh();},
                        ),
                        new IconButton(
                          icon: Icon(CardsIcons.heart_empty, color: Colors.redAccent,),
                          onPressed: () {_bookmark();},
                        ),
                      ],
                    ),
                    SizedBox(height: 24.0,),
                    Text(
                      widget.cardContent,
                    ),
                  ],
                ),
              ),
            ),
          ),
        ),
      );
    }
  </code></pre>
  
  <p><strong>This is the output I am getting currently</strong></p>
  
  <p><a href="https://i.stack.imgur.com/ZoXh8.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZoXh8.jpg" alt="enter image description here"></a></p>
  
  <p><strong>This is the desired output</strong></p>
  
  <p><a href="https://i.stack.imgur.com/ou3NO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ou3NO.png" alt="enter image description here"></a></p>