import 'package:flutter/material.dart'; class FormInputBox extends StatefulWidget { const FormInputBox({ super.key, //this.textInputType, required this.controller, this.hintText = "", this.obscureText = false, }); //final TextInputType textInputType; final String hintText; final TextEditingController controller; final bool obscureText; @override FormInputBoxState createState() => FormInputBoxState(); } class FormInputBoxState extends State { @override Widget build(BuildContext context) { return Padding( padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 14), child: TextFormField( obscureText: widget.obscureText, controller: widget.controller, decoration: InputDecoration( border: const OutlineInputBorder(), hintText: widget.hintText, ), ), ); } }