Skip to content

Commit

Permalink
add 온보딩 버튼
Browse files Browse the repository at this point in the history
  • Loading branch information
jwson-automation committed Aug 25, 2024
1 parent c3d40eb commit 2207d69
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
2 changes: 1 addition & 1 deletion android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<application
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher"
android:icon="@mipmap/launcher_icon"
android:label="boyvoice"
android:enableOnBackInvokedCallback="true">
<meta-data
Expand Down
22 changes: 15 additions & 7 deletions lib/feature/onboarding/OnboardingScreen.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import 'package:blueberry_flutter_template/core/TopScreen.dart';
import 'package:blueberry_flutter_template/feature/onboarding/widgets/OnboardingPageViewBuilder.dart';
import 'package:flutter/material.dart';
import 'package:flutter_custom_page_steps_indication/CustomPageStepsIndication.dart';
import 'package:go_router/go_router.dart';
import 'package:shared_preferences/shared_preferences.dart';

import 'OnboardingData.dart';
import 'widgets/OnboardingDotWidget.dart';
import 'widgets/OnboardingPageButton.dart';

class OnboardingScreen extends StatefulWidget {
static const String name = 'OnboardingScreen';
Expand Down Expand Up @@ -68,11 +67,20 @@ class _OnboardingScreenState extends State<OnboardingScreen> {
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,
);
},
),
],
),
Expand Down
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ dependencies:
# audio player
audioplayers: ^6.0.0
lottie: ^3.1.2
flutter_custom_page_steps_indication: ^1.0.2



Expand Down

0 comments on commit 2207d69

Please sign in to comment.