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

Add button within the slide #64

Closed johnareid54 closed 4 years ago

johnareid54 commented 4 years ago

Is it possible to add a button to each slide after the description? I wanted to add a button with the label "More" which would display a bottom sheet modal with additional text to explain in more detail the text shown on the slide.

duytq94 commented 4 years ago

Yes, you can do it by set widgetDescription Screen Shot 2020-02-19 at 9 10 11 AM Or custom entire tab through listCustomTabs

johnareid54 commented 4 years ago

Thanks, Duy, I put the following into my code (copied your example): centerWidget: Text("Replace this with a custom widget", style: TextStyle(color: Colors.white)), but it did not show up on the emulator, and the description was still shown.

duytq94 commented 4 years ago

@johnareid54 centerWidget is the widget between title and description, it does not replace the description. If you use it, will show like this Screen Shot 2020-02-20 at 8 51 35 AM

johnareid54 commented 4 years ago

Thanks, Duy,

It is most likely a fault in my code. I am trying it on a new flutter blank app, using your example code. Unfortunately, my Macbook has just forced me to update xcode to 11 and it is causing loads of problems and at the moment I cannot run flutter in debug mode. It might be a few days before it is back to normal.

duytq94 commented 4 years ago

I'll close this issue since it depends on your code, btw feel free to discuss.