Updated colors & class name
This commit is contained in:
@@ -13,6 +13,10 @@ class CustomTheme {
|
|||||||
static const Color graphColor4 = Color(0xFF9C27B0);
|
static const Color graphColor4 = Color(0xFF9C27B0);
|
||||||
static final Color graphColor5 = primaryColor;
|
static final Color graphColor5 = primaryColor;
|
||||||
|
|
||||||
|
// Colors for PointsView
|
||||||
|
static Color pointLossColor = primaryColor;
|
||||||
|
static const Color pointGainColor = Color(0xFFF44336);
|
||||||
|
|
||||||
static TextStyle modeTitle = TextStyle(
|
static TextStyle modeTitle = TextStyle(
|
||||||
color: primaryColor,
|
color: primaryColor,
|
||||||
fontSize: 20,
|
fontSize: 20,
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import 'package:cabo_counter/data/game_session.dart';
|
|||||||
import 'package:cabo_counter/l10n/generated/app_localizations.dart';
|
import 'package:cabo_counter/l10n/generated/app_localizations.dart';
|
||||||
import 'package:cabo_counter/presentation/views/create_game_view.dart';
|
import 'package:cabo_counter/presentation/views/create_game_view.dart';
|
||||||
import 'package:cabo_counter/presentation/views/graph_view.dart';
|
import 'package:cabo_counter/presentation/views/graph_view.dart';
|
||||||
import 'package:cabo_counter/presentation/views/point_overview_view.dart';
|
import 'package:cabo_counter/presentation/views/points_view.dart';
|
||||||
import 'package:cabo_counter/presentation/views/round_view.dart';
|
import 'package:cabo_counter/presentation/views/round_view.dart';
|
||||||
import 'package:cabo_counter/services/local_storage_service.dart';
|
import 'package:cabo_counter/services/local_storage_service.dart';
|
||||||
import 'package:flutter/cupertino.dart';
|
import 'package:flutter/cupertino.dart';
|
||||||
@@ -145,7 +145,7 @@ class _ActiveGameViewState extends State<ActiveGameView> {
|
|||||||
onTap: () => Navigator.push(
|
onTap: () => Navigator.push(
|
||||||
context,
|
context,
|
||||||
CupertinoPageRoute(
|
CupertinoPageRoute(
|
||||||
builder: (_) => PointOverviewView(
|
builder: (_) => PointsView(
|
||||||
gameSession: gameSession,
|
gameSession: gameSession,
|
||||||
)))),
|
)))),
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -4,16 +4,16 @@ import 'package:cabo_counter/l10n/generated/app_localizations.dart';
|
|||||||
import 'package:flutter/cupertino.dart';
|
import 'package:flutter/cupertino.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class PointOverviewView extends StatefulWidget {
|
class PointsView extends StatefulWidget {
|
||||||
final GameSession gameSession;
|
final GameSession gameSession;
|
||||||
|
|
||||||
const PointOverviewView({super.key, required this.gameSession});
|
const PointsView({super.key, required this.gameSession});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
State<PointOverviewView> createState() => _PointOverviewViewState();
|
State<PointsView> createState() => _PointsViewState();
|
||||||
}
|
}
|
||||||
|
|
||||||
class _PointOverviewViewState extends State<PointOverviewView> {
|
class _PointsViewState extends State<PointsView> {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return CupertinoPageScaffold(
|
return CupertinoPageScaffold(
|
||||||
@@ -81,8 +81,8 @@ class _PointOverviewViewState extends State<PointOverviewView> {
|
|||||||
horizontal: 6, vertical: 2),
|
horizontal: 6, vertical: 2),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: update <= 0
|
color: update <= 0
|
||||||
? CustomTheme.primaryColor
|
? CustomTheme.pointLossColor
|
||||||
: CupertinoColors.destructiveRed,
|
: CustomTheme.pointGainColor,
|
||||||
borderRadius: BorderRadius.circular(8),
|
borderRadius: BorderRadius.circular(8),
|
||||||
),
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
@@ -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.4.8+523
|
version: 0.4.8+525
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ^3.5.4
|
sdk: ^3.5.4
|
||||||
|
|||||||
Reference in New Issue
Block a user