duytq94 / flutter-intro-slider

Simple and configurable app introduction slider for Flutter
https://pub.dartlang.org/packages/intro_slider
MIT License
677 stars 141 forks source link

image move up and down !!!! #48

Closed mokaily closed 5 years ago

mokaily commented 5 years ago

why the image of the slider moving up and down? and how to delete the up and down highlights please ?

issue gif: https://gph.is/g/4MWYLOD

snippets of my code :

Widget build(BuildContext context) {
    return Scaffold(
        backgroundColor: Colors.white,
        body: Column(
          children: <Widget>[
            Container(
                padding: EdgeInsets.all(70),
                height: MediaQuery.of(context).size.height * 0.77,
                child: IntroSlider(
                  isScrollable: false,
                  slides: this.slides,
                  renderPrevBtn: this.renderPrevBtn(),
                  renderNextBtn: this.renderNextBtn(),
                  renderDoneBtn: this.renderDoneBtn(),
                  colorPrevBtn: Colors.white,
                  isShowPrevBtn: true,
                  isShowSkipBtn: false,
                  onDonePress: this.onDonePress,
                  colorDoneBtn: Color(0xffffffff),
                  colorDot: Style.blue,
                  colorActiveDot: Style.purple,
                  sizeDot: 13.0,
                  backgroundColorAllSlides: Colors.white,
                )),
            SizedBox(height: MediaQuery.of(context).size.height * 0.0685),
            SocialLogin(),
          ],
        ));
  }
duytq94 commented 5 years ago

It happens when your content is taller than the widget wrap it. Please re-check the height of your content (maybe remove padding, margin... your content).