From 2207d69975fdf1d55b887b874763e62265f1e6bc Mon Sep 17 00:00:00 2001 From: Jungwoo <108061510+jwson-automation@users.noreply.github.com> Date: Sun, 25 Aug 2024 21:23:18 +0900 Subject: [PATCH] =?UTF-8?q?=20add=20=EC=98=A8=EB=B3=B4=EB=94=A9=20?= =?UTF-8?q?=EB=B2=84=ED=8A=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- android/app/src/main/AndroidManifest.xml | 2 +- lib/feature/onboarding/OnboardingScreen.dart | 22 +++++++++++++------- pubspec.yaml | 1 + 3 files changed, 17 insertions(+), 8 deletions(-) diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index df227bd..b5d931f 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -5,7 +5,7 @@ { flex: 1, child: Column( children: [ - OnboardingDotWidget(currentPage: _currentPage), - const SizedBox(height: 20), - OnboardingPageButton( - currentPage: _currentPage, - onNextPressed: _onNextPressed, + StepProgress( + totalSteps: OnboardingData.pageDataList.length, + currentStep: _currentPage, + activeColor: Colors.blue, + inactiveColor: Colors.grey, + onNext: (int) { + _onNextPressed(); + }, + onBack: (int) { + _pageController.previousPage( + duration: const Duration(milliseconds: 300), + curve: Curves.easeIn, + ); + }, ), ], ), diff --git a/pubspec.yaml b/pubspec.yaml index 11b8310..88fe4a3 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -116,6 +116,7 @@ dependencies: # audio player audioplayers: ^6.0.0 lottie: ^3.1.2 + flutter_custom_page_steps_indication: ^1.0.2