first commit

This commit is contained in:
2025-04-05 11:47:40 +02:00
commit 1fb8c28c2e
99 changed files with 7656 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
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
),
),
);
}
}