Actions: Auto-formatting [skip ci]
This commit is contained in:
@@ -76,8 +76,10 @@ class _ActiveGameViewState extends State<ActiveGameView> {
|
|||||||
),
|
),
|
||||||
trailing: index + 1 != widget.gameSession.round ||
|
trailing: index + 1 != widget.gameSession.round ||
|
||||||
widget.gameSession.finished == true
|
widget.gameSession.finished == true
|
||||||
? (const Text('\u{2705}', style: TextStyle(fontSize: 22)))
|
? (const Text('\u{2705}',
|
||||||
: const Text('\u{23F3}', style: TextStyle(fontSize: 22)),
|
style: TextStyle(fontSize: 22)))
|
||||||
|
: const Text('\u{23F3}',
|
||||||
|
style: TextStyle(fontSize: 22)),
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
// ignore: unused_local_variable
|
// ignore: unused_local_variable
|
||||||
final val = await Navigator.push(
|
final val = await Navigator.push(
|
||||||
|
|||||||
@@ -131,7 +131,8 @@ class _CreateGameState extends State<CreateGame> {
|
|||||||
showCupertinoDialog(
|
showCupertinoDialog(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (context) => CupertinoAlertDialog(
|
builder: (context) => CupertinoAlertDialog(
|
||||||
title: const Text('Maximale Spielerzahl erreicht'),
|
title:
|
||||||
|
const Text('Maximale Spielerzahl erreicht'),
|
||||||
content: const Text(
|
content: const Text(
|
||||||
'Es können maximal 5 Spieler hinzugefügt '
|
'Es können maximal 5 Spieler hinzugefügt '
|
||||||
'werden.'),
|
'werden.'),
|
||||||
@@ -203,9 +204,9 @@ class _CreateGameState extends State<CreateGame> {
|
|||||||
context: context,
|
context: context,
|
||||||
builder: (context) => CupertinoAlertDialog(
|
builder: (context) => CupertinoAlertDialog(
|
||||||
title: const Text('Fehler'),
|
title: const Text('Fehler'),
|
||||||
content:
|
content: const Text(
|
||||||
const Text('Es muss ein Titel für das Spiel eingegeben '
|
'Es muss ein Titel für das Spiel eingegeben '
|
||||||
'werden.'),
|
'werden.'),
|
||||||
actions: [
|
actions: [
|
||||||
CupertinoDialogAction(
|
CupertinoDialogAction(
|
||||||
child: const Text('OK'),
|
child: const Text('OK'),
|
||||||
@@ -221,8 +222,8 @@ class _CreateGameState extends State<CreateGame> {
|
|||||||
context: context,
|
context: context,
|
||||||
builder: (context) => CupertinoAlertDialog(
|
builder: (context) => CupertinoAlertDialog(
|
||||||
title: const Text('Fehler'),
|
title: const Text('Fehler'),
|
||||||
content:
|
content: const Text(
|
||||||
const Text('Es muss ein Spielmodus ausgewählt werden.'),
|
'Es muss ein Spielmodus ausgewählt werden.'),
|
||||||
actions: [
|
actions: [
|
||||||
CupertinoDialogAction(
|
CupertinoDialogAction(
|
||||||
child: const Text('OK'),
|
child: const Text('OK'),
|
||||||
@@ -238,9 +239,9 @@ class _CreateGameState extends State<CreateGame> {
|
|||||||
context: context,
|
context: context,
|
||||||
builder: (context) => CupertinoAlertDialog(
|
builder: (context) => CupertinoAlertDialog(
|
||||||
title: const Text('Fehler'),
|
title: const Text('Fehler'),
|
||||||
content:
|
content: const Text(
|
||||||
const Text('Es müssen mindestens 2 Spieler hinzugefügt '
|
'Es müssen mindestens 2 Spieler hinzugefügt '
|
||||||
'werden.'),
|
'werden.'),
|
||||||
actions: [
|
actions: [
|
||||||
CupertinoDialogAction(
|
CupertinoDialogAction(
|
||||||
child: const Text('OK'),
|
child: const Text('OK'),
|
||||||
@@ -256,7 +257,8 @@ class _CreateGameState extends State<CreateGame> {
|
|||||||
context: context,
|
context: context,
|
||||||
builder: (context) => CupertinoAlertDialog(
|
builder: (context) => CupertinoAlertDialog(
|
||||||
title: const Text('Fehler'),
|
title: const Text('Fehler'),
|
||||||
content: const Text('Jeder Spieler muss einen Namen haben.'),
|
content:
|
||||||
|
const Text('Jeder Spieler muss einen Namen haben.'),
|
||||||
actions: [
|
actions: [
|
||||||
CupertinoDialogAction(
|
CupertinoDialogAction(
|
||||||
child: const Text('OK'),
|
child: const Text('OK'),
|
||||||
|
|||||||
@@ -34,7 +34,8 @@ class InformationView extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 10),
|
padding: const EdgeInsets.symmetric(
|
||||||
|
horizontal: 20, vertical: 10),
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
height: 200,
|
height: 200,
|
||||||
child:
|
child:
|
||||||
|
|||||||
@@ -104,7 +104,8 @@ class _MainMenuViewState extends State<MainMenuView> {
|
|||||||
children: [
|
children: [
|
||||||
Text('${session.round}'),
|
Text('${session.round}'),
|
||||||
const SizedBox(width: 3),
|
const SizedBox(width: 3),
|
||||||
const Icon(CupertinoIcons.arrow_2_circlepath_circle_fill),
|
const Icon(
|
||||||
|
CupertinoIcons.arrow_2_circlepath_circle_fill),
|
||||||
const SizedBox(width: 15),
|
const SizedBox(width: 15),
|
||||||
Text('${session.players.length}'),
|
Text('${session.players.length}'),
|
||||||
const SizedBox(width: 3),
|
const SizedBox(width: 3),
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ dev_dependencies:
|
|||||||
flutter_test:
|
flutter_test:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
|
|
||||||
flutter_lints: ^4.0.0
|
flutter_lints: ^5.0.0
|
||||||
test: ^1.25.15
|
test: ^1.25.15
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user