Konstanten für Länge von Namen #170

Merged
sneeex merged 7 commits from enhancement/158-konstanten-für-länge-von-namen into development 2026-01-17 13:42:50 +00:00
2 changed files with 18 additions and 2 deletions
Showing only changes of commit 1b709707b5 - Show all commits

View File

@@ -10,4 +10,5 @@ linter:
prefer_const_declarations: true
prefer_const_literals_to_create_immutables: true
unnecessary_const: true
lines_longer_than_80_chars: false
lines_longer_than_80_chars: false
constant_identifier_names: false
sneeex marked this conversation as resolved
Review

was ist constant identifier names?

was ist constant identifier names?
Review

Das deaktiviert, dass es eine Linter-Warnung gibt, wenn ich konstanten in SCREAMING_CAMEL_CASE schreibe, weil Flutter die normalerweise in lowerCamelCase will

Das deaktiviert, dass es eine Linter-Warnung gibt, wenn ich konstanten in `SCREAMING_CAMEL_CASE` schreibe, weil Flutter die normalerweise in `lowerCamelCase` will

View File

@@ -3,5 +3,20 @@ class Constants {
Constants._(); // Private constructor to prevent instantiation
/// Minimum duration of all app skeletons
static Duration minimumSkeletonDuration = const Duration(milliseconds: 250);
static const Duration minimumSkeletonDuration = Duration(milliseconds: 250);
/// Maximum length for player names
static const int MAX_PLAYER_NAME_LENGTH = 32;
/// Maximum length for group names
static const int MAX_GROUP_NAME_LENGTH = 32;
/// Maximum length for match names
static const int MAX_MATCH_NAME_LENGTH = 256;
/// Maximum length for game names
static const int MAX_GAME_NAME_LENGTH = 256;
/// Maximum length for team names
static const int MAX_TEAM_NAME_LENGTH = 256;
sneeex marked this conversation as resolved Outdated

warum Match, Game, Team so lang?

warum Match, Game, Team so lang?

ups, das war wohl copilto auto complete

ups, das war wohl copilto auto complete

ups, das war wohl copilto auto complete

bro hat wieder kein finger gekrümmt

> ups, das war wohl copilto auto complete bro hat wieder kein finger gekrümmt

und kontrollierts nicht mal

und kontrollierts nicht mal
}