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

@ -35,7 +35,9 @@ class FilterWidget extends StatelessWidget {
decoration: BoxDecoration(
color: ColorsManager.boxColor,
border: Border.all(
color: isSelected ? Colors.blue : Colors.transparent,
color: isSelected
? ColorsManager.blueColor.withOpacity(0.8)
: Colors.transparent,
width: 2.0,
),
borderRadius: _getBorderRadius(index),
@ -45,7 +47,9 @@ class FilterWidget extends StatelessWidget {
child: Text(
tabs[index],
style: TextStyle(
color: isSelected ? Colors.blue : Colors.black,
color: isSelected
? ColorsManager.blueColor.withOpacity(0.8)
: Colors.black,
),
),
),

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'),
),
),
],