flutter_duit 1.1.0 copy "flutter_duit: ^1.1.0" to clipboard
flutter_duit: ^1.1.0 copied to clipboard

Server driver UI framework for Flutter. Allows you to update your cool UI without updating the app!

Duit - drived UI tooklit. #

Duit is a server side UI framework for Flutter. It is used for creating widgets and server-side state management.

The framework consists of several parts:

The framework ensures that the layout model is received from the server, interacts with the backend via the Action API, and embeds custom components into the widget hierarchy processing pipeline. Duit is flexible and extensible, which allows it to create rich UI dynamically.

Core features #

  • Initial connection to the server and receiving a layout
  • Support for different network protocols (http, websocket)
  • Pointed widget state update (updating only those widgets for which the server returned an "update")
  • Actions API. A special protocol that allows the server to specify dependencies for an action associated with a widget.
  • Ability to add your own custom widgets on the Flutter and backend side.

Usage example #

  1. Create DuitDriver instance.

It is responsible for displaying the UI, updating the state of widgets, and calling widget-related actions.

final driver = DUITDriver(
  "/layout1",
  transportOptions: HttpTransportOptions(
    defaultHeaders: {"Content-Type": "application/json"},
    baseUrl: "http://localhost:8999",
  ),
);
  1. Embed the DuitViewHost widget into your application in the build method.
DuitViewHost(
  context: context,
  driver: driver,
  placeholder: const CircularProgressIndicator(),
),

Future plans #

  • Expanding the types of events generated by the server
  • Expanding the widget collection
  • Implementation of new network protocols (gRPC)
  • Adding new adapters for the backend (Dart, C#, etc.)
  • Troubleshooting, updating documentation

Package info and documentation #

WIKI (work in progress)

License #

MIT

9
likes
0
pub points
41%
popularity

Publisher

verified publisherdev.duit.pro

Server driver UI framework for Flutter. Allows you to update your cool UI without updating the app!

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, http

More

Packages that depend on flutter_duit