highlight.dart
highlight.dart copied to clipboard
Background processing for Flutter
This PR adds a HighlightBackgroundEnvironment
widget that can be added to the widget tree.
HighlightBackgroundEnvironment
uses a background isolate to perform expensive text processing functionality that HighlightView
can access through an InheritedWidget
.
When HighlightView
detects the presence of the aforementioned InheritedWidget
, it will automatically use it.
This PR includes #33, as it's dependent on the architectural changes made there.