import 'package:flutter/material.dart';
import 'package:mnemo_cards/utils/string_helper.dart';
import 'package:mnemo_cards_common/mnemo_cards_common.dart';

import '../../features/card_swiper/src/card_swiper_controller.dart';
import '../header.dart';

class CardGameHeader extends StatelessWidget {
  final CardSwiperController controller;
  final CardPackDto cardPackDto;

  const CardGameHeader(
    this.controller,
    this.cardPackDto,
  );

  @override
  Widget build(BuildContext context) {
    final theme = Theme.of(context).textTheme;

    return StreamBuilder(
      stream: controller.asStream,
      builder: (context, snapshot) => Header(
        '${cardPackDto.title}',
        // trailing: Text(
        //   '${snapshot.data}/${cardPackDto.size}',
        //   style: theme.headlineSmall,
        // ),
      ),
    );
  }
}
