Last active
October 23, 2021 08:20
-
-
Save jeckymodi/81a27c636dcb789114ac65f622895d02 to your computer and use it in GitHub Desktop.
Provider file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/cupertino.dart'; | |
class PageNotifier with ChangeNotifier { | |
double _currentPage = 0; | |
double get currentPage => _currentPage; | |
set setCurrentPage(val) { | |
_currentPage = val; | |
notifyListeners(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment