nikoText2

Widget nikoText2({
  required TextEditingController ctler,
  required String label,
  required Function(String? newValue) fnc,
  bool? obscureText
}) {
  return TextFormField(
    obscureText: obscureText ?? false,
    controller: ctler,
    style: const TextStyle(
      fontSize: 20,
    ),
    onChanged: (String? newValue) => fnc(newValue),
    keyboardType: TextInputType.text,
    decoration: InputDecoration(
      isDense: true,
      border: const OutlineInputBorder(),
      filled: true, // fillColorで指定した色で塗り潰し
      fillColor: Colors.white,
      labelText: label,
      hintText: ' ',
      alignLabelWithHint: true, //開始位置を上寄せ
      suffixIconConstraints:
      const BoxConstraints(maxWidth: 23, minWidth: 10),
      contentPadding: const EdgeInsets.symmetric(
        vertical: 12,
        horizontal: 4,
      ),
    ),
  );
}
/* -----codeの行番号----- */