📄️ The duit_kernel Package
The flutterduit library depends on the duitkernel package. It contains fundamental interfaces and classes that standardize the implementation of core framework elements. This package addresses several critical challenges:
📄️ Actions and Events
One crucial aspect of any application is processing user actions and responding accordingly in the user interface (UI).
📄️ Managing UI State
In Duit, managing UI state revolves around three core components: controlled widgets, actions, and events. Controlled widgets are a concept for externally controlling UI state by explicitly indicating which widgets can be modified.
📄️ Transport Layer
Duit enables the ability to request and receive the initial layout of screens/widgets, handle actions, publish them to the server, and receive events in response to executed actions. All these interactions occur through the transport layer, which implements mechanisms for transmitting data over the network or integrating with native applications.
📄️ DSL Libraries
JSON is an excellent format for describing structured data. However, directly using it to define entire screens or complex widgets is not ideal due to:
📄️ Environment variables
This page describes compile-time environment variables used across DUIT packages and how to enable/disable them in different workflows.