-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
Material text interactive selection uses buttonTheme #37550
Comments
What material library component[s] are you referring to - "interactive selection"? |
@HansMuller I don’t know which is the correct name for the text selection options that appear (copy, cut, paste), so I thought it could be explicit enough, sorry. 😅 Anyway, if you customize your |
OK, I think I understand what you're after. The material TextField builds a TextSelectionControls instance that ends up in the app's overlay. So it only really inherits from the app's theme. That means a definition of ButtonTheme in the TextField's context will not apply to the text field menu. And it means that a global ButtonTheme, one that's defined as part of the overall Theme, will apply to text select controls too; even if that's not what you want. There are a couple of ways around this:
|
@HansMuller what if you don't have any "in context" theme? Will it use the global theme? For simplicity sake and also, to make it more customizable, I personally would like to see your second point: a property -- which can be inside the ButtonTheme -- that could allow styling the TextSelectionControls which, as of now, seems pretty unclear on how to achieve so. |
also it's only for android, iOS use the system ones |
@renanyoy I'm afraid not. They both share theme widgets, if you set the text font scale on iOS device settings to max it will also overflow the interactive selection box. |
no. for me I have white on black bubble, really system ones on iOS, nothing like the ones on android.. |
The scale issue on iOS is already fixed here #54140 |
The Material interactive selection shouldn't use the
buttonTheme
or, at least, the theme should provide a flag to either use it in the interactive selection or not.As it is, it's impossible to either use a custom
buttonTheme
(such settingminWidth
,height
and so on) without directly affecting the interactive selection that should stick with the native look & feel.Plus, a good alternative might be having a
interactiveSelectionTheme
that would allow customize only it.The text was updated successfully, but these errors were encountered: