DigiaUIApp class

The main application wrapper for integrating Digia UI SDK into Flutter applications.

DigiaUIApp serves as the root widget that manages the lifecycle of the Digia UI system and provides a scope for analytics, messaging, and other core functionalities.

This widget handles:

  • Initialization and disposal of the Digia UI system
  • Global app state management
  • UI factory setup with custom resources
  • Analytics and message bus integration
  • Environment variable configuration
  • Providing Digia UI context to child widgets

Example usage:

DigiaUIApp(
  digiaUI: await DigiaUI.initialize(config),
  analytics: MyAnalyticsHandler(),
  messageBus: MyMessageBus(),
  icons: customIcons,
  environmentVariables: {'authToken': '1234567890'},
  builder: (context) => MaterialApp(
    home: DUIFactory().createInitialPage(),
  ),
)
Inheritance

Constructors

DigiaUIApp({Key? key, required DigiaUI digiaUI, MessageBus? messageBus, DUIAnalytics? analytics, ConfigProvider? pageConfigProvider, Map<String, IconData>? icons, Map<String, ImageProvider<Object>>? images, DUIFontFactory? fontFactory, Map<String, Object?>? environmentVariables, required Widget builder(BuildContext context)})
Creates a new DigiaUIApp with the specified configuration.
const

Properties

analytics DUIAnalytics?
Optional analytics handler for tracking user interactions and events
final
builder Widget Function(BuildContext context)
Builder function that creates the child widget tree with access to BuildContext
final
digiaUI DigiaUI
The initialized DigiaUI instance containing configuration and resources
final
environmentVariables Map<String, Object?>?
Environment variables to make available in expressions and configurations
final
fontFactory DUIFontFactory?
Custom font factory for creating text styles with specific fonts
final
hashCode int
The hash code for this object.
no setterinherited
icons Map<String, IconData>?
Custom icon mappings to override or extend default icons
final
images Map<String, ImageProvider<Object>>?
Custom image provider mappings for app-specific images
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
messageBus MessageBus?
Optional message bus for inter-component communication
final
pageConfigProvider → ConfigProvider?
Custom page configuration provider, defaults to built-in provider if not specified
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<DigiaUIApp>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited