import 'package:flutter/material.dart'; class InputField extends StatelessWidget { final String hintText; final IconData icon; final bool obscureText; final TextEditingController controller; const InputField({ super.key, required this.hintText, required this.icon, this.obscureText = false, required this.controller, }); @override Widget build(BuildContext context) { return TextField( controller: controller, obscureText: obscureText, style: const TextStyle(color: Colors.grey), // Text inside input field is gray decoration: InputDecoration( prefixIcon: Icon(icon, color: Colors.grey), // Icons inside input field are gray hintText: hintText, hintStyle: const TextStyle(color: Colors.grey), // Placeholder text is gray filled: true, fillColor: Colors.grey[300], // Light gray background for inputs border: OutlineInputBorder( borderRadius: BorderRadius.circular(12), borderSide: BorderSide.none, // No border ), ), ); } }