feat: enhance profile input fields with new styling and customization options, and update calendar and location icons
This commit is contained in:
@@ -7,6 +7,9 @@ class ProfileFormField extends StatelessWidget {
|
||||
final bool enabled;
|
||||
final TextInputType? keyboardType;
|
||||
final IconData? prefixIcon;
|
||||
final TextCapitalization textCapitalization;
|
||||
final bool obscureText;
|
||||
final Widget? suffixIcon;
|
||||
|
||||
const ProfileFormField({
|
||||
super.key,
|
||||
@@ -15,6 +18,9 @@ class ProfileFormField extends StatelessWidget {
|
||||
this.enabled = true,
|
||||
this.keyboardType,
|
||||
this.prefixIcon,
|
||||
this.textCapitalization = TextCapitalization.words,
|
||||
this.obscureText = false,
|
||||
this.suffixIcon,
|
||||
});
|
||||
|
||||
@override
|
||||
@@ -45,6 +51,9 @@ class ProfileFormField extends StatelessWidget {
|
||||
controller: controller,
|
||||
enabled: enabled,
|
||||
keyboardType: keyboardType,
|
||||
textCapitalization: textCapitalization,
|
||||
obscureText: obscureText,
|
||||
textAlignVertical: TextAlignVertical.center,
|
||||
style: const TextStyle(
|
||||
fontFamily: 'SourceSerif4',
|
||||
fontSize: 14,
|
||||
@@ -52,8 +61,9 @@ class ProfileFormField extends StatelessWidget {
|
||||
color: AppColors.primaryDark,
|
||||
),
|
||||
decoration: InputDecoration(
|
||||
isDense: true,
|
||||
contentPadding:
|
||||
const EdgeInsets.symmetric(horizontal: 26, vertical: 8),
|
||||
const EdgeInsets.symmetric(horizontal: 12, vertical: 10),
|
||||
border: border,
|
||||
enabledBorder: border,
|
||||
focusedBorder: border,
|
||||
@@ -64,6 +74,7 @@ class ProfileFormField extends StatelessWidget {
|
||||
prefixIconConstraints: prefixIcon != null
|
||||
? const BoxConstraints(minWidth: 40)
|
||||
: null,
|
||||
suffixIcon: suffixIcon,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user