Flutter Navigator 2.0

Nov 8 2022 · Dart 2.17.3, Flutter 3.0.2, Android Studio 2020.3

Part 2: Deep Dive Into Navigator 2.0

05. Create App State Notifier Functions

Episode complete

Play next episode

Next
About this episode
Leave a rating/review
See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 04. Create an App State Manager Next episode: 06. Create a Book Manager Class

Get immediate access to this and 4,000+ other videos and books.

Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and 4,000+ professional videos in a single subscription, it's simply the best investment you can make in your development career.

Learn more Already a subscriber? Sign in.

Transcript: 05. Create App State Notifier Functions

Episode 5 - Create App State Notifier Functions

In our AppStateManager class, we are going to create few function which will change the value of our defined private variables to true and then notify the changes to our ChangeNotifier. In our initialiseApp() function we have added a timer with 2 seconds of wait, to give us a real feel of initialising of the app.

Our login function will have two String parameters username and password. We wont be needing these parameters as we wont have any login functions but its for users who want to pass username and password to create a login function.

In our Logout function we are setting all the appState Varibales to false. After calling these functions from our provider we will be able to change the state of our application.