zugclient 0.2.0 copy "zugclient: ^0.2.0" to clipboard
zugclient: ^0.2.0 copied to clipboard

Flutter client framework for the ZugServ library

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);
}

Additional information #

Very early version - project is rapidly developing, expect updates soon

1
likes
100
points
65
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter client framework for the ZugServ library

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

audioplayers, cupertino_icons, flutter, http, ini, logging, oauth2, package_info_plus, provider, shared_preferences, universal_html, url_launcher, web_socket_channel, webview_flutter

More

Packages that depend on zugclient