Actions: Auto-formatting [skip ci]
This commit is contained in:
@@ -22,7 +22,7 @@ class App extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
debugShowCheckedModeBanner: false,
|
debugShowCheckedModeBanner: false,
|
||||||
title: 'CABO-Counter',
|
title: 'CABO-Counter',
|
||||||
home: MainMenuView(),
|
home: const MainMenuView(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import 'package:flutter/cupertino.dart';
|
|||||||
|
|
||||||
abstract class Styles {
|
abstract class Styles {
|
||||||
static Color primaryColor = CupertinoColors.systemGreen;
|
static Color primaryColor = CupertinoColors.systemGreen;
|
||||||
static Color backgroundColor = Color(0xFF080808);
|
static Color backgroundColor = const Color(0xFF080808);
|
||||||
|
|
||||||
static TextStyle modeTitle = TextStyle(
|
static TextStyle modeTitle = TextStyle(
|
||||||
color: primaryColor,
|
color: primaryColor,
|
||||||
@@ -20,13 +20,13 @@ abstract class Styles {
|
|||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
);
|
);
|
||||||
|
|
||||||
static TextStyle roundTitle = TextStyle(
|
static TextStyle roundTitle = const TextStyle(
|
||||||
fontSize: 60,
|
fontSize: 60,
|
||||||
color: CupertinoColors.white,
|
color: CupertinoColors.white,
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
);
|
);
|
||||||
|
|
||||||
static TextStyle roundPlayers = TextStyle(
|
static TextStyle roundPlayers = const TextStyle(
|
||||||
fontSize: 20,
|
fontSize: 20,
|
||||||
color: CupertinoColors.white,
|
color: CupertinoColors.white,
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
|
|||||||
@@ -21,13 +21,13 @@ TextStyle createGameTitle = TextStyle(
|
|||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
);
|
);
|
||||||
|
|
||||||
TextStyle roundTitle = TextStyle(
|
TextStyle roundTitle = const TextStyle(
|
||||||
fontSize: 60,
|
fontSize: 60,
|
||||||
color: CupertinoColors.white,
|
color: CupertinoColors.white,
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
);
|
);
|
||||||
|
|
||||||
TextStyle roundPlayers = TextStyle(
|
TextStyle roundPlayers = const TextStyle(
|
||||||
fontSize: 20,
|
fontSize: 20,
|
||||||
color: CupertinoColors.white,
|
color: CupertinoColors.white,
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ class _ActiveGameViewState extends State<ActiveGameView> {
|
|||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
Padding(
|
Padding(
|
||||||
padding: EdgeInsets.fromLTRB(10, 10, 0, 0),
|
padding: const EdgeInsets.fromLTRB(10, 10, 0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'Spieler:innen',
|
'Spieler:innen',
|
||||||
style: theme.createGameTitle,
|
style: theme.createGameTitle,
|
||||||
@@ -40,16 +40,16 @@ class _ActiveGameViewState extends State<ActiveGameView> {
|
|||||||
title: Row(
|
title: Row(
|
||||||
children: [
|
children: [
|
||||||
_getPlacementPrefix(index),
|
_getPlacementPrefix(index),
|
||||||
SizedBox(width: 5),
|
const SizedBox(width: 5),
|
||||||
Text(
|
Text(
|
||||||
widget.gameSession.players[playerIndex],
|
widget.gameSession.players[playerIndex],
|
||||||
style: TextStyle(fontWeight: FontWeight.bold),
|
style: const TextStyle(fontWeight: FontWeight.bold),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
trailing: Row(
|
trailing: Row(
|
||||||
children: [
|
children: [
|
||||||
SizedBox(width: 5),
|
const SizedBox(width: 5),
|
||||||
Text('${widget.gameSession.playerScores[playerIndex][0]} '
|
Text('${widget.gameSession.playerScores[playerIndex][0]} '
|
||||||
'Punkte')
|
'Punkte')
|
||||||
],
|
],
|
||||||
@@ -58,7 +58,7 @@ class _ActiveGameViewState extends State<ActiveGameView> {
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
padding: EdgeInsets.fromLTRB(10, 10, 0, 0),
|
padding: const EdgeInsets.fromLTRB(10, 10, 0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'Runden',
|
'Runden',
|
||||||
style: theme.createGameTitle,
|
style: theme.createGameTitle,
|
||||||
@@ -69,15 +69,15 @@ class _ActiveGameViewState extends State<ActiveGameView> {
|
|||||||
itemCount: widget.gameSession.round,
|
itemCount: widget.gameSession.round,
|
||||||
itemBuilder: (BuildContext context, int index) {
|
itemBuilder: (BuildContext context, int index) {
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: EdgeInsets.all(1),
|
padding: const EdgeInsets.all(1),
|
||||||
child: CupertinoListTile(
|
child: CupertinoListTile(
|
||||||
title: Text(
|
title: Text(
|
||||||
'Runde ${index + 1}',
|
'Runde ${index + 1}',
|
||||||
),
|
),
|
||||||
trailing: index + 1 != widget.gameSession.round ||
|
trailing: index + 1 != widget.gameSession.round ||
|
||||||
widget.gameSession.finished == true
|
widget.gameSession.finished == true
|
||||||
? (Text('\u{2705}', style: TextStyle(fontSize: 22)))
|
? (const Text('\u{2705}', style: TextStyle(fontSize: 22)))
|
||||||
: Text('\u{23F3}', 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(
|
||||||
@@ -120,24 +120,24 @@ class _ActiveGameViewState extends State<ActiveGameView> {
|
|||||||
Widget _getPlacementPrefix(int index) {
|
Widget _getPlacementPrefix(int index) {
|
||||||
switch (index) {
|
switch (index) {
|
||||||
case 0:
|
case 0:
|
||||||
return Text(
|
return const Text(
|
||||||
'\u{1F947}',
|
'\u{1F947}',
|
||||||
style: TextStyle(fontSize: 22),
|
style: TextStyle(fontSize: 22),
|
||||||
);
|
);
|
||||||
case 1:
|
case 1:
|
||||||
return Text(
|
return const Text(
|
||||||
'\u{1F948}',
|
'\u{1F948}',
|
||||||
style: TextStyle(fontSize: 22),
|
style: TextStyle(fontSize: 22),
|
||||||
);
|
);
|
||||||
case 2:
|
case 2:
|
||||||
return Text(
|
return const Text(
|
||||||
'\u{1F949}',
|
'\u{1F949}',
|
||||||
style: TextStyle(fontSize: 22),
|
style: TextStyle(fontSize: 22),
|
||||||
);
|
);
|
||||||
default:
|
default:
|
||||||
return Text(
|
return Text(
|
||||||
' ${index + 1}.',
|
' ${index + 1}.',
|
||||||
style: TextStyle(fontWeight: FontWeight.bold),
|
style: const TextStyle(fontWeight: FontWeight.bold),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,9 +24,9 @@ class _CreateGameState extends State<CreateGame> {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return CupertinoPageScaffold(
|
return CupertinoPageScaffold(
|
||||||
navigationBar: CupertinoNavigationBar(
|
navigationBar: const CupertinoNavigationBar(
|
||||||
previousPageTitle: 'Übersicht',
|
previousPageTitle: 'Übersicht',
|
||||||
middle: const Text('Neues Spiel'),
|
middle: Text('Neues Spiel'),
|
||||||
),
|
),
|
||||||
child: SafeArea(
|
child: SafeArea(
|
||||||
child: Center(
|
child: Center(
|
||||||
@@ -35,18 +35,18 @@ class _CreateGameState extends State<CreateGame> {
|
|||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
Padding(
|
Padding(
|
||||||
padding: EdgeInsets.fromLTRB(10, 10, 0, 0),
|
padding: const EdgeInsets.fromLTRB(10, 10, 0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'Spiel',
|
'Spiel',
|
||||||
style: Styles.createGameTitle,
|
style: Styles.createGameTitle,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
padding: EdgeInsets.fromLTRB(10, 10, 10, 0),
|
padding: const EdgeInsets.fromLTRB(10, 10, 10, 0),
|
||||||
child: CupertinoTextField(
|
child: CupertinoTextField(
|
||||||
decoration: BoxDecoration(),
|
decoration: const BoxDecoration(),
|
||||||
maxLength: 8,
|
maxLength: 8,
|
||||||
prefix: Text('Name'),
|
prefix: const Text('Name'),
|
||||||
textAlign: TextAlign.right,
|
textAlign: TextAlign.right,
|
||||||
placeholder: 'Titel des Spiels',
|
placeholder: 'Titel des Spiels',
|
||||||
controller: _gameTitleTextController,
|
controller: _gameTitleTextController,
|
||||||
@@ -54,18 +54,18 @@ class _CreateGameState extends State<CreateGame> {
|
|||||||
),
|
),
|
||||||
// Spielmodus-Auswahl mit Chevron
|
// Spielmodus-Auswahl mit Chevron
|
||||||
Padding(
|
Padding(
|
||||||
padding: EdgeInsets.fromLTRB(10, 10, 10, 0),
|
padding: const EdgeInsets.fromLTRB(10, 10, 10, 0),
|
||||||
child: CupertinoTextField(
|
child: CupertinoTextField(
|
||||||
decoration: BoxDecoration(),
|
decoration: const BoxDecoration(),
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
prefix: Text('Modus'),
|
prefix: const Text('Modus'),
|
||||||
suffix: Row(
|
suffix: Row(
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
selectedMode ?? 'Wähle einen Modus',
|
selectedMode ?? 'Wähle einen Modus',
|
||||||
),
|
),
|
||||||
SizedBox(width: 3),
|
const SizedBox(width: 3),
|
||||||
CupertinoListTileChevron(),
|
const CupertinoListTileChevron(),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
@@ -73,7 +73,7 @@ class _CreateGameState extends State<CreateGame> {
|
|||||||
final selected = await Navigator.push(
|
final selected = await Navigator.push(
|
||||||
context,
|
context,
|
||||||
CupertinoPageRoute(
|
CupertinoPageRoute(
|
||||||
builder: (context) => ModeSelectionMenu(),
|
builder: (context) => const ModeSelectionMenu(),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -87,7 +87,7 @@ class _CreateGameState extends State<CreateGame> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
padding: EdgeInsets.fromLTRB(10, 10, 0, 0),
|
padding: const EdgeInsets.fromLTRB(10, 10, 0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'Spieler:innen',
|
'Spieler:innen',
|
||||||
style: Styles.createGameTitle,
|
style: Styles.createGameTitle,
|
||||||
@@ -104,9 +104,9 @@ class _CreateGameState extends State<CreateGame> {
|
|||||||
padding: const EdgeInsets.symmetric(vertical: 8.0),
|
padding: const EdgeInsets.symmetric(vertical: 8.0),
|
||||||
child: CupertinoButton(
|
child: CupertinoButton(
|
||||||
padding: EdgeInsets.zero,
|
padding: EdgeInsets.zero,
|
||||||
child: Row(
|
child: const Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: const [
|
children: [
|
||||||
Icon(
|
Icon(
|
||||||
CupertinoIcons.add_circled,
|
CupertinoIcons.add_circled,
|
||||||
color: CupertinoColors.activeGreen,
|
color: CupertinoColors.activeGreen,
|
||||||
@@ -131,13 +131,13 @@ class _CreateGameState extends State<CreateGame> {
|
|||||||
showCupertinoDialog(
|
showCupertinoDialog(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (context) => CupertinoAlertDialog(
|
builder: (context) => CupertinoAlertDialog(
|
||||||
title: Text('Maximale Spielerzahl erreicht'),
|
title: const Text('Maximale Spielerzahl erreicht'),
|
||||||
content: Text(
|
content: const Text(
|
||||||
'Es können maximal 5 Spieler hinzugefügt '
|
'Es können maximal 5 Spieler hinzugefügt '
|
||||||
'werden.'),
|
'werden.'),
|
||||||
actions: [
|
actions: [
|
||||||
CupertinoDialogAction(
|
CupertinoDialogAction(
|
||||||
child: Text('OK'),
|
child: const Text('OK'),
|
||||||
onPressed: () => Navigator.pop(context),
|
onPressed: () => Navigator.pop(context),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@@ -156,7 +156,7 @@ class _CreateGameState extends State<CreateGame> {
|
|||||||
children: [
|
children: [
|
||||||
CupertinoButton(
|
CupertinoButton(
|
||||||
padding: EdgeInsets.zero,
|
padding: EdgeInsets.zero,
|
||||||
child: Icon(
|
child: const Icon(
|
||||||
CupertinoIcons.minus_circle_fill,
|
CupertinoIcons.minus_circle_fill,
|
||||||
color: CupertinoColors.destructiveRed,
|
color: CupertinoColors.destructiveRed,
|
||||||
size: 25,
|
size: 25,
|
||||||
@@ -173,7 +173,7 @@ class _CreateGameState extends State<CreateGame> {
|
|||||||
controller: _playerNameTextControllers[index],
|
controller: _playerNameTextControllers[index],
|
||||||
placeholder: 'Spieler:in ${index + 1}',
|
placeholder: 'Spieler:in ${index + 1}',
|
||||||
padding: const EdgeInsets.all(12),
|
padding: const EdgeInsets.all(12),
|
||||||
decoration: BoxDecoration(),
|
decoration: const BoxDecoration(),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@@ -186,9 +186,9 @@ class _CreateGameState extends State<CreateGame> {
|
|||||||
Center(
|
Center(
|
||||||
child: CupertinoButton(
|
child: CupertinoButton(
|
||||||
padding: EdgeInsets.zero,
|
padding: EdgeInsets.zero,
|
||||||
child: Row(
|
child: const Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: const [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'Spiel erstellen ',
|
'Spiel erstellen ',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
@@ -202,13 +202,13 @@ class _CreateGameState extends State<CreateGame> {
|
|||||||
showCupertinoDialog(
|
showCupertinoDialog(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (context) => CupertinoAlertDialog(
|
builder: (context) => CupertinoAlertDialog(
|
||||||
title: Text('Fehler'),
|
title: const Text('Fehler'),
|
||||||
content:
|
content:
|
||||||
Text('Es muss ein Titel für das Spiel eingegeben '
|
const Text('Es muss ein Titel für das Spiel eingegeben '
|
||||||
'werden.'),
|
'werden.'),
|
||||||
actions: [
|
actions: [
|
||||||
CupertinoDialogAction(
|
CupertinoDialogAction(
|
||||||
child: Text('OK'),
|
child: const Text('OK'),
|
||||||
onPressed: () => Navigator.pop(context),
|
onPressed: () => Navigator.pop(context),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@@ -220,12 +220,12 @@ class _CreateGameState extends State<CreateGame> {
|
|||||||
showCupertinoDialog(
|
showCupertinoDialog(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (context) => CupertinoAlertDialog(
|
builder: (context) => CupertinoAlertDialog(
|
||||||
title: Text('Fehler'),
|
title: const Text('Fehler'),
|
||||||
content:
|
content:
|
||||||
Text('Es muss ein Spielmodus ausgewählt werden.'),
|
const Text('Es muss ein Spielmodus ausgewählt werden.'),
|
||||||
actions: [
|
actions: [
|
||||||
CupertinoDialogAction(
|
CupertinoDialogAction(
|
||||||
child: Text('OK'),
|
child: const Text('OK'),
|
||||||
onPressed: () => Navigator.pop(context),
|
onPressed: () => Navigator.pop(context),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@@ -237,13 +237,13 @@ class _CreateGameState extends State<CreateGame> {
|
|||||||
showCupertinoDialog(
|
showCupertinoDialog(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (context) => CupertinoAlertDialog(
|
builder: (context) => CupertinoAlertDialog(
|
||||||
title: Text('Fehler'),
|
title: const Text('Fehler'),
|
||||||
content:
|
content:
|
||||||
Text('Es müssen mindestens 2 Spieler hinzugefügt '
|
const Text('Es müssen mindestens 2 Spieler hinzugefügt '
|
||||||
'werden.'),
|
'werden.'),
|
||||||
actions: [
|
actions: [
|
||||||
CupertinoDialogAction(
|
CupertinoDialogAction(
|
||||||
child: Text('OK'),
|
child: const Text('OK'),
|
||||||
onPressed: () => Navigator.pop(context),
|
onPressed: () => Navigator.pop(context),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@@ -255,11 +255,11 @@ class _CreateGameState extends State<CreateGame> {
|
|||||||
showCupertinoDialog(
|
showCupertinoDialog(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (context) => CupertinoAlertDialog(
|
builder: (context) => CupertinoAlertDialog(
|
||||||
title: Text('Fehler'),
|
title: const Text('Fehler'),
|
||||||
content: Text('Jeder Spieler muss einen Namen haben.'),
|
content: const Text('Jeder Spieler muss einen Namen haben.'),
|
||||||
actions: [
|
actions: [
|
||||||
CupertinoDialogAction(
|
CupertinoDialogAction(
|
||||||
child: Text('OK'),
|
child: const Text('OK'),
|
||||||
onPressed: () => Navigator.pop(context),
|
onPressed: () => Navigator.pop(context),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ class InformationView extends StatelessWidget {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return CupertinoPageScaffold(
|
return CupertinoPageScaffold(
|
||||||
navigationBar: CupertinoNavigationBar(
|
navigationBar: const CupertinoNavigationBar(
|
||||||
middle: Text('Über'),
|
middle: Text('Über'),
|
||||||
),
|
),
|
||||||
child: SafeArea(
|
child: SafeArea(
|
||||||
@@ -23,7 +23,7 @@ class InformationView extends StatelessWidget {
|
|||||||
Column(
|
Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
Padding(
|
const Padding(
|
||||||
padding: EdgeInsets.fromLTRB(0, 10, 0, 0),
|
padding: EdgeInsets.fromLTRB(0, 10, 0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'Cabo Counter',
|
'Cabo Counter',
|
||||||
@@ -34,13 +34,13 @@ class InformationView extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
padding: EdgeInsets.symmetric(horizontal: 20, vertical: 10),
|
padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 10),
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
height: 200,
|
height: 200,
|
||||||
child:
|
child:
|
||||||
Image.asset('assets/cabo-counter-logo_rounded.png'),
|
Image.asset('assets/cabo-counter-logo_rounded.png'),
|
||||||
)),
|
)),
|
||||||
Padding(
|
const Padding(
|
||||||
padding: EdgeInsets.symmetric(horizontal: 30),
|
padding: EdgeInsets.symmetric(horizontal: 30),
|
||||||
child: Text(
|
child: Text(
|
||||||
'Hey :) Danke, dass du als eine:r der ersten User '
|
'Hey :) Danke, dass du als eine:r der ersten User '
|
||||||
@@ -55,10 +55,10 @@ class InformationView extends StatelessWidget {
|
|||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
softWrap: true,
|
softWrap: true,
|
||||||
)),
|
)),
|
||||||
SizedBox(
|
const SizedBox(
|
||||||
height: 30,
|
height: 30,
|
||||||
),
|
),
|
||||||
Text(
|
const Text(
|
||||||
'\u00A9 Felix Kirchner',
|
'\u00A9 Felix Kirchner',
|
||||||
style: TextStyle(fontSize: 16),
|
style: TextStyle(fontSize: 16),
|
||||||
),
|
),
|
||||||
@@ -68,15 +68,15 @@ class InformationView extends StatelessWidget {
|
|||||||
IconButton(
|
IconButton(
|
||||||
onPressed: () => launchUrl(
|
onPressed: () => launchUrl(
|
||||||
Uri.parse('https://www.instagram.com/fx.kr')),
|
Uri.parse('https://www.instagram.com/fx.kr')),
|
||||||
icon: Icon(FontAwesomeIcons.instagram)),
|
icon: const Icon(FontAwesomeIcons.instagram)),
|
||||||
IconButton(
|
IconButton(
|
||||||
onPressed: () => launchUrl(
|
onPressed: () => launchUrl(
|
||||||
Uri.parse('mailto:felix.kirchner.fk@gmail.com')),
|
Uri.parse('mailto:felix.kirchner.fk@gmail.com')),
|
||||||
icon: Icon(CupertinoIcons.envelope)),
|
icon: const Icon(CupertinoIcons.envelope)),
|
||||||
IconButton(
|
IconButton(
|
||||||
onPressed: () => launchUrl(
|
onPressed: () => launchUrl(
|
||||||
Uri.parse('https://www.github.com/flixcoo')),
|
Uri.parse('https://www.github.com/flixcoo')),
|
||||||
icon: Icon(FontAwesomeIcons.github)),
|
icon: const Icon(FontAwesomeIcons.github)),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
@@ -95,12 +95,12 @@ class InformationView extends StatelessWidget {
|
|||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
);
|
);
|
||||||
} else if (snapshot.hasError) {
|
} else if (snapshot.hasError) {
|
||||||
return Text(
|
return const Text(
|
||||||
'App-Version -.-.- (Build -)',
|
'App-Version -.-.- (Build -)',
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return Text(
|
return const Text(
|
||||||
'Lade Version...',
|
'Lade Version...',
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ class _MainMenuViewState extends State<MainMenuView> {
|
|||||||
Navigator.push(
|
Navigator.push(
|
||||||
context,
|
context,
|
||||||
CupertinoPageRoute(
|
CupertinoPageRoute(
|
||||||
builder: (context) => InformationView(),
|
builder: (context) => const InformationView(),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
@@ -88,27 +88,27 @@ class _MainMenuViewState extends State<MainMenuView> {
|
|||||||
itemBuilder: (context, index) {
|
itemBuilder: (context, index) {
|
||||||
final session = gameSessionArray[index];
|
final session = gameSessionArray[index];
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: EdgeInsets.symmetric(vertical: 10.0),
|
padding: const EdgeInsets.symmetric(vertical: 10.0),
|
||||||
child: CupertinoListTile(
|
child: CupertinoListTile(
|
||||||
title: Text(session.gameTitle),
|
title: Text(session.gameTitle),
|
||||||
subtitle: session.finished == true
|
subtitle: session.finished == true
|
||||||
? Text(
|
? Text(
|
||||||
'\u{1F947} ${session.winner}',
|
'\u{1F947} ${session.winner}',
|
||||||
style: TextStyle(fontSize: 14),
|
style: const TextStyle(fontSize: 14),
|
||||||
)
|
)
|
||||||
: Text(
|
: Text(
|
||||||
'Modus: ${_translateGameMode(session.pointLimit)}',
|
'Modus: ${_translateGameMode(session.pointLimit)}',
|
||||||
style: TextStyle(fontSize: 14),
|
style: const TextStyle(fontSize: 14),
|
||||||
),
|
),
|
||||||
trailing: Row(
|
trailing: Row(
|
||||||
children: [
|
children: [
|
||||||
Text('${session.round}'),
|
Text('${session.round}'),
|
||||||
SizedBox(width: 3),
|
const SizedBox(width: 3),
|
||||||
Icon(CupertinoIcons.arrow_2_circlepath_circle_fill),
|
const Icon(CupertinoIcons.arrow_2_circlepath_circle_fill),
|
||||||
SizedBox(width: 15),
|
const SizedBox(width: 15),
|
||||||
Text('${session.players.length}'),
|
Text('${session.players.length}'),
|
||||||
SizedBox(width: 3),
|
const SizedBox(width: 3),
|
||||||
Icon(CupertinoIcons.person_2_fill),
|
const Icon(CupertinoIcons.person_2_fill),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
|
|||||||
@@ -147,12 +147,12 @@ class _RoundViewState extends State<RoundView> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Padding(
|
const Padding(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 20.0),
|
padding: EdgeInsets.symmetric(horizontal: 20.0),
|
||||||
child: CupertinoListTile(
|
child: CupertinoListTile(
|
||||||
title: const Text('Spieler:in'),
|
title: Text('Spieler:in'),
|
||||||
trailing: Row(
|
trailing: Row(
|
||||||
children: const [
|
children: [
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 100,
|
width: 100,
|
||||||
child: Center(child: Text('Punkte'))),
|
child: Center(child: Text('Punkte'))),
|
||||||
|
|||||||
Reference in New Issue
Block a user