device_preview library

Classes

Device
DevicePreview
Simulates how a child would render on different devices than the current one. [...]
DevicePreviewData
DevicePreviewState
DeviceProvider
Devices
DeviceScreenshot

Constants

iPhone8 → const Device
const Device.iOS(name: "iPhone 8", type: DeviceType.phone, frameBuilder: _phoneFrameWithoutNotch, landscape: const MediaQueryData(padding: EdgeInsets.zero, size: const Size(667, 375), device…
iPhoneXr → const Device
const Device.iOS(name: "iPhone XR", type: DeviceType.phone, portrait: const MediaQueryData(size: const Size(375, 812), padding: const EdgeInsets.only(top: 44.0, bottom: 34.0), devicePixelRat…
iPhoneXs → const Device
const Device.iOS(name: "iPhone XS", type: DeviceType.phone, portrait: const MediaQueryData(size: const Size(375, 812), padding: const EdgeInsets.only(top: 44.0, bottom: 34.0), devicePixelRat…

Properties

iosFreeform Device
final
iPadAir2 Device
final
iPadPro_129_2 Device
final
watch40mm Device
final

Enums

DeviceType

Typedefs

FrameWidgetBuilder(BuildContext context, Widget screen, Size screenSize, bool isRotated) Widget