OpsShell class

OpsShell

Widget that helps design responsive screens.

For Small screens child of OpsShell will look normal, like nothing has wrapped it, but this widget will show responsive similar look as small screen of your app while being creative on large screens.

Inheritance

Constructors

OpsShell({Key? key, required Widget child, double? height, double? width, double radius = 30, double elevation = 20, AlignmentGeometry? alignment, Decoration? backgroundDecoration, Decoration? decoration, Color? color, Duration animationDuration = kThemeChangeDuration, bool borderOnForeground = true, Clip clipBehavior = Clip.none, Color? shadowColor, ShapeBorder? shape, Color? surfaceTintColor, TextStyle? textStyle, MaterialType type = MaterialType.canvas})
The kind of material to show (e.g., card or canvas). This affects the shape of the widget, the roundness of its corners if the shape is rectangular, and the default color.
const

Properties

alignment AlignmentGeometry?
Alignment of child Note: this value will only reflect in large screen
final
animationDuration Duration
Defines the duration of animated changes for shape, elevation, shadowColor, surfaceTintColor and the elevation overlay if it is applied.
final
backgroundDecoration Decoration?
Add decoration to the background of screen area except child,
final
borderOnForeground bool
Whether to paint the shape border in front of the child.
final
child Widget
Child that will show as main content of the screen
final
clipBehavior Clip
The content will be clipped (or not) according to this option.
final
color Color?
Color of child, Note: this value will only reflect in large screen
final
decoration Decoration?
Decoration of child, Note: this value will only reflect in large screen
final
elevation double
Elevation of child, Note: this value will only reflect in large screen
final
hashCode int
The hash code for this object.
no setterinherited
height double?
Height of child, Note: this value will only reflect in large screen
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
radius double
Border radius for child, Note: this value will only reflect in large screen
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadowColor Color?
The color to paint the shadow below the material.
final
shape ShapeBorder?
Defines the material's shape as well its shadow.
final
surfaceTintColor Color?
The color of the surface tint overlay applied to the material color to indicate elevation.
final
textStyle TextStyle?
The typographical style to use for text within this material.
final
type MaterialType
final
width double?
Width of child, Note: this value will only reflect in large screen
final

Methods

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