RetroDesktopPreview class

One page's isolated preview: the same host, strip, route and sheet the app gives it live, without the router.

RetroDesktopPreview(child: const Text('A page preview'))
Inheritance

Constructors

RetroDesktopPreview({Key? key, required Widget child, RetroDesktopThemeData? light, RetroDesktopThemeData? dark, RetroDesktopPresentation presentation = RetroDesktopPresentation.root, List<RetroDesktopTab> tabs = const [], int activeIndex = 0, ShellAction? action, String? brand, bool drawer = false, PreviewPlatform platform = PreviewPlatform.android, Brightness brightness = Brightness.light})
Creates a RetroDesktopPreview.
const

Properties

action → ShellAction?
An optional action shown beside the content.
final
activeIndex → int
The index of the active item.
final
brand → String?
The brand content shown in the desktop chrome.
final
brightness → Brightness
The requested light or dark appearance.
final
child → Widget
The widget displayed inside this part.
final
dark → RetroDesktopThemeData?
The dark appearance.
final
drawer → bool
Whether the sheet stands only as tall as its content, rather than most of the screen.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
light → RetroDesktopThemeData?
The light appearance.
final
platform → PreviewPlatform
An optional platform override for interaction conventions.
final
presentation → RetroDesktopPresentation
The requested shell or page presentation.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tabs → List<RetroDesktopTab>
The tabs in reading order.
final

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.
override
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