---
title: "Flutter SDK: Widget control"
description: "Open and close the Gleap widget programmatically with the Gleap Flutter SDK. Follow the integration code examples."
url: https://docs.gleap.ai/en/articles/554-flutter-sdk-widget-control
collection: "Flutter"
updated: 2026-11-01
language: en
---

# Flutter SDK: Widget control

Open and close the Gleap widget programmatically with the Gleap Flutter SDK. Follow the integration code examples.

In some situations you might want to take full control over showing the Gleap widget. This can be achieved with the following method.

### Open the Gleap widget

```dart
Gleap.open();
```

This method opens the Gleap widget and shows the feedback menu options.

### Close the Gleap widget

```dart
Gleap.close();
```

This method closes the Gleap widget.

### Widget open status

It's possible to request the widget open status with the following method.

```dart
Gleap.isOpened();
```

## 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)
