Skip to content

Commit 0dee6f2

Browse files
authored
Merge pull request #193 from bobab12/fixes-issue-192
Fixes last page detection (fixes #192).
2 parents 30ed5f7 + bc9bff2 commit 0dee6f2

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)