---
title: "Flutter SDK: Custom data"
description: "Attach custom data to customer feedback with the Gleap Flutter SDK. Follow the integration code examples."
url: https://docs.gleap.ai/en/articles/544-flutter-sdk-custom-data
collection: "Flutter"
updated: 2026-11-01
language: en
---

# Flutter SDK: Custom data

Attach custom data to customer feedback with the Gleap Flutter SDK. Follow the integration code examples.

## Add custom data

In many situations you may want to attach custom data to feedback items in order to better understand the context. You can add custom data incrementally or all at once. Any simple JSON object can be attached.

```dart
Gleap.attachCustomData(customData: <String, dynamic>{'user': 'Franzi'});
```

If you want to attach custom data incrementally, you can do so with the `setCustomData` method.

```dart
Gleap.setCustomData(key: 'value', value: 'Franzi');
```

## Remove custom data

Remove custom data key value pairs by calling the following method.

```dart
Gleap.removeCustomDataForKey(key: 'value');
```

## Clear all custom data

It's possible to clear all attached custom data by calling the following method.

```dart
Gleap.clearCustomData();
```

## Related

- [Flutter SDK setup](https://docs.gleap.ai/en/articles/531-flutter-sdk-setup.md)
- [Flutter SDK: User identity](https://docs.gleap.ai/en/articles/532-flutter-sdk-user-identity.md)
- [Flutter SDK: Track events](https://docs.gleap.ai/en/articles/533-flutter-sdk-track-events.md)
- [Flutter SDK: Track pages](https://docs.gleap.ai/en/articles/534-flutter-sdk-track-pages.md)
- [Flutter SDK: Frontend tools](https://docs.gleap.ai/en/articles/535-flutter-sdk-frontend-tools.md)
