device_frame 0.1.0 device_frame: ^0.1.0 copied to clipboard
Mockups for common devices.
device_frame #
Mockups for common devices.
Quickstart #
CupertinoDeviceFrame(
orientation: Orientation.portrait,
device: AndroidDevice.iPhoneXs,
child: Container(
child: Text('Hello iOS'),
),
),
AndroidDeviceFrame(
orientation: Orientation.portrait,
device: AndroidDevice.mediumPhone,
child: Container(
child: Text('Hello Android'),
),
),
Usage #
Change global theme #
DeviceFrameTheme(
style: DeviceFrameStyle.light(),
child: /* any frame child will have this style by default */
)
Change local style #
AndroidDeviceFrame(
style: DeviceFrameStyle.light(),
// ...
),