Skip to content
This repository was archived by the owner on Dec 5, 2023. It is now read-only.

Commit ec0169c

Browse files
fix: Enum name changes
1 parent 4f3832e commit ec0169c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lib/src/config/introduction.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ enum IntroductionDisplayMode {
2222
}
2323

2424
enum IntroductionControlMode {
25-
twoButton,
26-
oneButton,
25+
previousNextButton,
26+
singleButton,
2727
}
2828

2929
enum IntroductionButtonType {
@@ -111,8 +111,8 @@ class IntroductionOptions {
111111
final IntroductionDisplayMode displayMode;
112112

113113
/// When [IntroductionDisplayMode.multiPageHorizontal] is selected multiple controlMode can be selected.
114-
/// [IntroductionControlMode.twoButton] shows two buttons at the bottom of the screen to return or proceed. The skip button is placed at the top left of the screen.
115-
/// [IntroductionControlMode.oneButton] contains one button at the bottom of the screen to proceed. Underneath is clickable text to skip if the current page is the first page. If the current page is any different it return to the previous screen.
114+
/// [IntroductionControlMode.previousNextButton] shows two buttons at the bottom of the screen to return or proceed. The skip button is placed at the top left of the screen.
115+
/// [IntroductionControlMode.singleButton] contains one button at the bottom of the screen to proceed. Underneath is clickable text to skip if the current page is the first page. If the current page is any different it return to the previous screen.
116116
///
117117
final IntroductionControlMode controlMode;
118118

@@ -145,7 +145,7 @@ class IntroductionOptions {
145145
this.displayMode = IntroductionDisplayMode.multiPageHorizontal,
146146
this.skippable = false,
147147
this.buttonBuilder,
148-
this.controlMode = IntroductionControlMode.twoButton,
148+
this.controlMode = IntroductionControlMode.previousNextButton,
149149
}) : assert(
150150
!(identical(indicatorMode, IndicatorMode.custom) &&
151151
indicatorBuilder == null),

lib/src/types/page_introduction.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class _MultiPageIntroductionScreenState
102102
mainAxisAlignment: MainAxisAlignment.spaceBetween,
103103
children: [
104104
if (widget.options.controlMode ==
105-
IntroductionControlMode.twoButton) ...[
105+
IntroductionControlMode.previousNextButton) ...[
106106
Padding(
107107
padding: const EdgeInsets.only(right: 16.0),
108108
child: SizedBox(
@@ -149,7 +149,7 @@ class _MultiPageIntroductionScreenState
149149
animation: _controller,
150150
builder: (context, _) {
151151
if (widget.options.controlMode ==
152-
IntroductionControlMode.oneButton) {
152+
IntroductionControlMode.singleButton) {
153153
return IntroductionOneButton(
154154
controller: _controller,
155155
next: _isNext(pages),

0 commit comments

Comments
 (0)