# StreamChannelGridView

A Widget For Displaying A List Of Channels

Find the pub.dev documentation [here](https://pub.dev/documentation/stream_chat_flutter/latest/stream_chat_flutter/StreamChannelGridView-class.html)

### Background

The `StreamChannelGridView` widget allows displaying a list of channels to a user in a `GridView`.

<admonition type="note">

Make sure to check the [StreamChannelListView](/chat/docs/sdk/flutter/stream-chat-flutter/channel-list/stream-channel-list-view/) documentation to know how to show results in a `ListView`.

</admonition>

### Basic Example

Here is a basic example of the `StreamChannelGridView` widget. It consists of the main widget itself, a `StreamChannelListController` to control the list of channels and a callback to handle the tap of a channel.

```dart
class ChannelGridPage extends StatefulWidget {
  const ChannelGridPage({
    Key? key,
    required this.client,
  }) : super(key: key);

  final StreamChatClient client;

  @override
  State<ChannelGridPage> createState() => _ChannelGridPageState();
}

class _ChannelGridPageState extends State<ChannelGridPage> {
  late final _controller = StreamChannelListController(
    client: widget.client,
    filter: Filter.in_(
      'members',
      [StreamChat.of(context).currentUser!.id],
    ),
    channelStateSort: const [SortOption('last_message_at')],
  );

  @override
  void dispose() {
    _controller.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) => Scaffold(
        body: RefreshIndicator(
          onRefresh: _controller.refresh,
          child: StreamChannelGridView(
            controller: _controller,
            onChannelTap: (channel) => Navigator.push(
              context,
              MaterialPageRoute(
                builder: (_) => StreamChannel(
                  channel: channel,
                  child: const ChannelPage(),
                ),
              ),
            ),
          ),
        ),
      );
}
```

This example by default displays the channels that a user is a part of. Now let's look at customizing
the widget.


---

This page was last updated at 2026-05-22T16:31:59.250Z.

For the most recent version of this documentation, visit [https://getstream.io/chat/docs/sdk/flutter/stream-chat-flutter/channel-list/stream-channel-grid-view/](https://getstream.io/chat/docs/sdk/flutter/stream-chat-flutter/channel-list/stream-channel-grid-view/).