どうも、ちょげ(@chogetarou)です。
Cardの高さを設定する方法を紹介します。
方法

Cardの高さを設定するには、SizedBoxもしくはContainerを使います。
まず、 CardをSizedBoxもしくはContainerでラップします。
そして、SizedBoxもしくはContainerの引数「hegiht」で高さを指定します。
//SizedBox
SizedBox(
height: /*高さ*/,
child: Card(),
)
//Container
Container(
height: /*高さ*/,
child: Card(),
)
これでCardの高さを設定できます。
使用例
以下は、使用例です。

@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: SizedBox(
height: 200,
child: Card(
child: ListTile(
title: Text(
'Flutter',
style: TextStyle(color: Colors.white),
),
),
color: Colors.blue,
),
),
),
);
}
コメント