Skip to content

Commit

Permalink
flutter_onboarding_slider - version 1.0.10
Browse files Browse the repository at this point in the history
* New onboarding Slider version

* Update CHANGELOG.md

* flutter_onboarding_slider - version 1.0.10

* flutter_onboarding_slider - update changelog.

---------

Co-authored-by: Bilal <[email protected]>
  • Loading branch information
khanmujeeb687 and bilalhamud authored Oct 16, 2023
1 parent 323f94a commit 752b998
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
4 changes: 4 additions & 0 deletions packages/flutter_onboarding_slider/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [1.0.11] - 2023.10.16

* Bug Fixes

## [1.0.10] - 2023.08.23

* Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion packages/flutter_onboarding_slider/example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.0.10"
version: "1.0.11"
flutter_test:
dependency: "direct dev"
description: flutter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class OnBoardingNavigationBar extends StatelessWidget

@override
Widget build(BuildContext context) {
if (hideNavigationBar) return SizedBox.shrink();
return CupertinoNavigationBar(
automaticallyImplyLeading: false,
leading: leading,
Expand Down Expand Up @@ -72,4 +73,11 @@ class OnBoardingNavigationBar extends StatelessWidget
backgroundColor: headerBackgroundColor,
);
}

bool get hideNavigationBar {
if (currentPage == totalPage - 1) {
return finishButton == null;
}
return skipTextButton == null;
}
}
2 changes: 1 addition & 1 deletion packages/flutter_onboarding_slider/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_onboarding_slider
description: A page slider with parallex design that allows (Text) widgets or body to slide at a different speed with background.
version: 1.0.10
version: 1.0.11
homepage: https://github.com/appinioGmbH/flutter_packages
repository: https://github.com/appinioGmbH/flutter_packages/tree/main/packages/flutter_onboarding_slider

Expand Down

0 comments on commit 752b998

Please sign in to comment.