4 ms·
Question for the flutter devs - have you ever used The Internet?
by mdoms 6y ago
Question for the flutter devs - have you ever used The Internet?
- fastball 6y agoHave you? https://developer.mozilla.org/en-US/docs/Web/CSS/user-select https://developer.mozilla.org/en-US/docs/Web/CSS/user-select
- mdoms 6y agoYes I have, which is why I know text can be selected by default in every web environment.
- fastball 6y agoThere is no default in Flutter. Everything is a widget that you have to deliberately choose. https://api.flutter.dev/flutter/material/SelectableText-class.html https://api.flutter.dev/flutter/material/SelectableText-clas...
- jkrems 6y agoIf `Text` and `SelectableText` exist, I would call that an opt-in. The default is "Text" (not selectable) and a modifier can be applied to opt into using "SelectableText". It would be different if they were called "UnselectableText" and "SelectableText".
- drusepth 6y agoIsn't that just semantics? Seems like every dev using Flutter for more than a few days would know that both `Text` and `SelectableText` exist and pick the one that's relevant to whatever kind of text they're adding. At that point, it's the dev's fault for making a conscious decision to make text selectable or not (if they choose wrong); not really the language's.