SentientScaffold class

A reactive Scaffold that adapts its layout properties based on the user's emotional state.

SentientScaffold functions as a drop-in replacement for Flutter's Scaffold but automatically adjusts properties like backgroundColor and the visibility of its components based on the active EmotionTheme provided by the AdaptationManager. It applies a predefined configuration from ScaffoldConfig to create a layout that feels stable, calm, or dynamic.

This widget supports custom overrides for its properties while preserving emotion-driven defaults for any unspecified values.

Example Usage

SentientScaffold(
  appBar: AppBar(title: SentientText('My App')),
  body: Center(child: SentientText('Content goes here')),
)
Inheritance

Constructors

SentientScaffold({Key? key, PreferredSizeWidget? appBar, Widget? body, Widget? floatingActionButton, Widget? bottomNavigationBar, Color? backgroundColor, bool? extendBodyBehindAppBar, ScaffoldConfig? configOverride})
Creates a new adaptive SentientScaffold.
const

Properties

appBar PreferredSizeWidget?
An optional app bar to display at the top of the scaffold.
final
backgroundColor Color?
An optional override for the scaffold's background color.
final
body Widget?
The primary content of the scaffold.
final
bottomNavigationBar Widget?
An optional navigation bar to display at the bottom of the scaffold.
final
configOverride ScaffoldConfig?
A custom configuration that overrides the emotion-based defaults.
final
extendBodyBehindAppBar bool?
Whether the body should extend behind the appBar.
final
floatingActionButton Widget?
An optional floating action button to display.
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

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