@@ -12,8 +12,8 @@ class GFIntroScreen extends StatefulWidget {
1212 this .height,
1313 this .borderRadius,
1414 this .border,
15- this .gfIntroBottomNavigation ,
16- this .showIntroBottomNavigation = true ,
15+ this .introScreenBottomNavigationBar ,
16+ this .showIntroSCreenBottomNavigationBar = true ,
1717 this .currentIndex = 0 ,
1818 this .pageCount = 0 ,
1919 this .child,
@@ -82,10 +82,10 @@ class GFIntroScreen extends StatefulWidget {
8282
8383 final Border border;
8484
85- /// [GFIntroScreen] bottom navigation will be used as [GFIntroBottomNavigation ] component
86- final GFIntroBottomNavigation gfIntroBottomNavigation ;
85+ /// [GFIntroScreen] bottom navigation will be used as [GFIntroScreenBottomNavigationBar ] component
86+ final GFIntroScreenBottomNavigationBar introScreenBottomNavigationBar ;
8787
88- final bool showIntroBottomNavigation ;
88+ final bool showIntroSCreenBottomNavigationBar ;
8989
9090
9191
@@ -100,7 +100,7 @@ class GFIntroScreen extends StatefulWidget {
100100 final EdgeInsets navigationBarMargin;
101101 final dynamic navigationBarColor;
102102
103- /// defines the shape of [GFIntroBottomNavigation ]
103+ /// defines the shape of [GFIntroScreenBottomNavigationBar ]
104104 final ShapeBorder navigationBarShape;
105105
106106 final VoidCallback onForwardButtonTap;
@@ -186,58 +186,46 @@ class _GFIntroScreenState extends State<GFIntroScreen> {
186186 children: widget.slides,
187187 ),
188188 ),
189- widget.showIntroBottomNavigation ? widget.gfIntroBottomNavigation ??
190- GFIntroBottomNavigation (
189+ widget.showIntroSCreenBottomNavigationBar ? widget.introScreenBottomNavigationBar ??
190+ GFIntroScreenBottomNavigationBar (
191191 pageController: _pageController,
192192 pageCount: widget.slides.length,
193193 currentIndex: currentIndex,
194194 child: widget.child,
195195 navigationBarColor: widget.navigationBarColor,
196196 navigationBarHeight: widget.navigationBarHeight,
197- navigationBarShape: widget.navigationBarWidth,
198- navigationBarWidth,
199- navigationBarPadding = const EdgeInsets .all (8 ),
200- navigationBarMargin = const EdgeInsets .all (8 ),
201- showDivider = true ,
202- dividerColor = Colors .white,
203- dividerHeight = 1 ,
204- dividerThickness = 2 ,
205- dotShape,
206- inActiveColor = GFColors .LIGHT ,
207- activeColor = GFColors .PRIMARY ,
208- dotHeight = 12 ,
209- dotWidth = 12 ,
210- dotMargin = const EdgeInsets .symmetric (horizontal: 2 ),
211- backButton,
212- forwardButton,
213- doneButton,
214- skipButton,
215- onDoneTap,
216- onForwardButtonTap,
217- onBackButtonTap,
218- onSkipTap,
219- forwardButtonText = 'NEXT' ,
220- backButtonText = 'BACK' ,
221- doneButtonText = 'GO' ,
222- skipButtonText = 'SKIP' ,
223- skipButtonTextStyle = const TextStyle (
224- color: Colors .black,
225- fontSize: 16 ,
226- ),
227- doneButtonTextStyle = const TextStyle (
228- color: Colors .black,
229- fontSize: 16 ,
230- ),
231- backButtonTextStyle = const TextStyle (
232- color: Colors .black,
233- fontSize: 16 ,
234- ),
235- forwardButtonTextStyle = const TextStyle (
236- color: Colors .black,
237- fontSize: 16 ,
238- ),
239- showButton = true ,
240- showPagination = true ,
197+ navigationBarShape: widget.navigationBarShape,
198+ navigationBarWidth: widget.navigationBarWidth,
199+ navigationBarPadding: widget.navigationBarPadding,
200+ navigationBarMargin: widget.navigationBarMargin,
201+ showDivider: widget.showDivider,
202+ dividerColor: widget.dividerColor,
203+ dividerHeight: widget.dividerHeight,
204+ dividerThickness: widget.dividerThickness,
205+ dotShape: widget.dotShape,
206+ inActiveColor: widget.inActiveColor,
207+ activeColor: widget.activeColor,
208+ dotHeight: widget.dotHeight,
209+ dotWidth: widget.dotWidth,
210+ dotMargin: widget.dotMargin,
211+ backButton: widget.backButton,
212+ forwardButton: widget.forwardButton,
213+ doneButton: widget.doneButton,
214+ skipButton: widget.skipButton,
215+ onDoneTap: widget.onDoneTap,
216+ onForwardButtonTap: widget.onForwardButtonTap,
217+ onBackButtonTap: widget.onBackButtonTap,
218+ onSkipTap: widget.onSkipTap,
219+ forwardButtonText: widget.forwardButtonText,
220+ backButtonText: widget.backButtonText,
221+ doneButtonText: widget.doneButtonText,
222+ skipButtonText: widget.skipButtonText,
223+ skipButtonTextStyle: widget.skipButtonTextStyle,
224+ doneButtonTextStyle: widget.doneButtonTextStyle,
225+ backButtonTextStyle: widget.backButtonTextStyle,
226+ forwardButtonTextStyle: widget.forwardButtonTextStyle,
227+ showButton: widget.showButton,
228+ showPagination: widget.showPagination,
241229 ) : Container (),
242230 ],
243231 ),
0 commit comments