2

I can't find any resource to embed google Picker in a flutter to upload a doc to Google drive. Can any provide me with an example of how to integrate Google Picker to Flutter?

1 Answer 1

0

Same issue here, you can use file_picker:

final result = await FilePicker.platform.pickFiles();

It will navigate user to an UI for selecting files including other app's files, i.e. google drive.


BTW, you should request permissions before picking the file:

final googleSignIn = GoogleSignIn(scopes: []);
await googleSignIn.signIn()
// request when you need it!
await googleSignIn.requestScopes([SheetsApi.spreadsheetsScope])

Found similar question here: File Picker for Google Drive Rest API for Android

Sign up to request clarification or add additional context in comments.

1 Comment

Hi, do you think it will also work for Flutte Web?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.