0 purchases
zugclient
Basic Flutter/Dart Client Package for the ZugServ Library
Features #
Enables the rapid creation of a client to connect to and manage responses from a ZugServ.
Getting started #
For creating a ZugClient: pub get zugclient
For creating a ZugServ: https://github.com/JohnChernoff/ZugServ
Usage #
import 'package:flutter/cupertino.dart';
import 'package:zugclient/oauth_client.dart';
import 'package:zugclient/zug_app.dart';
import 'package:zugclient/zug_client.dart';
void main() {
TestClient testClient = TestClient("example.com", 9999, "test",localServer : true);
runApp(TestApp(testClient));
}
class TestApp extends ZugApp {
TestApp(super.client, {super.key});
@override
Widget createMainPage(client) {
return const Text("Main Page");
}
}
class TestClient extends ZugClient {
TestClient(super.domain, super.port, super.remoteEndpoint, {super.localServer}) {
checkRedirect(OauthClient("lichess.org", clientName));
}
@override
Area createArea(String title) {
return TestArea(title);
}
}
class TestArea extends Area {
TestArea(super.title);
}
copied to clipboard
Additional information #
Very early version - project is rapidly developing, expect updates soon
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.