AlertDialog を角丸にするの?|AlertDialog|Flutter

 

AlertDialog は、四隅の角を丸めることもできるよ。

AlertDialog の「shape」プロパティに「RoundedRectangleBorder」を使おう。


使い方

AlertDialog(
  title: Text('マッチョなゴマフアザラシ'),
  shape: const RoundedRectangleBorder(
    borderRadius: BorderRadius.all(
      Radius.circular(8.0),
    ),
  ),
),


関連


参考

コメント

このブログの人気の投稿

ImagePicker を操作すると「Lost connection to device.」とだけ言い残して強制終了するの?|iOS|Flutter

Android SDK バージョン(コンパイルに使用する Android API レベル)を変更するの?|compileSdkVersion|SDK|Android|Flutter