The Flutter Logging package is pretty good but it is missing a bit of documentation that I would have found useful. In particular it supports hierarchical logging but I had to look at the code to see how to use it. I have documented what I learned in this post. The Basics Getting logging working is pretty trivial, it works like most logging packages, though it has a few more log levels. For the most up-to-date usage guide see the package documentation. Here’s what I found based on the example at the time I wrote this. Configuring Logging Logging ignores [Read on…]
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.
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…]