pin_code_fields
pin_code_fields copied to clipboard
Weird gap between confirm dialog content and question mark
![image](https://user-images.githubusercontent.com/16463312/168879473-14f9cbb0-230c-4a7b-aa6d-5853701e2e7f.png)
PS: The question mark is not in my dialogContent
argument and I think dialog should not add this for me.
@the-eric-kwok that's the default pastedTextStyle color. Try pastedTextStyle: Theme.of(context).textTheme.bodyMedium
or pastedTextStyle: TextStyle(color: Theme.of(context).colorScheme.onSurface)
.
The question mark gets added by default. But I agree, this shouldn't be done by the widget. It makes it difficult to translate to certain languages, like Arabic or Chinese. It would make more sense to let dialogContent
replace a placeholder (e.g. $).
Maybe create a dialogContentBuilder
option for more control. (e.g. Widget Function(BuildContext, String?)
)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.