From 0a75665bde2270c22df5186719338511302d8081 Mon Sep 17 00:00:00 2001 From: Kieran Date: Fri, 23 May 2025 16:30:10 +0100 Subject: [PATCH] fix: scroll tags on stream info widget --- lib/widgets/stream_info.dart | 36 ++++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/lib/widgets/stream_info.dart b/lib/widgets/stream_info.dart index f3731ef..3f52048 100644 --- a/lib/widgets/stream_info.dart +++ b/lib/widgets/stream_info.dart @@ -87,24 +87,28 @@ class StreamInfoWidget extends StatelessWidget { ), if (stream.info.tags.isNotEmpty || stream.info.gameInfo != null) - Row( - spacing: 2, - children: [ - if (stream.info.gameInfo != null) - GameInfoWidget(info: stream.info.gameInfo!), - ...stream.info.tags.map( - (t) => PillWidget( - color: LAYER_2, - onTap: () { - context.push("/t/${Uri.encodeComponent(t)}"); - }, - child: Text( - t, - style: TextStyle(fontWeight: FontWeight.bold), + SingleChildScrollView( + scrollDirection: Axis.horizontal, + primary: false, + child: Row( + spacing: 2, + children: [ + if (stream.info.gameInfo != null) + GameInfoWidget(info: stream.info.gameInfo!), + ...stream.info.tags.map( + (t) => PillWidget( + color: LAYER_2, + onTap: () { + context.push("/t/${Uri.encodeComponent(t)}"); + }, + child: Text( + t, + style: TextStyle(fontWeight: FontWeight.bold), + ), ), ), - ), - ], + ], + ), ), StreamCardsWidget(stream: stream), ],