fix: scroll tags on stream info widget

This commit is contained in:
2025-05-23 16:30:10 +01:00
parent 46b809ff58
commit 0a75665bde

View File

@ -87,24 +87,28 @@ class StreamInfoWidget extends StatelessWidget {
), ),
if (stream.info.tags.isNotEmpty || stream.info.gameInfo != null) if (stream.info.tags.isNotEmpty || stream.info.gameInfo != null)
Row( SingleChildScrollView(
spacing: 2, scrollDirection: Axis.horizontal,
children: [ primary: false,
if (stream.info.gameInfo != null) child: Row(
GameInfoWidget(info: stream.info.gameInfo!), spacing: 2,
...stream.info.tags.map( children: [
(t) => PillWidget( if (stream.info.gameInfo != null)
color: LAYER_2, GameInfoWidget(info: stream.info.gameInfo!),
onTap: () { ...stream.info.tags.map(
context.push("/t/${Uri.encodeComponent(t)}"); (t) => PillWidget(
}, color: LAYER_2,
child: Text( onTap: () {
t, context.push("/t/${Uri.encodeComponent(t)}");
style: TextStyle(fontWeight: FontWeight.bold), },
child: Text(
t,
style: TextStyle(fontWeight: FontWeight.bold),
),
), ),
), ),
), ],
], ),
), ),
StreamCardsWidget(stream: stream), StreamCardsWidget(stream: stream),
], ],