nityanandagohain / in-time

A mobile app in flutter
20 stars 28 forks source link

Add a loader. #21

Closed nityanandagohain closed 5 years ago

nityanandagohain commented 5 years ago

Design a loader that will be displayed when the user clicks on Log in or Sign Up.

knightcube commented 5 years ago

I am working on this

nityanandagohain commented 5 years ago

okay.

knightcube commented 5 years ago

Designing is done. How do I add the functionality to show it as soon as the Login Button is clicked? ezgif-2-b48b68cc55c2

nityanandagohain commented 5 years ago

that's great @knightcube , create a bool variable and initially set the value to false when the user clicks on the login/signup, set the value of bool variable to true in the functions before the firebase API call's and after completing the API calls set the value to false. Write a conditional statement in the containers so that the loader is displayed when the value is true.

knightcube commented 5 years ago

I tried but sort of stuck. I will make a PR. Kindly tell me how I can go ahead.

nityanandagohain commented 5 years ago

I will give you a sample code in gitter channel to help you with that then you can implement it.

knightcube commented 5 years ago

That would be a great help. Thanks