Skip to content

Commit

Permalink
Fix openings link from themes
Browse files Browse the repository at this point in the history
  • Loading branch information
veloce committed Nov 9, 2023
1 parent 87a4376 commit e6eb8d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions lib/src/view/puzzle/puzzle_themes_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -94,19 +94,21 @@ class _Body extends ConsumerWidget {
data: (data) {
final (hasConnectivity, savedThemes, onlineThemes, hasSavedOpenings) =
data;

final openingsAvailable = hasConnectivity || hasSavedOpenings;
return ListView(
children: [
Theme(
data: Theme.of(context)
.copyWith(dividerColor: Colors.transparent),
child: Opacity(
opacity: hasSavedOpenings ? 1 : 0.5,
opacity: openingsAvailable ? 1 : 0.5,
child: ExpansionTile(
iconColor: expansionTileColor,
collapsedIconColor: expansionTileColor,
title: Text(context.l10n.puzzleByOpenings),
trailing: const Icon(Icons.keyboard_arrow_right),
onExpansionChanged: hasSavedOpenings
onExpansionChanged: openingsAvailable
? (expanded) {
pushPlatformRoute(
context,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Lichess mobile app V2

publish_to: "none" # Remove this line if you wish to publish to pub.dev

version: 0.5.8+000508 # see README.md for details about versioning
version: 0.5.9+000509 # see README.md for details about versioning

environment:
sdk: ">=3.0.0 <4.0.0"
Expand Down

0 comments on commit e6eb8d2

Please sign in to comment.