Files
zap-stream-flutter/lib/widgets/game_info.dart
Kieran 52953a4c16 feat: category / hashtag pages
- with links form stream info
closes #12
2025-05-15 14:12:37 +01:00

26 lines
699 B
Dart

import 'package:flutter/widgets.dart';
import 'package:go_router/go_router.dart';
import 'package:zap_stream_flutter/theme.dart';
import 'package:zap_stream_flutter/utils.dart';
import 'package:zap_stream_flutter/widgets/pill.dart';
class GameInfoWidget extends StatelessWidget {
final GameInfo info;
const GameInfoWidget({super.key, required this.info});
@override
Widget build(BuildContext context) {
return PillWidget(
color: LAYER_2,
onTap: () {
context.push("/category/${Uri.encodeComponent(info.id)}", extra: info);
},
child: Text(
info.name,
style: TextStyle(color: PRIMARY_1, fontWeight: FontWeight.bold),
),
);
}
}