fix linter issues
Some checks failed
Pull Request Pipeline / test (pull_request) Failing after 44s
Pull Request Pipeline / lint (pull_request) Successful in 56s

This commit is contained in:
2026-05-21 10:34:01 +02:00
parent 9909d959b0
commit 2a38462c57
2 changed files with 6 additions and 6 deletions

View File

@@ -54,7 +54,7 @@ class _PlayerDetailViewState extends State<PlayerDetailView> {
/// Full list of groups this player belongs to /// Full list of groups this player belongs to
List<Group> playerGroups = List.filled( List<Group> playerGroups = List.filled(
4, 4,
Group(name: "Skeleton group", members: []), Group(name: 'Skeleton group', members: []),
); );
/// Full list of matches this player played in /// Full list of matches this player played in
@@ -178,7 +178,7 @@ class _PlayerDetailViewState extends State<PlayerDetailView> {
), ),
const SizedBox(height: 20), const SizedBox(height: 20),
InfoTile( InfoTile(
title: "${loc.matches_part_of} (${totalMatches})", title: '${loc.matches_part_of} ($totalMatches)',
icon: Icons.sports_esports, icon: Icons.sports_esports,
horizontalAlignment: CrossAxisAlignment.start, horizontalAlignment: CrossAxisAlignment.start,
content: AppSkeleton( content: AppSkeleton(
@@ -201,7 +201,7 @@ class _PlayerDetailViewState extends State<PlayerDetailView> {
), ),
const SizedBox(height: 15), const SizedBox(height: 15),
InfoTile( InfoTile(
title: "${loc.groups_part_of} (${totalGroups})", title: '${loc.groups_part_of} ($totalGroups)',
icon: Icons.people, icon: Icons.people,
horizontalAlignment: CrossAxisAlignment.start, horizontalAlignment: CrossAxisAlignment.start,
content: AppSkeleton( content: AppSkeleton(

View File

@@ -38,12 +38,12 @@ class _AnimatedDialogButtonState extends State<AnimatedDialogButton> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
final textStyling = _getTextStyling(); final textStyling = _getTextStyling();
final buttonDecoration = _getButtonDecoration(); final buttonDecoration = _getButtonDecoration();
bool _isDisabled = widget.onPressed == null; bool isDisabled = widget.onPressed == null;
return IgnorePointer( return IgnorePointer(
ignoring: _isDisabled, ignoring: isDisabled,
child: Opacity( child: Opacity(
opacity: _isDisabled ? 0.5 : 1.0, opacity: isDisabled ? 0.5 : 1.0,
child: GestureDetector( child: GestureDetector(
onTapDown: (_) => setState(() => _isPressed = true), onTapDown: (_) => setState(() => _isPressed = true),
onTapUp: (_) => setState(() => _isPressed = false), onTapUp: (_) => setState(() => _isPressed = false),