Skip to content

Commit

Permalink
Tweak cupertino players tab color
Browse files Browse the repository at this point in the history
  • Loading branch information
veloce committed Dec 12, 2024
1 parent ea4289a commit 342d0b5
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions lib/src/view/broadcast/broadcast_players_tab.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'dart:math';

import 'package:fast_immutable_collections/fast_immutable_collections.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:lichess_mobile/src/model/broadcast/broadcast.dart';
Expand Down Expand Up @@ -179,9 +180,15 @@ class _PlayersListState extends ConsumerState<PlayersList> {
final player = players[index - 1];
return Container(
decoration: BoxDecoration(
color: index.isEven
? Theme.of(context).colorScheme.surfaceContainerLow
: Theme.of(context).colorScheme.surfaceContainerHigh,
color: Theme.of(context).platform == TargetPlatform.iOS
? index.isEven
? CupertinoColors.secondarySystemBackground
.resolveFrom(context)
: CupertinoColors.tertiarySystemBackground
.resolveFrom(context)
: index.isEven
? Theme.of(context).colorScheme.surfaceContainerLow
: Theme.of(context).colorScheme.surfaceContainerHigh,
),
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
Expand Down

0 comments on commit 342d0b5

Please sign in to comment.