Skip to content

Commit

Permalink
1836: use callback of onReady function
Browse files Browse the repository at this point in the history
  • Loading branch information
f1sh1918 committed Dec 11, 2024
1 parent 8d496ac commit ecd5ebe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/lib/identification/identification_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class IdentificationPageState extends State<IdentificationPage> {
super.initState();
cardIndex = widget.initialCardIndex ?? 0;
WidgetsBinding.instance.addPostFrameCallback((_) {
carouselController.jumpToPage(cardIndex);
carouselController.onReady.then((_) => carouselController.jumpToPage(cardIndex));
});
}

Expand Down

0 comments on commit ecd5ebe

Please sign in to comment.