Skip to content

Commit

Permalink
Merge pull request #206 from PaulineMoovency/master
Browse files Browse the repository at this point in the history
MAJ dependencies
  • Loading branch information
ghenry authored Jan 28, 2024
2 parents b3be8d4 + c3fbdf9 commit 1cccd72
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions lib/src/introduction_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ class IntroductionScreen extends StatefulWidget {

class IntroductionScreenState extends State<IntroductionScreen> {
late PageController _pageController;
double _currentPage = 0;
int _currentPage = 0;
bool _isSkipPressed = false;
bool _isScrolling = false;
late bool _showBottom;
Expand All @@ -411,7 +411,7 @@ class IntroductionScreenState extends State<IntroductionScreen> {
final int initialPage = min(widget.initialPage, getPagesLength() - 1);
_pageController = PageController(initialPage: initialPage);
_showBottom = widget.showBottomPart;
_currentPage = initialPage.toDouble();
_currentPage = initialPage;
_autoScroll(widget.autoScrollDuration);
if (widget.hideBottomOnKeyboard) {
final keyboardVisibilityController = KeyboardVisibilityController();
Expand Down Expand Up @@ -540,7 +540,7 @@ class IntroductionScreenState extends State<IntroductionScreen> {
final metrics = notification.metrics;
if (metrics is PageMetrics && metrics.page != null) {
if (mounted) {
setState(() => _currentPage = metrics.page!);
setState(() => _currentPage = metrics.page!.toInt());
}
}
return false;
Expand Down
9 changes: 5 additions & 4 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
name: introduction_screen
description: Introduction/Onboarding package for flutter app with some customizations possibilities
publish_to: "none"
version: 3.1.12
homepage: https://github.com/pyozer/introduction_screen
# homepage: https://github.com/pyozer/introduction_screen

environment:
sdk: '>=2.12.0 <4.0.0'
sdk: ">=2.12.0 <4.0.0"

dependencies:
flutter:
sdk: flutter

collection: ^1.17.1
dots_indicator: ^2.1.2
flutter_keyboard_visibility: ^5.4.1
dots_indicator: ^3.0.0
flutter_keyboard_visibility: ^6.0.0

dev_dependencies:
flutter_test:
Expand Down

0 comments on commit 1cccd72

Please sign in to comment.