8000 GitHub - DonnC/deta_drive: A dart helper library for Deta Drive cloud storage
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

DonnC/deta_drive

Repository files navigation

Deta Drive Dart

A dart library for Deta Drive Cloud Service

Very Important

Please note, deta is ONLY used for SERVER side applications and not user applications, so do not use your keys in your flutter production apps as hackers can reverse engineer your code and access deta keys, for more check the comment from @detahq on twitter

Features

  • Upload file to deta storage
  • List deta files
  • Delete deta files
  • Download deta files

x - Chunked upload `TODO`

Getting started

TL;DR
Check out the amazing Deta here

Usage

Check the /example folder.
**There is a complete view with riverpod in the examples folder

Create Deta object

import 'package:deta_drive/deta_drive.dart';

void main() async {
  final _deta = Deta(projectId: 'projectId', projectKey: 'projectKey');

  final drive = DetaDrive(drive: 'drive-name', deta: _deta);

  final drive2 = DetaDrive(drive: 'drive-name-2', deta: _deta);

  // ... <more-drives> per your requirement
  
  final myFiles = await drive.listFiles();

  print(myFiles);
}

Additional information

ATTENTION
Be smart, Keep your deta keys private

About

A dart helper library for Deta Drive cloud storage

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0