flutter_widget_from_html
                                
                                 flutter_widget_from_html copied to clipboard
                                
                                    flutter_widget_from_html copied to clipboard
                            
                            
                            
                        Is has any way to set custom selection controls?
Use case
Want to set custom selectable controls in htmlWidget, Is has any way?
I think this can be done. It's not possible with the current version though.
You can make your own widget factory and override the buildText method, something like this:
class _MyWidgetFactory extends WidgetFactory {
  @override
  Widget? buildText(BuildMetadata meta, TextStyleHtml tsh, InlineSpan text) {
    if (text is TextSpan) {
      return SelectableText.rich(
        text,
        maxLines: meta.maxLines > 0 ? meta.maxLines : null,
        selectionControls: _MyTextSelectionControls(), // replace with yours
        textAlign: tsh.textAlign ?? TextAlign.start,
        textDirection: tsh.textDirection,
        textScaleFactor: 1.0,
      );
    }
    return super.buildText(meta, tsh, text);
  }
}