flutter_device_emulator library

A Flutter package that provides a device emulator widget for testing and previewing applications across different device types, orientations, themes, and text directions.

This library exports the main DeviceEmulator widget which allows developers to:

  • Preview their app on different device frames (iOS, Android, etc.)
  • Toggle between light and dark themes
  • Switch between portrait and landscape orientations
  • Test right-to-left (RTL) text direction support
  • Capture screenshots of the emulated device

Usage

import 'package:flutter_device_emulator/flutter_device_emulator.dart';

DeviceEmulator(
  builder: (context) => MyApp(),
  enableThemeToggle: true,
  enableOrientationToggle: true,
  enableLanguageToggle: true,
)

Classes

DeviceEmulator
A widget that provides a device emulator for testing and previewing Flutter applications.