Skip to content

A Flutter widget which interacts with the DrMem control system.

License

Notifications You must be signed in to change notification settings

DrMemCS/drmem_widget

Repository files navigation

Allows Flutter applications to interact with the DrMem control system.

Features

This package provides a widget which communicates with the DrMem control system. The widget uses DrMem's client API to make requests and get replies. With this widget, your application can:

  • Auto detect instances of DrMem on the local network
  • Query instances for
    • drivers available in the instance
    • devices available in the instance
  • Obtain device readings and historical data
  • Change the state of devices

The DrMem Browser is an example of an application which uses this widget.

Getting started

Add this and the gql_code_builder packages to your app's dependencies:

dependencies:
  drmem_provider: ^0.1.0
  gql_code_builder: ^0.8.0

Usage

TODO: Include short and useful examples for package users. Add longer examples to /example folder.

const like = 'sample';

Additional information

Before the project can be built -- and any time the GraphQL API changes -- the GraphQL files need to be processed. This can be done with the command:

$ dart run build_runner build --delete-conflicting-outputs

The author uses this widget on MacOS and Android targets. It should also work on Linux, IOS, and Windows, but he doesn't have systems to test them on. The mDNS dependent package doesn't support Web targets, so this package can't either.

About

A Flutter widget which interacts with the DrMem control system.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages