Is a widget on top of Navigator

One thing that I keep forgetting how to do in Flutter is determine if a Widget is the topmost visible widget or has been obscured by the Navigator pushing another widget on top of it. It’s really simple so I’m recording it here so I don’t have to search for it again.

Google Sign In

I recently started using the excellent google_sign_in package to handle Google authentication for access to services on the user’s behalf. Using this a user can allow access to their account in a service like Google Calendar. The documentation is very good but there was one point that tripped me up. In hopes it will save you some time here’s what I discovered. The login flow goes something like this: My initial version didn’t use the signInSilently method and I didn’t at first understand what the use case was. What I missed is that the first time the user signs in [Read on…]