どうも、ちょげ(@chogetarou)です。
AlertDialogのマージンを設定する方法を紹介します。
方法

AlertDialogのマージンを設定するには、引数「insetPadding」を使います。
具体的には、「insetPadding」に設定したいマージンを、EgdInsetsで指定します。
return AlertDialog(
insetPadding: EdgeInsets.all(100),
title: Text('Alert'),
content: Container(
height: 50,
),
);

コメント