device_frame_plus
1.5.0, released a year ago by an unverified publisher
Mockups and frames for common devices to preview and test Flutter apps.
WASM-ready
What it does
Provides simulated device frames (phones, tablets, laptops, desktop monitors) to wrap widgets inside. Includes support for custom device creation, simulated virtual keyboards, and matching device media queries.
AI-written summary of version 1.5.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to preview your app UI within simulated device frames.
- You need to test how your layout behaves on different screen sizes and platforms.
- You want to render a simulated virtual keyboard inside your test frames.
Skip it when
- You need a full interactive device preview environment with state inspection tools like DevicePreview.
- You are building a production user interface that requires real hardware controls.
Strengths
- Supports a wide variety of preset devices across iOS, Android, Windows, macOS, and Linux.
- Allows custom generic device creation using factories like DeviceInfo.genericPhone.
- Includes a simulated virtual keyboard widget.
Weaknesses
- Limited to visual device frames and basic simulated UI wrappers rather than complete system emulation.
- Does not include advanced built-in localization or multi-device scale controls compared to larger preview tools.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Simply wrap any widget in a DeviceFrame and pass a device model.
DeviceFrame(
device: Devices.ios.iPhone11,
isFrameVisible: true,
orientation: Orientation.portrait,
screen: Container(
color: Colors.blue,
child: Text('Hello'),
),
)Works with
Packages commonly used together with device_frame_plus: ones it builds on, ones built on it, and its own family.
- widgetbookBuilt on device_frame_plusA sandbox for building and testing Flutter widgets and screens in isolation.
- device_preview_plusBuilt on device_frame_plusSimulates how a Flutter app looks and behaves on various devices and configurations.
- storybook_toolkitBuilt on device_frame_plusFlutter widget showcase and isolated preview tool