added fonts, fixed alignment, and responsivness for the web

This commit is contained in:
ashrafzarkanisala
2024-08-27 01:55:11 +03:00
parent f3c5c2c489
commit f14320ea92
15 changed files with 178 additions and 94 deletions

View File

@ -10,6 +10,7 @@ class CustomWebTextField extends StatelessWidget {
required this.controller,
this.description,
this.validator,
this.hintText,
});
final bool isRequired;
@ -17,6 +18,7 @@ class CustomWebTextField extends StatelessWidget {
final String? description;
final TextEditingController? controller;
final String? Function(String?)? validator;
final String? hintText;
@override
Widget build(BuildContext context) {
@ -81,7 +83,7 @@ class CustomWebTextField extends StatelessWidget {
errorStyle:
const TextStyle(height: 0), // Hide the error text space
hintText: 'Please enter'),
hintText: hintText ?? 'Please enter'),
),
),
],