Skip to content

Commit 4dde718

Browse files
committed
Fix: Login at web
1 parent af75550 commit 4dde718

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 0.0.14
1+
## 0.0.15
22

33
* Login at web should work
44

example/pubspec.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ packages:
6363
path: ".."
6464
relative: true
6565
source: path
66-
version: "0.0.8"
66+
version: "0.0.14"
6767
flutter:
6868
dependency: "direct main"
6969
description: flutter

lib/fl_cloud_storage/vendor/google_drive/google_drive_service.dart

+4-1
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ class GoogleDriveService
133133
return (await googleSignIn.signInSilently(suppressErrors: false)) ??
134134
(interactiveLogin ? await googleSignIn.signIn() : null);
135135
} catch (e) {
136+
if (!interactiveLogin) {
137+
return googleSignIn.signIn();
138+
}
136139
log.e(e);
137140
}
138141
return null;
@@ -410,4 +413,4 @@ class GoogleDriveService
410413
? GoogleDriveFolder(folder: res.files![0])
411414
: null;
412415
}
413-
}
416+
}

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: fl_cloud_storage
22
description: Store files in the cloud from Flutter apps. In the first step we only support Google Drive but adding other clouds is much appreciated.
3-
version: 0.0.14
3+
version: 0.0.15
44
homepage: https://github.com/ehwplus/fl_cloud_storage
55

66
environment:

0 commit comments

Comments
 (0)