FdcApp class

App/subtree-level settings scope for Flutter Data Components.

FdcApp is optional. Components that are not wrapped in it resolve FdcFormatSettings from the active Flutter locale through FdcDefaultFormatResolver, falling back to English-style technical defaults when FDC has no built-in preset for that locale.

formatSettings and translations remain authoritative when provided. theme provides the app-level visual theme for FDC components. exportStyle provides defaults for generated export formats. focus provides app-level focus traversal defaults for FDC forms/screens. Individual grids/editors may still override their own theme locally, and FdcFocusScope may override focus behavior for a subtree.

Inheritance

Constructors

FdcApp({Key? key, FdcFormatSettings? formatSettings, FdcFormatResolver formatResolver = const FdcDefaultFormatResolver(), FdcTranslations? translations, FdcTranslationResolver translationResolver = const FdcDefaultTranslationResolver(), FdcThemeData? theme, FdcExportStyle exportStyle = const FdcExportStyle(), FdcFocusOptions focus = const FdcFocusOptions(), required Widget child})
Creates a FdcApp.
const

Properties

child Widget
Child widget rendered by this configuration.
final
exportStyle FdcExportStyle
App/subtree-level defaults for generated export formats.
final
focus FdcFocusOptions
Focus behavior applied to descendant controls.
final
formatResolver FdcFormatResolver
Locale resolver used when formatSettings is not supplied.
final
formatSettings FdcFormatSettings?
Explicit format settings for descendant FDC controls.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
theme FdcThemeData?
FDC theme data applied to descendant controls.
final
translationResolver FdcTranslationResolver
Locale resolver used when translations is not supplied.
final
translations FdcTranslations?
Explicit translation bundle for descendant FDC controls.
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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

Static Methods

exportStyleOf(BuildContext context) FdcExportStyle
Returns the export style configured for the nearest FdcApp.
exportStyleOfNonListening(BuildContext context) FdcExportStyle
Returns the nearest export style without subscribing to updates.
formatsOf(BuildContext context) FdcFormatSettings
Resolves the effective format settings for this build context.
formatsOfNonListening(BuildContext context) FdcFormatSettings
Reads format settings without subscribing this element to inherited widget updates.
translationsOf(BuildContext context) FdcTranslations
Returns the translations configured for the nearest FdcApp, the Flutter Localizations tree, or English defaults.
translationsOfNonListening(BuildContext context) FdcTranslations
Reads translations without subscribing this element to inherited widget updates.