AppDimensApp class

EN: Wrap your app once:

AppDimensApp(
  child: MaterialApp(home: MyPage()),
)

Every metrics change (rotation, resize, split-screen, font-scale) is observed and republished into AppDimensScope, so 16.sdp-style getters always read the live window — the Flutter analog of the KMP event-driven config watcher.

PT: Envolva seu app uma vez. Cada mudança de métricas (rotação, redimensionamento, split-screen, escala de fonte) é observada e republicada no AppDimensScope, de modo que getters como 16.sdp leiam sempre a janela atual — o análogo Flutter do watcher de configuração orientado a eventos do KMP.

Inheritance

Constructors

AppDimensApp({Key? key, AppDimensConfig config = const AppDimensConfig(), required Widget child})
const

Properties

child → Widget
final
config → AppDimensConfig
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

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<AppDimensApp>
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