From 45000b2b583706f5f1377a808c07180d1d676060 Mon Sep 17 00:00:00 2001 From: Denis Zhdanov Date: Sun, 29 Dec 2024 21:21:03 +0800 Subject: [PATCH] #13 avoid ugly blink on storing the measurement --- lib/google/google_helper.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/google/google_helper.dart b/lib/google/google_helper.dart index bec6e9b..c133ad2 100644 --- a/lib/google/google_helper.dart +++ b/lib/google/google_helper.dart @@ -20,6 +20,7 @@ Future getAuthenticatedGoogleApiHttpClient() async { sheets.SheetsApi.driveReadonlyScope ]); var googleAccount = await signIn.signInSilently(); + googleAccount ??= await signIn.signIn(); if (googleAccount == null) { throw StateError("can not login into google"); }