From 8598326de1cf03ad54ed4fa47f194d11847a3e4e Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Sun, 27 Apr 2025 14:24:32 +0000 Subject: [PATCH] Actions: Auto-formatting [skip ci] --- lib/views/active_game_view.dart | 6 ++++-- lib/views/create_game_view.dart | 22 ++++++++++++---------- lib/views/information_view.dart | 3 ++- lib/views/main_menu_view.dart | 3 ++- pubspec.yaml | 2 +- 5 files changed, 21 insertions(+), 15 deletions(-) diff --git a/lib/views/active_game_view.dart b/lib/views/active_game_view.dart index e30fabb..14d4166 100644 --- a/lib/views/active_game_view.dart +++ b/lib/views/active_game_view.dart @@ -76,8 +76,10 @@ class _ActiveGameViewState extends State { ), trailing: index + 1 != widget.gameSession.round || widget.gameSession.finished == true - ? (const Text('\u{2705}', style: TextStyle(fontSize: 22))) - : const Text('\u{23F3}', style: TextStyle(fontSize: 22)), + ? (const Text('\u{2705}', + style: TextStyle(fontSize: 22))) + : const Text('\u{23F3}', + style: TextStyle(fontSize: 22)), onTap: () async { // ignore: unused_local_variable final val = await Navigator.push( diff --git a/lib/views/create_game_view.dart b/lib/views/create_game_view.dart index a8bac99..cf338d8 100644 --- a/lib/views/create_game_view.dart +++ b/lib/views/create_game_view.dart @@ -131,7 +131,8 @@ class _CreateGameState extends State { showCupertinoDialog( context: context, builder: (context) => CupertinoAlertDialog( - title: const Text('Maximale Spielerzahl erreicht'), + title: + const Text('Maximale Spielerzahl erreicht'), content: const Text( 'Es können maximal 5 Spieler hinzugefügt ' 'werden.'), @@ -203,9 +204,9 @@ class _CreateGameState extends State { context: context, builder: (context) => CupertinoAlertDialog( title: const Text('Fehler'), - content: - const Text('Es muss ein Titel für das Spiel eingegeben ' - 'werden.'), + content: const Text( + 'Es muss ein Titel für das Spiel eingegeben ' + 'werden.'), actions: [ CupertinoDialogAction( child: const Text('OK'), @@ -221,8 +222,8 @@ class _CreateGameState extends State { context: context, builder: (context) => CupertinoAlertDialog( title: const Text('Fehler'), - content: - const Text('Es muss ein Spielmodus ausgewählt werden.'), + content: const Text( + 'Es muss ein Spielmodus ausgewählt werden.'), actions: [ CupertinoDialogAction( child: const Text('OK'), @@ -238,9 +239,9 @@ class _CreateGameState extends State { context: context, builder: (context) => CupertinoAlertDialog( title: const Text('Fehler'), - content: - const Text('Es müssen mindestens 2 Spieler hinzugefügt ' - 'werden.'), + content: const Text( + 'Es müssen mindestens 2 Spieler hinzugefügt ' + 'werden.'), actions: [ CupertinoDialogAction( child: const Text('OK'), @@ -256,7 +257,8 @@ class _CreateGameState extends State { context: context, builder: (context) => CupertinoAlertDialog( title: const Text('Fehler'), - content: const Text('Jeder Spieler muss einen Namen haben.'), + content: + const Text('Jeder Spieler muss einen Namen haben.'), actions: [ CupertinoDialogAction( child: const Text('OK'), diff --git a/lib/views/information_view.dart b/lib/views/information_view.dart index 7d417fb..6b43934 100644 --- a/lib/views/information_view.dart +++ b/lib/views/information_view.dart @@ -34,7 +34,8 @@ class InformationView extends StatelessWidget { ), ), Padding( - padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 10), + padding: const EdgeInsets.symmetric( + horizontal: 20, vertical: 10), child: SizedBox( height: 200, child: diff --git a/lib/views/main_menu_view.dart b/lib/views/main_menu_view.dart index f5d453f..0a5f479 100644 --- a/lib/views/main_menu_view.dart +++ b/lib/views/main_menu_view.dart @@ -104,7 +104,8 @@ class _MainMenuViewState extends State { children: [ Text('${session.round}'), const SizedBox(width: 3), - const Icon(CupertinoIcons.arrow_2_circlepath_circle_fill), + const Icon( + CupertinoIcons.arrow_2_circlepath_circle_fill), const SizedBox(width: 15), Text('${session.players.length}'), const SizedBox(width: 3), diff --git a/pubspec.yaml b/pubspec.yaml index 78db0ea..73d0ca2 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -20,7 +20,7 @@ dev_dependencies: flutter_test: sdk: flutter - flutter_lints: ^4.0.0 + flutter_lints: ^5.0.0 test: ^1.25.15