From 2a38462c57e518998a7cdf6b18806c5405f1b96d Mon Sep 17 00:00:00 2001 From: Mathis Kirchner Date: Thu, 21 May 2026 10:34:01 +0200 Subject: [PATCH] fix linter issues --- lib/presentation/views/main_menu/player_detail_view.dart | 6 +++--- .../widgets/buttons/animated_dialog_button.dart | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/presentation/views/main_menu/player_detail_view.dart b/lib/presentation/views/main_menu/player_detail_view.dart index 187751d..d314a97 100644 --- a/lib/presentation/views/main_menu/player_detail_view.dart +++ b/lib/presentation/views/main_menu/player_detail_view.dart @@ -54,7 +54,7 @@ class _PlayerDetailViewState extends State { /// Full list of groups this player belongs to List playerGroups = List.filled( 4, - Group(name: "Skeleton group", members: []), + Group(name: 'Skeleton group', members: []), ); /// Full list of matches this player played in @@ -178,7 +178,7 @@ class _PlayerDetailViewState extends State { ), const SizedBox(height: 20), InfoTile( - title: "${loc.matches_part_of} (${totalMatches})", + title: '${loc.matches_part_of} ($totalMatches)', icon: Icons.sports_esports, horizontalAlignment: CrossAxisAlignment.start, content: AppSkeleton( @@ -201,7 +201,7 @@ class _PlayerDetailViewState extends State { ), const SizedBox(height: 15), InfoTile( - title: "${loc.groups_part_of} (${totalGroups})", + title: '${loc.groups_part_of} ($totalGroups)', icon: Icons.people, horizontalAlignment: CrossAxisAlignment.start, content: AppSkeleton( diff --git a/lib/presentation/widgets/buttons/animated_dialog_button.dart b/lib/presentation/widgets/buttons/animated_dialog_button.dart index 62960ff..5062b23 100644 --- a/lib/presentation/widgets/buttons/animated_dialog_button.dart +++ b/lib/presentation/widgets/buttons/animated_dialog_button.dart @@ -38,12 +38,12 @@ class _AnimatedDialogButtonState extends State { Widget build(BuildContext context) { final textStyling = _getTextStyling(); final buttonDecoration = _getButtonDecoration(); - bool _isDisabled = widget.onPressed == null; + bool isDisabled = widget.onPressed == null; return IgnorePointer( - ignoring: _isDisabled, + ignoring: isDisabled, child: Opacity( - opacity: _isDisabled ? 0.5 : 1.0, + opacity: isDisabled ? 0.5 : 1.0, child: GestureDetector( onTapDown: (_) => setState(() => _isPressed = true), onTapUp: (_) => setState(() => _isPressed = false),