{"id":17336517,"url":"https://github.com/therookiecoder/drive_helper","last_synced_at":"2025-04-14T18:40:59.749Z","repository":{"id":61973154,"uuid":"365806870","full_name":"theRookieCoder/drive_helper","owner":"theRookieCoder","description":"Thin wrapper for interfacing with Google Drive and Google sign in, in Flutter","archived":false,"fork":false,"pushed_at":"2024-03-26T16:15:20.000Z","size":124,"stargazers_count":12,"open_issues_count":1,"forks_count":3,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-28T07:04:22.866Z","etag":null,"topics":["dart","firebase","firebase-auth","flutter","google-drive","google-sign-in"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/drive_helper","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/theRookieCoder.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2021-05-09T17:11:42.000Z","updated_at":"2025-02-23T09:08:00.000Z","dependencies_parsed_at":"2024-03-26T17:30:52.253Z","dependency_job_id":"d23d7305-1ca3-45a1-b3c8-d2679e615465","html_url":"https://github.com/theRookieCoder/drive_helper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theRookieCoder%2Fdrive_helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theRookieCoder%2Fdrive_helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theRookieCoder%2Fdrive_helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theRookieCoder%2Fdrive_helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theRookieCoder","download_url":"https://codeload.github.com/theRookieCoder/drive_helper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248938139,"owners_count":21186351,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dart","firebase","firebase-auth","flutter","google-drive","google-sign-in"],"created_at":"2024-10-15T15:30:59.180Z","updated_at":"2025-04-14T18:40:59.720Z","avatar_url":"https://github.com/theRookieCoder.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Drive Helper\n\nDrive Helper is an easy to use library for interfacing with Google Drive and Google sign in.  \nIt is a thin wrapper around `google_sign_in` and `googleapis`, making it much more intuitive for developers to use and integrate Google Drive into a project. If you already use the Drive API, then you probably have a wrapper class for initialisation and read/write, you can likely easily replace it with Drive Helper.\n\n## Get started\n\nFollow the instruction in the [tutorial](https://github.com/theRookieCoder/drive_helper/blob/main/doc/DriveHelper.md) to start using Drive Helper in your Flutter project, or migrate to it for an existing app.\n\n## Features\n\n- Signs in to Google and maintains the account for you\n- Exposed `DriveAPI`, `GoogleSignIn`, and `GoogleSignInAccount` to help with possibly missing functionality\n- Provides methods for\n  - Signing in to and signing out or disconnecting from Google accounts\n  - Searching, creating, reading, overwriting, appending, and deleting files\n  - Getting the account's name, email address, or avatar\n- Predefined MIME types for use in creating and exporting files\n- Predefined permission scopes for easily picking a suitable permission level apt for your purposes\n\n## Example\n\nTo have a look at an app that uses this library, see the app that inspired Drive Helper, [BP Logger](https://www.github.com/theRookieCoder/bp_logger).\n\nThe code below shows how to initialise the library:\n\n```dart\nclass MyApp extends StatelessWidget {\n  late DriveHelper driveHelper;\n\n  Widget build() {\n    return MaterialApp(\n      // Theming and other setting\n      body: FutureBuilder(\n        future: () async =\u003e await driveHelper = DriveHelper.initialise([\n            // Choose your scopes\n        ]),\n        builder: (snapshot, context) {\n          if (snapshot.connectionState == ConnectionState.done \u0026\u0026\n            !snapshot.hasError) {\n            return HomePage(driveHelper: driveHelper);\n          } else if (snapshot.connectionState == ConnectionState.done \u0026\u0026\n            snapshot.hasError) {\n            return ErrorPage(error: snapshot.error);\n          } else {\n            return Container(\n              width: MediaQuery.of(context).size.width / 1.5,\n              height: MediaQuery.of(context).size.width / 1.5,\n              child: CircularProgrssIndicator(strokeWidth: 10),\n            );\n          }\n        }\n      ),\n    );\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftherookiecoder%2Fdrive_helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftherookiecoder%2Fdrive_helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftherookiecoder%2Fdrive_helper/lists"}