fix linter issues
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
@@ -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),
|
||||||
|
|||||||
Reference in New Issue
Block a user