2022-12-18 00:04:08 +00:00
|
|
|
import 'package:flutter/widgets.dart';
|
2023-06-29 23:49:18 +00:00
|
|
|
import 'package:mchess/connection/ws_connection.dart';
|
2022-12-18 00:04:08 +00:00
|
|
|
|
|
|
|
class ServerLogWidget extends StatefulWidget {
|
|
|
|
final Color textColor;
|
|
|
|
|
2023-06-29 23:49:18 +00:00
|
|
|
const ServerLogWidget({required this.textColor, super.key});
|
2022-12-18 00:04:08 +00:00
|
|
|
|
|
|
|
@override
|
|
|
|
State<StatefulWidget> createState() => ServerLogWidgetState();
|
|
|
|
}
|
|
|
|
|
|
|
|
class ServerLogWidgetState extends State<ServerLogWidget> {
|
|
|
|
List<String> log = [];
|
|
|
|
|
|
|
|
ServerLogWidgetState();
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
2023-06-29 23:49:18 +00:00
|
|
|
// return Container();
|
|
|
|
return StreamBuilder(
|
|
|
|
stream: ServerConnection.getInstance().broadcast,
|
|
|
|
builder: (context, snapshot) {
|
|
|
|
return Container();
|
|
|
|
});
|
2022-12-18 00:04:08 +00:00
|
|
|
}
|
|
|
|
}
|