SimpleScreenShot class

Inheritance

Constructors

SimpleScreenShot({List<DeviceIdentifier>? devices, bool useToggleDarkMode = false, void setLightMode(BuildContext) = DevicePreviewHelper.setLightMode, void setDarkMode(BuildContext) = DevicePreviewHelper.setDarkMode, void setLang(BuildContext, Locale lang) = DevicePreviewHelper.setLang, List<Locale>? lang, required List<ItemScreenMode> pages, required ScreenshotProcessor processor, void onEnd(BuildContext)?})

Properties

devices List<DeviceIdentifier>?
list of device(frame) to take screen to it, frames set using Devices class like taht Devices.android.samsungNote10Plus.identifier, Devices.ios.iPhone11ProMax.identifier,
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
lang List<Locale>?
list of Locale used to take screenshot for diffrent language
final
modes List<ItemScreenMode>
list of type ItemScreenMode repersents all mode page will be taken function to navigate to next screen label helps with naming the image in processor modes , used if you have nested like device frame , dark light mode before page
finalinherited
onEnd → (void Function(BuildContext)?)
finalinherited
pages List<ItemScreenMode>
list of ItemScreenMode , represnts all your page
final
processor ScreenshotProcessor
A screenshot that processes a screenshot and returns the result as a display message. you must use to save image or uploaded to internet ...
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
setDarkMode → void Function(BuildContext)
use if you have special function for settin modes, default Device_preview way
final
setLang → void Function(BuildContext, Locale lang)
pass a custon logic to change language
final
setLightMode → void Function(BuildContext)
use if you have special function for settin modes, default Device_preview way
final
useToggleDarkMode bool
true if you want to take screen for light and dark mode.
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
inherited
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}) 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

Static Methods

generateListItem({List<DeviceIdentifier>? devices, bool useToggleDarkMode = false, required void setLightMode(BuildContext), required void setDarkMode(BuildContext), required void setLang(BuildContext, Locale lang), List<Locale>? langs, required List<ItemScreenMode> pages}) List<ItemScreenMode>