Skip to content

Commit 1db32ab

Browse files
committed
showNextButton and showBackButton set default to false
1 parent 949e50a commit 1db32ab

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
## 2.5.0
22
* Added Next Button to move to the next screen. Overriding doneButtonPersist.
3+
* Added Back Button. Overrides showSkipButton starting from the second page.
34

45
## 2.4.0
56
**Feature Enhancement**

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,11 @@ You should then run `flutter packages get` in your terminal so as to get the pac
139139
| :---------------------- | :------------------ | :---------------------------------------------------------------------------------------------------------------- | :-------------------------------------: |
140140
| pages | List<PageViewModel> | Set the pages of the intro screen. | Null |
141141
| onTapDoneButton | VoidCallback | Method executes on tapping done button. | Null |
142-
| onTapDoneButton | VoidCallback | Method executes on tapping back button. | Null |
142+
| onTapBackButton | VoidCallback | Method executes on tapping back button. | Null |
143143
| onTapNextButton | VoidCallback | Method executes on tapping next button. | Null |
144144
| showSkipButton | Bool | Show the skip button at the bottom of page. | true |
145-
| showBackButton | Bool | Show the Back button at the bottom of page. Overrides showSkipButton starting from the second page | true |
146-
| showNextButton | Bool | Show the Next button at the bottom of page. Overrides doneButtonPersist. | true |
145+
| showBackButton | Bool | Show the Back button at the bottom of page. Overrides showSkipButton starting from the second page | false |
146+
| showNextButton | Bool | Show the Next button at the bottom of page. Overrides doneButtonPersist. | false |
147147
| pageButtonTextSize | Double | Set the button text size. | 18.0 |
148148
| pageButtonFontFamily | String | Set the font of button text. | Default |
149149
| onTapSkipButton | VoidCallback | Method executes on tapping skip button. | null |

lib/intro_views_flutter.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ class IntroViewsFlutter extends StatefulWidget {
9999
this.showSkipButton = true,
100100
this.pageButtonTextStyles,
101101
this.onTapBackButton,
102-
this.showNextButton = true,
103-
this.showBackButton = true,
102+
this.showNextButton = false,
103+
this.showBackButton = false,
104104
this.pageButtonTextSize = 18.0,
105105
this.pageButtonFontFamily,
106106
this.onTapSkipButton,

0 commit comments

Comments
 (0)