Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/src/view/board_editor/board_editor_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ class _BottomBar extends ConsumerWidget {
@override
Widget build(BuildContext context, WidgetRef ref) {
final editorState = ref.watch(boardEditorControllerProvider(initialFen));
final pieceCount = editorState.pieces.length;

return BottomBar(
children: [
Expand All @@ -324,7 +325,10 @@ class _BottomBar extends ConsumerWidget {
BottomBarButton(
label: context.l10n.analysis,
key: const Key('analysis-board-button'),
onTap: editorState.pgn != null
onTap: editorState.pgn != null &&
// 1 condition (of many) where stockfish segfaults
pieceCount > 0 &&
pieceCount <= 32
? () {
pushPlatformRoute(
context,
Expand Down