ContainerView class
{@image } A container that sets the size for the screen, enables the exit bar at the top of the screen when enabled in the safety plan, and shows notifications / prompts to the user. Think of this view as the 'glue' that holds Aureus together.
ALL VIEWS IN AN AUREUS RESOURCE SHOULD BE A CONTAINER VIEW. If you do not use ContainerView, you will not be able to access the NotificationObserver or some built-in Safety Plan features.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ContainerView
Constructors
- ContainerView({required decorationPriority decorationVariant, required ContainerWrapperElement builder, bool? takesFullWidth = false, bool? hasBackgroundImage = true, bool? showQuickActionBar = true, bool? hasExitBar = false, bool? shouldManageNotifications = true})
-
const
Properties
- builder → ContainerWrapperElement
-
A ContainerWrapperElement that builds the 'wrapper' around your elements
to fit into this ContainerView. Think of it as your elements being wrapped
in one blanket for warmth and snuggliness, and another for the graphics and pizazz.
final
- decorationVariant → decorationPriority
-
Determines if primary landing page (fluid decoration),
or just secondary page (blur decoration).
Describes what 'priority' is assigned to a UI component. These
priorities also describe interactivity, and importance.
final
- hasBackgroundImage → bool?
-
Whether or not the view should have a background image
final
- hasExitBar → bool?
-
Whether or not the view should have an exit bar.
This overrides Safety settings made in AureusInformation
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
- shouldManageNotifications → bool?
-
Whether or not the view should manage recieving notifications.
This should only be done if the ContainerView is the top most root
of the view controller hierarchy. If there is a higher widget in the hierarchy
(like a navigation bar), then the HIGHEST parent should implement NotificationOverlayView.
final
- showQuickActionBar → bool?
-
Whether or not the view should show a quick action bar
final
- takesFullWidth → bool?
-
Whether or not the view should take the full width of a screen
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _ContainerViewState -
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}) → 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