Only show turn indicator and server output when in debug mode.
This commit is contained in:
parent
0b7c3897e5
commit
0356268b32
@ -1,3 +1,4 @@
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:mchess/chess_bloc/chess_bloc.dart';
|
||||
@ -19,7 +20,7 @@ class ChessApp extends StatelessWidget {
|
||||
child: BlocProvider(
|
||||
create: (_) => ChessBloc.getInstance(),
|
||||
child: MaterialApp(
|
||||
title: 'mChess v0.1.20',
|
||||
title: 'mChess v0.1.1337',
|
||||
home: Scaffold(
|
||||
body: Container(
|
||||
decoration: const BoxDecoration(
|
||||
@ -38,6 +39,7 @@ class ChessApp extends StatelessWidget {
|
||||
fit: BoxFit.contain,
|
||||
child: Row(
|
||||
children: [
|
||||
if (kDebugMode)
|
||||
StreamBuilder(
|
||||
stream: ServerConnection.getInstance().broadcast,
|
||||
builder: (context, snapshot) {
|
||||
@ -57,7 +59,7 @@ class ChessApp extends StatelessWidget {
|
||||
},
|
||||
),
|
||||
),
|
||||
const TurnIndicator(),
|
||||
if (kDebugMode) const TurnIndicator(),
|
||||
],
|
||||
),
|
||||
)),
|
||||
|
Loading…
Reference in New Issue
Block a user