---
title: "Flutter PDF text selection events and notifications | Nutrient"
canonical_url: "https://www.nutrient.io/guides/flutter/events-and-notifications/text-selection/"
md_url: "https://www.nutrient.io/guides/flutter/events-and-notifications/text-selection.md"
last_updated: "2026-05-15T09:08:03.624Z"
description: "Nutrient Flutter SDK lets you listen to various events that occur when the end user selects text in a document."
---

# Text selection events and notifications

Nutrient Flutter SDK lets you listen to various events that occur when the end user selects text in a document.

## Text selection events

Nutrient Flutter SDK supports text selection through adding event listeners to the [`NutrientView`](https://pub.dev/documentation/nutrient_flutter/latest/nutrient_flutter/NutrientView-class.html):

- `onTextSelectionChanged` — Called when the text selection is changed with the new selected text. This event is triggered when a user selects text in a document.

To listen to these events, add an event listener to the [`NutrientView`](https://pub.dev/documentation/nutrient_flutter/latest/nutrient_flutter/NutrientView-class.html):

```dart

nutrientViewController.addEventListener(NutrientEvent.textSelection, (event) {
  print('Text selection changed: $event');
});

```

For more advanced use cases, consider exploring the Nutrient native and web SDKs for customization. Refer to the [Nutrient Flutter SDK customization](https://www.nutrient.io/guides/flutter/customize.md) guide and the following documentation links for more information:

- [iOS](https://www.nutrient.io/guides/ios/events-and-notifications.md)

- [Android](https://www.nutrient.io/guides/android/events-and-notifications.md)

- [Web](https://www.nutrient.io/guides/web/events.md)
---

## Related pages

- [Analytics events and notifications](/guides/flutter/events-and-notifications/analytics.md)
- [PDF form events and notifications](/guides/flutter/events-and-notifications/forms.md)
- [PDF events and notifications](/guides/flutter/events-and-notifications.md)
- [Annotation events and notifications](/guides/flutter/events-and-notifications/annotation.md)
- [Viewer events and notifications](/guides/flutter/events-and-notifications/viewer.md)

