0
GridView
を使ってCard
をレイアウトしてレイアウトしているアプリがあります。カードを含むGridViewで高さが正しく計算されない
、彼らは単に「ACTION TO CALL」の下に終了する必要があります:関連するコードは、残念ながら、この
body: new GridView.count(
crossAxisCount: 2,
children: [new Card(
child: new Column(
mainAxisSize: MainAxisSize.min,
children: <Widget>[
const ListTile(
leading: const Text("0", style: const TextStyle(
fontWeight: FontWeight.bold, fontSize: 24.0)),
title: const Text('Some Heading'),
subtitle: const Text('My Subtitle'),
),
new ButtonTheme
.bar(// make buttons use the appropriate styles for cards
child: new ButtonBar(
children: <Widget>[
new FlatButton(
child: const Text('CALL TO ACTION'),
onPressed:() {
/* ... */
},
),
],
),
),
],
),
),
// same card repeated
],
),
のようなビット、それがうまくレンダリングされません見えますボタン。これを修正し、グリッドの行がコンテンツの高さを自動的に尊重する方法を教えてください。