Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PickerDialog search TextField text style changing option not available #378

Open
meetbutani opened this issue Apr 17, 2024 · 1 comment
Open

Comments

@meetbutani
Copy link

cropped

In Country code PickerDialog's search TextField, there is no option available to change default text style.

I have resolved this problem by adding below lines in PickerDialogStyle class.

add below line in variable declaration
final TextStyle? searchFieldTextStyle;

add below line in constructor parameter
this.searchFieldTextStyle,

add below line in Textfield
style: widget.style?.searchFieldTextStyle ?? TextStyle(),

@calvidler
Copy link

+1
A temporary work around is to set your bodyLarge textstyle to be your desired style.
Theme( data: Theme.of(context).copyWith( textTheme: Theme.of(context).textTheme.copyWith( bodyLarge: Theme.of(context) .textTheme .bodyLarge ?.copyWith( color: Colors.black, ) ?? const TextStyle(color: Colors.black), ), ), child: IntlPhoneField(...) ),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants