News for hackers. Stuff that matters.
Re:Flutter 2 by fastball on Wednesday March 03, 2021 @06:44PM (#26336514)
There is no default in Flutter. Everything is a widget that you have to deliberately choose.

https://api.flutter.dev/flutter/material/SelectableText-clas...

Re:Flutter 2 by jkrems on Wednesday March 03, 2021 @08:10PM (#26337296)
If `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".
Re:Flutter 2 by drusepth on Wednesday March 03, 2021 @08:34PM (#26337464)
Isn'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.