Refactoring

This commit is contained in:
Felix Kirchner
2025-05-03 16:09:04 +02:00
parent 9e44138851
commit ca19067152
7 changed files with 13 additions and 16 deletions

View File

@@ -16,7 +16,7 @@ class CustomTheme {
fontSize: 16,
);
static TextStyle createGameTitle = TextStyle(
static TextStyle rowTitle = TextStyle(
fontSize: 20,
color: primaryColor,
fontWeight: FontWeight.bold,
@@ -27,10 +27,4 @@ class CustomTheme {
color: white,
fontWeight: FontWeight.bold,
);
static TextStyle roundPlayers = TextStyle(
fontSize: 20,
color: white,
fontWeight: FontWeight.bold,
);
}

View File

@@ -10,5 +10,8 @@ class Globals {
}
static int pointLimit = 100;
static int caboPenalty = 5;
static String appDevPhase = 'Alpha';
}

View File

@@ -28,7 +28,7 @@ class _ActiveGameViewState extends State<ActiveGameView> {
padding: const EdgeInsets.fromLTRB(10, 10, 0, 0),
child: Text(
'Spieler:innen',
style: CustomTheme.createGameTitle,
style: CustomTheme.rowTitle,
),
),
ListView.builder(
@@ -61,7 +61,7 @@ class _ActiveGameViewState extends State<ActiveGameView> {
padding: const EdgeInsets.fromLTRB(10, 10, 0, 0),
child: Text(
'Runden',
style: CustomTheme.createGameTitle,
style: CustomTheme.rowTitle,
),
),
ListView.builder(

View File

@@ -44,7 +44,7 @@ class _CreateGameState extends State<CreateGame> {
padding: const EdgeInsets.fromLTRB(10, 10, 0, 0),
child: Text(
'Spiel',
style: CustomTheme.createGameTitle,
style: CustomTheme.rowTitle,
),
),
Padding(
@@ -98,7 +98,7 @@ class _CreateGameState extends State<CreateGame> {
padding: const EdgeInsets.fromLTRB(10, 10, 0, 0),
child: Text(
'Spieler:innen',
style: CustomTheme.createGameTitle,
style: CustomTheme.rowTitle,
),
),
Expanded(

View File

@@ -29,7 +29,7 @@ class InformationView extends StatelessWidget {
),
Padding(
padding:
const EdgeInsets.symmetric(horizontal: 20, vertical: 10),
const EdgeInsets.symmetric(horizontal: 20, vertical: 30),
child: SizedBox(
height: 200,
child: Image.asset('assets/cabo-counter-logo_rounded.png'),

View File

@@ -39,7 +39,7 @@ class _SettingsViewState extends State<SettingsView> {
padding: const EdgeInsets.fromLTRB(10, 10, 0, 0),
child: Text(
'Punkte',
style: CustomTheme.createGameTitle,
style: CustomTheme.rowTitle,
),
),
Padding(
@@ -100,7 +100,7 @@ class _SettingsViewState extends State<SettingsView> {
padding: const EdgeInsets.fromLTRB(10, 10, 0, 0),
child: Text(
'Spieldaten',
style: CustomTheme.createGameTitle,
style: CustomTheme.rowTitle,
),
),
Padding(
@@ -201,7 +201,7 @@ class _SettingsViewState extends State<SettingsView> {
builder: (context, snapshot) {
if (snapshot.hasData) {
return Text(
'Alpha ${snapshot.data!.version} '
'${Globals.appDevPhase} ${snapshot.data!.version} '
'(Build ${snapshot.data!.buildNumber})',
textAlign: TextAlign.center,
);

View File

@@ -2,7 +2,7 @@ name: cabo_counter
description: "Mobile app for the card game Cabo"
publish_to: 'none'
version: 0.1.6+128
version: 0.1.6-alpha+135
environment:
sdk: ^3.5.4