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: Colors.white,
labelText: label,
hintText: ' ',
alignLabelWithHint: true,
suffixIconConstraints:
const BoxConstraints(maxWidth: 23, minWidth: 10),
contentPadding: const EdgeInsets.symmetric(
vertical: 12,
horizontal: 4,
),
),
);
}