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/material.dart';
|
||||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||||
import 'package:mchess/chess_bloc/chess_bloc.dart';
|
import 'package:mchess/chess_bloc/chess_bloc.dart';
|
||||||
@ -19,7 +20,7 @@ class ChessApp extends StatelessWidget {
|
|||||||
child: BlocProvider(
|
child: BlocProvider(
|
||||||
create: (_) => ChessBloc.getInstance(),
|
create: (_) => ChessBloc.getInstance(),
|
||||||
child: MaterialApp(
|
child: MaterialApp(
|
||||||
title: 'mChess v0.1.20',
|
title: 'mChess v0.1.1337',
|
||||||
home: Scaffold(
|
home: Scaffold(
|
||||||
body: Container(
|
body: Container(
|
||||||
decoration: const BoxDecoration(
|
decoration: const BoxDecoration(
|
||||||
@ -38,6 +39,7 @@ class ChessApp extends StatelessWidget {
|
|||||||
fit: BoxFit.contain,
|
fit: BoxFit.contain,
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
|
if (kDebugMode)
|
||||||
StreamBuilder(
|
StreamBuilder(
|
||||||
stream: ServerConnection.getInstance().broadcast,
|
stream: ServerConnection.getInstance().broadcast,
|
||||||
builder: (context, snapshot) {
|
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