generated from me/template-mit
Use the debugPrint command so that it does not happen in production.
Pass the board directly rather than with an intermediate variable.
This commit is contained in:
+2
-4
@@ -11,7 +11,7 @@ class MyLogger {
|
||||
if (method.isNotEmpty) {
|
||||
stdout.write(" - $method");
|
||||
}
|
||||
print(": $output");
|
||||
debugPrint(": $output");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -291,12 +291,10 @@ class PlayerSpot extends StatefulWidget {
|
||||
}
|
||||
|
||||
class _PlayerSpotState extends State<PlayerSpot> {
|
||||
List<int> BOARD = [];
|
||||
int _spot = -2;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
BOARD = widget.board;
|
||||
_spot = widget.spot;
|
||||
super.initState();
|
||||
}
|
||||
@@ -307,7 +305,7 @@ class _PlayerSpotState extends State<PlayerSpot> {
|
||||
w: 50,
|
||||
h: 100,
|
||||
spot: _spot,
|
||||
board: BOARD,
|
||||
board: widget.board,
|
||||
boardUpdate: null,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user