どうも、ちょげ(@chogetarou)です。
TextFormFieldのパディングを設定する方法を紹介します。
方法

TextFormFieldのパディングを設定するには、InputDecorationを使います。
まず、TextFormFieldの引数「decoraiton」にInputDecorationを指定します。
そして、InputDecorationの引数「contentPadding」にパディングを指定します。
パディングの指定は、EdgeInsetsを使って行います。
TextFormField(
decoration: InputDecoration(
contentPadding: /*EdgeInsetsでパディングを設定*/,
),
),
InputDecorationを使えば、TextFomFieldのパディングを設定することが出来ます。
使用例
以下は、使用例です。

TextFormField(
decoration: InputDecoration(
contentPadding: EdgeInsets.all(50),
border: OutlineInputBorder(),
),
),

[Flutter]TextFormFieldの右側にクリアボタンを追加するには?
TextFormFieldの右側にクリアボタンを追加する方法を紹介します。

[Flutter]入力中のTextFormFieldの枠線の色を設定するには?
入力中のTextFormFieldの枠線の色を設定する方法を紹介します。

[Flutter]TextFormFieldのフォーカスが外れた時に処理をするには?
TextFormFieldのフォーカスが外れた時に処理をする方法を紹介します。

[Flutter]TextFormFieldのフォーカスを外すには?
TextFormFieldのフォーカスをボタンなどを使って外す方法を紹介します。
コメント