fwfh_selectable_text 0.8.3+1 icon indicating copy to clipboard operation
fwfh_selectable_text: ^0.8.3+1 copied to clipboard

WidgetFactory extension to render SelectableText.

SelectableTextFactory #

Flutter codecov Pub

WidgetFactory extension to render SelectableText. This is a companion add-on for flutter_widget_from_html_core package.

Getting Started #

Add this to your app's pubspec.yaml file:

dependencies:
  flutter_widget_from_html_core: any
  fwfh_selectable_text: ^0.8.3

Usage #

Then use HtmlWidget with a custom factory:

import 'package:flutter_widget_from_html_core/flutter_widget_from_html_core.dart';
import 'package:fwfh_selectable_text/fwfh_selectable_text.dart';

// ...

HtmlWidget(
  html,
  factoryBuilder: () => MyWidgetFactory(),
)

// ...

class MyWidgetFactory extends WidgetFactory with SelectableTextFactory {

  @override
  SelectionChangedCallback? get selectableTextOnChanged => (selection, cause) {
    // do something when the selection changes
  };

}
4
likes
120
pub points
96%
popularity

Publisher

verified publisher icondaohoangson.com

WidgetFactory extension to render SelectableText.

Homepage

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

flutter, flutter_widget_from_html_core

More

Packages that depend on fwfh_selectable_text