[Flutter]AlertDialogの「actions」のパディングを設定するには?

Flutter

どうも、ちょげ(@chogetarou)です。

AlertDialogの「actions」のパディングを設定する方法を紹介します。

スポンサーリンク

方法

インターフェース, インターネット, プログラム, ブラウザ, Www, グラフィック, フラットなデザイン

AlertDialogの「actions」のパディングを設定するには、引数「actionsPadding」を使います。

引数「actions」に「EdgeInsets」を使って、パディングを設定します。

AlertDialog(
  actionsPadding: EdgeInsets.all(50),
  actions: [
    TextButton(
      onPressed: () {},
      child: Text('Button'),
    ),
  ],
)

コメント

タイトルとURLをコピーしました