Skip to content
0:00 / 0:00

#flutter#selectabletext#textrendering

Custom selectable text in Flutter

SuperDeclarative!

7.2K subscribers • 11 videos on Hallway

YouTube

Advanced. Deep dive for people who know the field.

6.3K views5 years ago2 recommendations

Mobile developmentGraphics and audioFlutter and React NativeRendering

Matt Carroll demonstrates how to build a custom selectable text widget in Flutter with custom carets, highlights, and drag selection.

It's scary when text doesn't do what you want. Text layout and painting is often not in our control. But in Flutter, we have the control. In this talk, Matt demonstrates how to turn a regular Text widget into a custom SelectableText widget with a caret, highlight region, drag selection, and a custom cursor, all in less than 30 minutes. Source code: github.com/matthew-carroll/flutter-engage_selectable-text --- Follow: twitter.com/suprdeclarative Hourly Flutter Consulting: consulting.superdeclarative.com Flutter Training: hotreload.io Learn Flutter: school.superdeclarative.com Blog: blog.superdeclarative.com Website: superdeclarative.com

Why it's here

2 people recommend this

What people say. Recommended as a deep dive into low-level Flutter text rendering and custom selection mechanics.

u/delay1in r/FlutterDev • Recommends

On “Why there is no reliable rich text editor for flutter?”

I have tried zefyr but gave up on it as it was too difficult to convert to my use case and was buggy. So I am building one from scratch now. Originally was looking at doing it very low level like this tutorial. [video . Now I think I will base it off of SelectableText.rich for the text portions https://api.flutter.dev/flutter/material/SelectableText/SelectableText.rich.html There are two widgets I think the flutter team should focus on. A rich text editor like this and improving the Flutter\_webview widget to remove bugs and add features. Both of these are needed for a ton of apps.

u/Pixelredditin r/FlutterDev • Recommends

Custom selectable text in Flutter

u/delay1in r/FlutterDev • Recommends

On “Any HTML WYSIWYG Editor available?”

This guy is working on A rich text component that is suppose to be coming out this quarter. [video He had a really good tutorial on doing part of this here. [video so looking forward to his component when he releases it...