lazy_g_drive 2.1.1 lazy_g_drive: ^2.1.1 copied to clipboard
A simple Google Drive Api package mainly design for AppData scope operation.
A simple Google Drive Api wrapper for googleapis/drive/v3
. Package mainly design for appdata scope operation.
Features #
Name | Api Stable | Description |
---|---|---|
[GDrive] | yes | Simple Google Drive class implementing wrapper for create, get, list, update, and helper methods download, upload, updateContent, listFiles, getLatest, delCopies. |
[GDriveStringExt] | yes | Provide an easy way to convert String to DriveApi media stream. |
[gDriveFileMeta] | yes | A helper function to fill in Drive API FileMeta |
Getting started #
flutter pub add lazy_g_drive
Usage #
[GDrive] don't have custom constructor. A Google OAuth access token must be set before using any methods.
Import with as lazy
as follow:
import 'package:lazy_g_drive/lazy_g_drive.dart' as lazy;
main(){
var gdrive = lazy.GDrive();
gdrive.token = 'Google Access Token';
// ...
}