From 4ca8d67b0b7f0d3b5e7112f542108c453d4f9aa0 Mon Sep 17 00:00:00 2001 From: Arlove Date: Fri, 7 Mar 2025 08:39:40 +0800 Subject: [PATCH] Update introduction_screen.dart --- lib/src/introduction_screen.dart | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/src/introduction_screen.dart b/lib/src/introduction_screen.dart index 3ed5d82..e62b8de 100644 --- a/lib/src/introduction_screen.dart +++ b/lib/src/introduction_screen.dart @@ -578,6 +578,20 @@ class IntroductionScreenState extends State { semanticLabel: widget.backSemantic, onPressed: !_isScrolling ? previous : null, ); + } else if (widget.showBackButton && getCurrentPage() == 0) { + // Add the logic for the invisible button on the first page (index 0) + leftBtn = Opacity( + opacity: 0.0, + child: IgnorePointer( + ignoring: true, // Make the button unclickable + child: IntroButton( + child: const Icon(Icons.arrow_back), + style: widget.baseBtnStyle?.merge(widget.backStyle) ?? widget.backStyle, + semanticLabel: widget.backSemantic, + onPressed: null, // No action needed + ), + ), + ); } Widget? rightBtn;