Skip to content

Commit bc9bff2

Browse files
committed
Fixes last page detection (fixes #192).
1 parent 30ed5f7 commit bc9bff2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/introduction_screen.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ class IntroductionScreenState extends State<IntroductionScreen> {
548548

549549
@override
550550
Widget build(BuildContext context) {
551-
final isLastPage = (_currentPage == getPagesLength() - 1);
551+
final isLastPage = (_currentPage.round() == getPagesLength() - 1);
552552

553553
Widget? leftBtn;
554554
if (widget.showSkipButton) {

0 commit comments

Comments
 (0)