renderNav method
Implementation
Widget renderNav() {
return Positioned(
top: widget.navPosition == IntroSliderNavPosition.top
? MediaQuery.of(context).viewPadding.top
: null,
bottom: widget.navPosition == IntroSliderNavPosition.bottom ? 10.0 : null,
left: 10.0,
right: 10.0,
child: Row(
children: <Widget>[
// Skip button
Container(
alignment: Alignment.center,
width: MediaQuery.of(context).size.width / 4,
child: showSkipBtn
? buildSkipButton()
: (showPrevBtn ? buildPrevButton() : Container()),
),
// Dot indicator
Flexible(
child: showDotIndicator
? Stack(
children: <Widget>[
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: renderListDots(),
),
if (typeDotAnimation == DotSliderAnimation.DOT_MOVEMENT)
Center(
child: Container(
decoration: BoxDecoration(
color: colorActiveDot,
borderRadius: BorderRadius.circular(sizeDot / 2),
),
width: sizeDot,
height: sizeDot,
margin: EdgeInsets.only(
left: isRTLLanguage(
Localizations.localeOf(context)
.languageCode)
? marginRightDotFocused
: marginLeftDotFocused,
right: isRTLLanguage(
Localizations.localeOf(context)
.languageCode)
? marginLeftDotFocused
: marginRightDotFocused,
),
),
)
else
Container()
],
)
: Container(),
),
// Next, Done button
Container(
alignment: Alignment.center,
width: MediaQuery.of(context).size.width / 4,
height: 50,
child: tabController.index + 1 == lengthSlide
? showDoneBtn
? buildDoneButton()
: Container()
: showNextBtn
? buildNextButton()
: Container(),
),
],
),
);
}