どうも、ちょげ(@chogetarou)です。
AlertDialogの「content」のテキストカラーを設定する方法を紹介します。
方法

AlertDialogの「content」のテキストカラーを設定するには、引数「contentTextStyle」を使います。
まず、「contentTextStyle」に「TextStyle」を指定します。
そして、指定したTextStyleの引数「color」で、テキストの色を設定します。
AlertDialog(
contentTextStyle: TextStyle(
color: Colors.pink //テキストカラー
),
content: Text('This is sample Text'),
)

コメント