device_preview library Null safety

Classes

AndroidDevices
A set of Android devices.
CustomDeviceInfoData
Info about a device and its frame.
DeviceFrame
Simulate a physical device and embedding a virtual screen into it. [...]
DeviceFrameStyle
The device frame style only allows to update the keyboardStyle for now. [...]
DeviceFrameTheme
The theme gives a style to all its descentant device frames. [...]
DeviceIdentifier
A unique identifier that represents a device. [...]
DeviceInfo
Info about a device and its frame.
DeviceKeyboardStyle
DevicePreview
Simulates how the result of builder would render on different devices. [...]
DevicePreviewButtonsVisibilityStyleData
DevicePreviewData
A DevicePreview configuration snapshot that can be serialized to be persisted between sessions.
DevicePreviewSettingsData
Settings of device preview itself (tool bar position, background style).
DevicePreviewState
Represents the current state of the device preview.
DevicePreviewStorage
A storage for device preview user's preferences.
DevicePreviewStore
The store is a container for the current state of the device preview. [...]
DevicePreviewStyle
DevicePreviewTheme
DevicePreviewToolBarSpacingData
DevicePreviewToolBarStyle
DevicePreviewToolBarTextStyleData
Devices
A list of common device specifications sorted by target platform.
DeviceScreenshot
A screenshot from a device.
FileDevicePreviewStorage
A storage that saves device preview user preferences into a single file as a json content.
IosDevices
A set of iOS devices.
LinuxDevices
MacOsDevices
A set of macOS devices.
NamedLocale
A locale that has a display name.
NoDevicePreviewStorage
A storage that keep preferences only in memory : they are reset on each fresh start of the app.
PreferencesDevicePreviewStorage
A storage that keeps all preferences stored as json in a single preference entry with the preferenceKey key. [...]
VirtualKeyboard
Display a simulated on screen keyboard at the bottom of a child widget. [...]
WindowsDevices

Extensions

DeviceInfoExtension
DevicePreviewStateHelperExtensions
A set of extension to triggers updates of the state.

Constants

defaultAvailableLocales → const List<NamedLocale>
A set of many named locales.
<NamedLocale>[NamedLocale('af', 'Afrikaans'), NamedLocale('af_NA', 'Afrikaans (Namibia)'), NamedLocale('af_ZA', 'Afrikaans (South Africa)'), Named…

Functions

basicLocaleListResolution(List<Locale>? preferredLocales, Iterable<Locale> supportedLocales) Locale

Enums

DevicePreviewBackgroundThemeData
DevicePreviewToolBarPosition
DevicePreviewToolBarPositionData
DevicePreviewToolBarThemeData
DeviceType
A device form factor.