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, + continueButtonColor: Colors.black, + backButtonColor: Colors.blue, + finishButtonColor: Colors.red, + enableFinishButtonGlow: false, + onNext: (int) { + _onNextPressed(); + }, + onBack: (int) { + _pageController.previousPage( + duration: const Duration(milliseconds: 300), + curve: Curves.easeIn, + ); + }, + onFinish: () { + context.goNamed(TopScreen.name); + }, + ) ], ), ), diff --git a/pubspec.yaml b/pubspec.yaml index 11b8310..36287f8 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -117,6 +117,9 @@ dependencies: audioplayers: ^6.0.0 lottie: ^3.1.2 + # page indicator + flutter_custom_page_steps_indication: ^1.1.1 + dev_dependencies: