Refactoring
This commit is contained in:
@@ -16,7 +16,7 @@ class CustomTheme {
|
|||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
);
|
);
|
||||||
|
|
||||||
static TextStyle createGameTitle = TextStyle(
|
static TextStyle rowTitle = TextStyle(
|
||||||
fontSize: 20,
|
fontSize: 20,
|
||||||
color: primaryColor,
|
color: primaryColor,
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
@@ -27,10 +27,4 @@ class CustomTheme {
|
|||||||
color: white,
|
color: white,
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
);
|
);
|
||||||
|
|
||||||
static TextStyle roundPlayers = TextStyle(
|
|
||||||
fontSize: 20,
|
|
||||||
color: white,
|
|
||||||
fontWeight: FontWeight.bold,
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,5 +10,8 @@ class Globals {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int pointLimit = 100;
|
static int pointLimit = 100;
|
||||||
|
|
||||||
static int caboPenalty = 5;
|
static int caboPenalty = 5;
|
||||||
|
|
||||||
|
static String appDevPhase = 'Alpha';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ class _ActiveGameViewState extends State<ActiveGameView> {
|
|||||||
padding: const EdgeInsets.fromLTRB(10, 10, 0, 0),
|
padding: const EdgeInsets.fromLTRB(10, 10, 0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'Spieler:innen',
|
'Spieler:innen',
|
||||||
style: CustomTheme.createGameTitle,
|
style: CustomTheme.rowTitle,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
ListView.builder(
|
ListView.builder(
|
||||||
@@ -61,7 +61,7 @@ class _ActiveGameViewState extends State<ActiveGameView> {
|
|||||||
padding: const EdgeInsets.fromLTRB(10, 10, 0, 0),
|
padding: const EdgeInsets.fromLTRB(10, 10, 0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'Runden',
|
'Runden',
|
||||||
style: CustomTheme.createGameTitle,
|
style: CustomTheme.rowTitle,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
ListView.builder(
|
ListView.builder(
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ class _CreateGameState extends State<CreateGame> {
|
|||||||
padding: const EdgeInsets.fromLTRB(10, 10, 0, 0),
|
padding: const EdgeInsets.fromLTRB(10, 10, 0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'Spiel',
|
'Spiel',
|
||||||
style: CustomTheme.createGameTitle,
|
style: CustomTheme.rowTitle,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
@@ -98,7 +98,7 @@ class _CreateGameState extends State<CreateGame> {
|
|||||||
padding: const EdgeInsets.fromLTRB(10, 10, 0, 0),
|
padding: const EdgeInsets.fromLTRB(10, 10, 0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'Spieler:innen',
|
'Spieler:innen',
|
||||||
style: CustomTheme.createGameTitle,
|
style: CustomTheme.rowTitle,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ class InformationView extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
padding:
|
padding:
|
||||||
const EdgeInsets.symmetric(horizontal: 20, vertical: 10),
|
const EdgeInsets.symmetric(horizontal: 20, vertical: 30),
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
height: 200,
|
height: 200,
|
||||||
child: Image.asset('assets/cabo-counter-logo_rounded.png'),
|
child: Image.asset('assets/cabo-counter-logo_rounded.png'),
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ class _SettingsViewState extends State<SettingsView> {
|
|||||||
padding: const EdgeInsets.fromLTRB(10, 10, 0, 0),
|
padding: const EdgeInsets.fromLTRB(10, 10, 0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'Punkte',
|
'Punkte',
|
||||||
style: CustomTheme.createGameTitle,
|
style: CustomTheme.rowTitle,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
@@ -100,7 +100,7 @@ class _SettingsViewState extends State<SettingsView> {
|
|||||||
padding: const EdgeInsets.fromLTRB(10, 10, 0, 0),
|
padding: const EdgeInsets.fromLTRB(10, 10, 0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'Spieldaten',
|
'Spieldaten',
|
||||||
style: CustomTheme.createGameTitle,
|
style: CustomTheme.rowTitle,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
@@ -201,7 +201,7 @@ class _SettingsViewState extends State<SettingsView> {
|
|||||||
builder: (context, snapshot) {
|
builder: (context, snapshot) {
|
||||||
if (snapshot.hasData) {
|
if (snapshot.hasData) {
|
||||||
return Text(
|
return Text(
|
||||||
'Alpha ${snapshot.data!.version} '
|
'${Globals.appDevPhase} ${snapshot.data!.version} '
|
||||||
'(Build ${snapshot.data!.buildNumber})',
|
'(Build ${snapshot.data!.buildNumber})',
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ name: cabo_counter
|
|||||||
description: "Mobile app for the card game Cabo"
|
description: "Mobile app for the card game Cabo"
|
||||||
publish_to: 'none'
|
publish_to: 'none'
|
||||||
|
|
||||||
version: 0.1.6+128
|
version: 0.1.6-alpha+135
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ^3.5.4
|
sdk: ^3.5.4
|
||||||
|
|||||||
Reference in New Issue
Block a user