mchess-client/lib/utils/widgets/server_log_widget.dart
2023-06-30 01:49:18 +02:00

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();
});
}
}