mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
added fonts, fixed alignment, and responsivness for the web
This commit is contained in:
@ -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'),
|
||||
),
|
||||
),
|
||||
],
|
||||
|
Reference in New Issue
Block a user