Skip to content

Commit 949e50a

Browse files
committed
Corrected misspelled variable name 😠
1 parent 2c6d47c commit 949e50a

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

lib/UI/page_indicator_buttons.dart

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class DoneButton extends StatelessWidget {
9090

9191
class PageIndicatorButtons extends StatelessWidget {
9292
//Some variables
93-
final int acitvePageIndex;
93+
final int activePageIndex;
9494
final int totalPages;
9595
final VoidCallback onPressedDoneButton; //Callback for Done Button
9696
final VoidCallback onPressedNextButton;
@@ -111,31 +111,31 @@ class PageIndicatorButtons extends StatelessWidget {
111111
final bool doneButtonPersist;
112112

113113
Widget _getDoneORNextButton() {
114-
if ((acitvePageIndex < totalPages - 1 ||
115-
(acitvePageIndex == totalPages - 1 &&
114+
if ((activePageIndex < totalPages - 1 ||
115+
(activePageIndex == totalPages - 1 &&
116116
slideDirection == SlideDirection.leftToRight)) &&
117117
showNextButton) {
118118
return DefaultButton(
119119
child: nextText,
120120
onTap: onPressedNextButton,
121121
pageButtonViewModel: PageButtonViewModel(
122122
//View Model
123-
activePageIndex: acitvePageIndex,
123+
activePageIndex: activePageIndex,
124124
totalPages: totalPages,
125125
slidePercent: slidePercent,
126126
slideDirection: slideDirection,
127127
),
128128
);
129-
} else if (acitvePageIndex == totalPages - 1 ||
130-
(acitvePageIndex == totalPages - 2 &&
129+
} else if (activePageIndex == totalPages - 1 ||
130+
(activePageIndex == totalPages - 2 &&
131131
slideDirection == SlideDirection.rightToLeft ||
132132
doneButtonPersist)) {
133133
return DoneButton(
134134
child: doneText,
135135
onTap: onPressedDoneButton,
136136
pageButtonViewModel: PageButtonViewModel(
137137
//view Model
138-
activePageIndex: acitvePageIndex,
138+
activePageIndex: activePageIndex,
139139
totalPages: totalPages,
140140
slidePercent: doneButtonPersist ? 0.0 : slidePercent,
141141
slideDirection: slideDirection,
@@ -147,30 +147,30 @@ class PageIndicatorButtons extends StatelessWidget {
147147
}
148148

149149
Widget _getSkipORBackButton() {
150-
if (acitvePageIndex <= totalPages &&
151-
acitvePageIndex >= 1 &&
150+
if (activePageIndex <= totalPages &&
151+
activePageIndex >= 1 &&
152152
showBackButton) {
153153
return DefaultButton(
154154
child: backText,
155155
onTap: onPressedBackButton,
156156
pageButtonViewModel: PageButtonViewModel(
157157
//View Model
158-
activePageIndex: acitvePageIndex,
158+
activePageIndex: activePageIndex,
159159
totalPages: totalPages,
160160
slidePercent: slidePercent,
161161
slideDirection: slideDirection,
162162
),
163163
);
164-
} else if ((acitvePageIndex < totalPages - 1 ||
165-
(acitvePageIndex == totalPages - 1 &&
164+
} else if ((activePageIndex < totalPages - 1 ||
165+
(activePageIndex == totalPages - 1 &&
166166
slideDirection == SlideDirection.leftToRight)) &&
167167
showSkipButton) {
168168
return DefaultButton(
169169
child: skipText,
170170
onTap: onPressedSkipButton,
171171
pageButtonViewModel: PageButtonViewModel(
172172
//View Model
173-
activePageIndex: acitvePageIndex,
173+
activePageIndex: activePageIndex,
174174
totalPages: totalPages,
175175
slidePercent: slidePercent,
176176
slideDirection: slideDirection,
@@ -183,7 +183,7 @@ class PageIndicatorButtons extends StatelessWidget {
183183

184184
//Constructor
185185
PageIndicatorButtons(
186-
{@required this.acitvePageIndex,
186+
{@required this.activePageIndex,
187187
@required this.totalPages,
188188
this.onPressedDoneButton,
189189
this.slideDirection,

lib/intro_views_flutter.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ class _IntroViewsFlutterState extends State<IntroViewsFlutter>
260260
PageIndicatorButtons(
261261
//Skip and Done Buttons
262262
textStyle: textStyle,
263-
acitvePageIndex: activePageIndex,
263+
activePageIndex: activePageIndex,
264264
totalPages: pages.length,
265265
onPressedDoneButton: widget.onTapDoneButton,
266266
//void Callback to be executed after pressing done button

0 commit comments

Comments
 (0)