Added comments
This commit is contained in:
@@ -1,19 +1,41 @@
|
||||
import 'package:rate_my_app/rate_my_app.dart';
|
||||
|
||||
/// A utility class that holds constant values and configuration settings
|
||||
/// used throughout the application, such as external links, email addresses,
|
||||
/// and timing parameters for UI elements.
|
||||
///
|
||||
/// This class also provides an instance of [RateMyApp] for managing
|
||||
/// in-app rating prompts.
|
||||
class Constants {
|
||||
/// Indicates the current development phase of the app
|
||||
static const String appDevPhase = 'Beta';
|
||||
|
||||
/// Links to various social media profiles and resources related to the app.
|
||||
/// URL to my Instagram profile
|
||||
static const String kInstagramLink = 'https://instagram.felixkirchner.de';
|
||||
|
||||
/// URL to my GitHub profile
|
||||
static const String kGithubLink = 'https://github.felixkirchner.de';
|
||||
|
||||
/// URL to the GitHub issues page for reporting bugs or requesting features.
|
||||
static const String kGithubIssuesLink =
|
||||
'https://cabo-counter-issues.felixkirchner.de';
|
||||
|
||||
/// URL to the GitHub wiki for additional documentation and guides.
|
||||
static const String kGithubWikiLink =
|
||||
'https://cabo-counter-wiki.felixkirchner.de';
|
||||
|
||||
/// Official email address for user inquiries and support.
|
||||
static const String kEmail = 'cabocounter@felixkirchner.de';
|
||||
|
||||
/// URL to the app's privacy policy page.
|
||||
static const String kPrivacyPolicyLink =
|
||||
'https://cabo-counter-datenschutz.felixkirchner.de';
|
||||
static const String kImprintLink = 'https://impressum.felixkirchner.de';
|
||||
|
||||
/// URL to the app's imprint page, containing legal information.
|
||||
static const String kLegalLink = 'https://impressum.felixkirchner.de';
|
||||
|
||||
/// Instance of [RateMyApp] configured to prompt users for app store ratings.
|
||||
static RateMyApp rateMyApp = RateMyApp(
|
||||
appStoreIdentifier: '6747105718',
|
||||
minDays: 15,
|
||||
|
||||
@@ -1,13 +1,29 @@
|
||||
import 'package:flutter/cupertino.dart';
|
||||
|
||||
class CustomTheme {
|
||||
/// Main Theme of the App
|
||||
/// Primary white color mainly used for text
|
||||
static Color white = CupertinoColors.white;
|
||||
|
||||
/// Red color, typically used for destructive actions or error states
|
||||
static Color red = CupertinoColors.destructiveRed;
|
||||
|
||||
/// Primary color of the app, used for buttons, highlights, and interactive elements
|
||||
static Color primaryColor = CupertinoColors.systemGreen;
|
||||
|
||||
/// Background color for the main app scaffold and views
|
||||
static Color backgroundColor = const Color(0xFF101010);
|
||||
|
||||
/// Background color for main UI elements like cards or containers.
|
||||
static Color mainElementBackgroundColor = CupertinoColors.darkBackgroundGray;
|
||||
|
||||
/// Background color for player tiles in lists.
|
||||
static Color playerTileColor = CupertinoColors.secondaryLabel;
|
||||
|
||||
/// Background color for buttons and interactive controls.
|
||||
static Color buttonBackgroundColor = const Color(0xFF202020);
|
||||
|
||||
/// Color used to highlight the kamikaze button and players
|
||||
static Color kamikazeColor = CupertinoColors.systemYellow;
|
||||
|
||||
// Line Colors for GraphView
|
||||
@@ -18,25 +34,33 @@ class CustomTheme {
|
||||
static final Color graphColor5 = primaryColor;
|
||||
|
||||
// Colors for PointsView
|
||||
/// Color used to indicate a loss of points in the UI.
|
||||
static Color pointLossColor = primaryColor;
|
||||
|
||||
/// Color used to indicate a gain of points in the UI.
|
||||
static const Color pointGainColor = Color(0xFFF44336);
|
||||
|
||||
// Text Styles
|
||||
/// Text style for mode titles, typically used in headers or section titles.
|
||||
static TextStyle modeTitle = TextStyle(
|
||||
color: primaryColor,
|
||||
fontSize: 20,
|
||||
fontWeight: FontWeight.bold,
|
||||
);
|
||||
|
||||
/// Default text style for mode descriptions.
|
||||
static const TextStyle modeDescription = TextStyle(
|
||||
fontSize: 16,
|
||||
);
|
||||
|
||||
/// Text style for titles of sections of [CupertinoListTile].
|
||||
static TextStyle rowTitle = TextStyle(
|
||||
fontSize: 20,
|
||||
color: primaryColor,
|
||||
fontWeight: FontWeight.bold,
|
||||
);
|
||||
|
||||
/// Text style for round titles, used for prominent display of the round title
|
||||
static TextStyle roundTitle = TextStyle(
|
||||
fontSize: 60,
|
||||
color: white,
|
||||
|
||||
Reference in New Issue
Block a user