renderBottom method

Widget renderBottom()

Implementation

Widget renderBottom() {
  return Positioned(
    bottom: 10.0,
    left: 10.0,
    right: 10.0,
    child: Row(
      children: <Widget>[
        // Skip button
        Container(
          alignment: Alignment.center,
          width: showSkipBtn
              ? widget.widthSkipBtn ?? MediaQuery.of(context).size.width / 4
              : (showPrevBtn
                  ? widget.widthPrevBtn
                  : 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: widget.widthDoneBtn ?? MediaQuery.of(context).size.width / 4,
          height: 50,
          child: tabController.index + 1 == lengthSlide
              ? showDoneBtn
                  ? buildDoneButton()
                  : Container()
              : showNextBtn
                  ? buildNextButton()
                  : Container(),
        ),
      ],
    ),
  );
}