appwritex 0.1.1 appwritex: ^0.1.1 copied to clipboard
Provides additional features to the Appwrite Dart SDK non-invasively.
[Beta] AppwriteX provides additional features to the Appwrite Dart SDK non-invasively.
Features #
- AppwriteX extends the Appwrite Dart SDK with additional features.
Getting started #
- Add this package to your
pubspec.yaml
file:
dependencies:
dart_appwrite: ^<latest_version>
appwritex: ^1.0.0
- Install the package by running
dart pub get
. - Import the package in your Dart code:
import 'package:dart_appwrite/dart_appwrite.dart';
import 'package:appwritex/appwritex.dart';
- Use the package in your code:
void main() async {
final client = Client()
.setEndpoint('http://localhost/v1')
.setProject('fedcba9876543210')
.setKey('0123456789abcdef');
final users = Users(client);
final usersUsage = await users.getUsage(); // users.getUsage() is provided by AppwriteX
print(usersUsage.toMap());
}
Usage #
import 'package:dart_appwrite/dart_appwrite.dart';
import 'package:appwritex/appwritex.dart';
void main() async {
final client = Client()
.setEndpoint('http://localhost/v1')
.setProject('fedcba9876543210')
.setKey('0123456789abcdef');
final users = Users(client);
final usersUsage = await users.getUsage(); // users.getUsage() is provided by AppwriteX
print(usersUsage.toMap());
}
Additional information #
Some features in this package are experimental and may not work as expected.