From 68b46a8d5851d30b92addfe2f46199f177828a66 Mon Sep 17 00:00:00 2001 From: Oeyuu Date: Fri, 10 May 2024 23:22:28 +0200 Subject: [PATCH] deleted old main.dart --- lib/screens/main.dart | 89 ------------------------------------------- 1 file changed, 89 deletions(-) delete mode 100644 lib/screens/main.dart diff --git a/lib/screens/main.dart b/lib/screens/main.dart deleted file mode 100644 index 63ec0d6..0000000 --- a/lib/screens/main.dart +++ /dev/null @@ -1,89 +0,0 @@ -// import 'package:flutter/material.dart'; -// import '../models/gamingbloob.dart'; - -// class WerewolfGame extends StatefulWidget { -// @override -// _WerewolfGameState createState() => _WerewolfGameState(); -// } - -// class _WerewolfGameState extends State { -// final Game game = Game(1); // Initial number of wolves -// final TextEditingController _playerController = TextEditingController(); - -// @override -// Widget build(BuildContext context) { -// return Scaffold( -// body: Column( -// children: [ -// Padding( -// padding: const EdgeInsets.all(8.0), -// child: TextField( -// controller: _playerController, -// decoration: InputDecoration(labelText: 'Spielername'), -// onSubmitted: (value) { -// setState(() { -// game.addPlayer(value); -// _playerController.clear(); -// }); -// }, -// ), -// ), -// Row( -// mainAxisAlignment: MainAxisAlignment.spaceEvenly, -// children: [ -// FloatingActionButton( -// onPressed: () { -// setState(() { -// game.decrementWolves(); -// }); -// }, -// child: Icon(Icons.remove), -// mini: true, -// ), -// Text('Anzahl der Werwölfe: ${game.numWolves}', -// style: TextStyle(fontSize: 16)), -// FloatingActionButton( -// onPressed: () { -// setState(() { -// game.incrementWolves(); -// }); -// }, -// child: Icon(Icons.add), -// mini: true, -// ), -// ], -// ), -// ElevatedButton( -// onPressed: () { -// setState(() { -// game.assignRoles(); -// }); -// }, -// child: Text('Spiel starten'), -// ), -// Expanded( -// child: ListView.builder( -// itemCount: game.players.length, -// itemBuilder: (context, index) { -// return ListTile( -// title: Text(game.players[index].name), -// trailing: Icon(game.players[index].isRevealed -// ? Icons.visibility -// : Icons.visibility_off), -// onTap: () { -// setState(() { -// game.toggleReveal(index); -// }); -// }, -// subtitle: game.players[index].isRevealed -// ? Text(game.players[index].role as String) -// : null, -// ); -// }, -// ), -// ), -// ], -// ), -// ); -// } -// }