feat: add front chat
This commit is contained in:
@@ -16,7 +16,7 @@ import '../../../wallet/presentation/bloc/wallet_status.dart';
|
||||
import '../../domain/entities/game_entities.dart';
|
||||
import '../bloc/game_bloc.dart';
|
||||
import '../bloc/game_state.dart';
|
||||
import '../widgets/chat_sheet.dart';
|
||||
import '../../../chat/presentation/widgets/chat_panel.dart';
|
||||
import '../widgets/flame/hokm_game.dart';
|
||||
import '../widgets/table_hud.dart';
|
||||
|
||||
@@ -154,10 +154,12 @@ class _GameScreenState extends State<GameScreen> {
|
||||
|
||||
void _openChat(BuildContext context) {
|
||||
final bloc = context.read<GameBloc>();
|
||||
ChatSheet.show(
|
||||
final wallet = context.read<WalletBloc>();
|
||||
ChatPanel.show(
|
||||
context,
|
||||
onText: bloc.sendChatText,
|
||||
onEmoji: bloc.sendChatEmoji,
|
||||
onWalletChanged: () => wallet.add(LoadWalletEvent()),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user