どうも、ちょげ(@chogetarou)です。
Cardを円にする方法を紹介します。
方法

Cardを円にするには、引数「shape」を使います。
具体的な方法としては、Cardの引数「shape」にCircleBorderを指定します。
Card(
shape: CircleBorder(),
child: Padding(
padding: const EdgeInsets.all(30.0),
child: Text(
'Flutter',
style: TextStyle(color: Colors.white, fontSize: 20),
),
),
color: Colors.blue,
),

コメント