28 lines
674 B
Dart
28 lines
674 B
Dart
import 'package:flutter/widgets.dart';
|
|
import 'package:mchess/connection/ws_connection.dart';
|
|
|
|
class ServerLogWidget extends StatefulWidget {
|
|
final Color textColor;
|
|
|
|
const ServerLogWidget({required this.textColor, super.key});
|
|
|
|
@override
|
|
State<StatefulWidget> createState() => ServerLogWidgetState();
|
|
}
|
|
|
|
class ServerLogWidgetState extends State<ServerLogWidget> {
|
|
List<String> log = [];
|
|
|
|
ServerLogWidgetState();
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
// return Container();
|
|
return StreamBuilder(
|
|
stream: ServerConnection.getInstance().broadcast,
|
|
builder: (context, snapshot) {
|
|
return Container();
|
|
});
|
|
}
|
|
}
|