Skip to content

Commit a3fce24

Browse files
Jshewmakerclaude
andcommitted
fix: remove eager pinController dispose that races with BlocBuilder
The .then() callback disposed the controller before the dialog's BlocBuilder finished tearing down, causing a use-after-dispose crash. The controller is lightweight and will be GC'd with the dialog. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 656a274 commit a3fce24

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/player/view/customize_player_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ class _FriendSection extends StatelessWidget {
436436
),
437437
);
438438
},
439-
).then((_) => pinController.dispose()),
439+
),
440440
);
441441
}
442442
}

0 commit comments

Comments
 (0)