ScreenView<TScreen extends Screen<Model>, TModelScreenConfiguration extends ModelScreenConfiguration, TController extends ScreenController<TModelScreenConfiguration>> class abstract base

Inheritance
Mixed-in types
  • AfterLayoutMixin<TScreen>

Constructors

ScreenView.new()

Properties

$children List<ChangeNotifier>
finalinherited
c ↔ TController
The current ontroller associated with this screen.
latefinal
context BuildContext
The location in the tree where this widget builds.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
mounted bool
Whether this State object is currently in a tree.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
widget → TScreen
The current configuration.
no setterinherited

Methods

activate() → void
Called when this object is reinserted into the tree after having been removed via deactivate.
inherited
afterFirstLayout(BuildContext context) FutureOr<void>
override
align(BuildContext context, Widget body, EdgeInsets sideInsets) Widget
Override to specify the alignment of the body within the layout. Ideal for implementing scroll views. The sideInsets are set to correspond with the dimensions of widgets returned by topSide, bottomSide, leftSide, and rightSide.
background(BuildContext context) Widget
Override to specify the background. This is rendered behind the body.
bindChild<T extends ChangeNotifier>(T child) → T
Binds the ChangeNotifier child to this (the parent) so that the child will be disposed when this is disposed.
inherited
body(BuildContext context) Widget
Activates for screen sizes that do not match the criteria for mobileLayout, horizontalMobileLayout, narrowLayout, or wideLayout. Override to customize the body for these sizes.
bottomSide(BuildContext context, double bottomInsets) Widget
Override to customize the bottom area of your screen.
build(BuildContext context) Widget
Do not override. This method invokes the necessary builders and organizes the screen layout based on the current device.
override
deactivate() → void
Called when this object is removed from the tree.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
didChangeDependencies() → void
Called when a dependency of this State object changes.
inherited
didUpdateWidget(covariant TScreen oldWidget) → void
Called whenever the widget configuration changes.
inherited
dispose() → void
Called when this object is removed from the tree permanently.
override
foreground(BuildContext context) Widget
Override to specify the foregound. This is rendered over the body.
horizontalMobileBody(BuildContext context) Widget
Activates for mobile device screen sizes ith a horizontal orientation. Override to customize the body for these sizes.
horizontalMobileLayout(BuildContext context, Widget body) Widget
Activates for mobile device screen sizes ith a horizontal orientation. Override to customize the layout for these sizes. The body includes the widget returned by horizontalMobileBody.
initState() → void
Called when this object is inserted into the tree.
override
layout(BuildContext context, Widget body) Widget
Activates for screen sizes that do not match the criteria for mobileLayout, horizontalMobileLayout, narrowLayout, or wideLayout. Override to customize these sizes. The body includes the widget returned by this.body.
leftSide(BuildContext context, double leftInsets) Widget
/ Override to customize the left area of your screen.
mobileBody(BuildContext context) Widget
Activates for mobile device screen sizes. Override to customize the body for these sizes.
mobileLayout(BuildContext context, Widget body) Widget
Activates for mobile device screen sizes. Override to customize the layout for these sizes. The body includes the widget returned by mobileLayout.
narrowBody(BuildContext context) Widget
Activates for non-mobile narrow screen sizes, such as a narrow desktop window or screen. Override to customize the body for these sizes.
narrowLayout(BuildContext context, Widget body) Widget
Activates for non-mobile narrow screen sizes, such as a narrow desktop window or screen. Override to customize the layout for these sizes. The body includes the widget returned by narrowBody.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
padding() EdgeInsets
Override to specify the padding for the body.
presentation(BuildContext context, Widget body, Widget background, Widget foreground) Widget
Override to further define how the main body, background and foreground are presented
reassemble() → void
Called whenever the application is reassembled during debugging, for example during hot reload.
inherited
rightSide(BuildContext context, double rightInsets) Widget
/ Override to customize the right area of your screen.
setState(VoidCallback fn) → void
Notify the framework that the internal state of this object has changed.
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
topSide(BuildContext context, double topInsets) Widget
Override to customize the top area of your screen.
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited
transition(BuildContext context, Widget? prevScreenBodyCapture, Widget currentScreenBody) Widget
Override to define how to transition from prevScreenBodyCapture to currentScreenBody.
wideBody(BuildContext context) Widget
Activates for non-mobile wide screen sizes, such as a wide desktop window or screen. Override to customize the body for these sizes.
wideLayout(BuildContext context, Widget body) Widget
Activates for non-mobile wide screen sizes, such as a wide desktop window or screen. Override to customize the layout for these sizes. The body includes the widget returned by wideBody.

Operators

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

Static Properties

bodyCapture Widget?
no setter

Static Methods

captureScreen(BuildContext context) Future<void>
Captures the current screen and stores it in bodyCapture.