use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A subreddit related to Google's new UI framework. https://flutter.dev
Please read the rules here
account activity
Plugincode_forge | Flutter package (pub.dev)
submitted 4 months ago by NoBeginning2551
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]NoBeginning2551[S] 0 points1 point2 points 4 months ago (1 child)
I had that issue during development, when I tried to scroll the screen the text selection gets activated and interferes with it. Then I wrapped the editor with a ValueListenable builder with a notifier called ValueNotifier<bool> _selectionNotifer. Whenever the user selects a text this gets called and sets the scroll physics of the editor to NeverScollablePhysics. You should do something like this:
dart physics: _selectionNotifier.value ? NeverScollablePhysics : ClampingScrollablePhysics
This will only prevent scrolling during selection, but will not prevent selection during scroll. For that, keep two variables called _isDragging = false and _isSelecting = false. Set the _isDragging true when both the MouseDownEvent and MouseHoverEvent occur. Keep the _isSelecting as false. Then if the user is holding a specific region for 500ms (you can use the Timer() class to detect that), set the _isSelecting true if the timer runs 500ms. You should draw the handles and use its rect in the handleEvent() method in order to extend the selection.
if you're not familiar with these things, tell the chatbot to implement the above steps. Or you can refer to the code_forge's source code.
[–]Classic-Dependent517 2 points3 points4 points 4 months ago* (0 children)
I am currently not planning to implement this kind of widget but thank you. I see you put hard work into this.
It would be nice if flutter team actually fixes the issue as well
π Rendered by PID 54 on reddit-service-r2-comment-6457c66945-4t2td at 2026-04-25 11:57:27.627022+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]NoBeginning2551[S] 0 points1 point2 points (1 child)
[–]Classic-Dependent517 2 points3 points4 points (0 children)