Skip to main content

multi_device_preview 1.1.0 copy "multi_device_preview: ^1.1.0" to clipboard
multi_device_preview: ^1.1.0 copied to clipboard

Run a Flutter app on multiple device sizes and text scales side by side in a single macOS window, and mirror input from one device to the others.

example/lib/main.dart

import 'package:multi_device_preview/multi_device_preview.dart';

import 'app.dart';

void main() {
  runMultiDevicePreview(
    devices: const [
      PreviewDevice(preset: DevicePresets.iPhone17),
      PreviewDevice(preset: DevicePresets.iPhoneSe3),
      PreviewDevice(preset: DevicePresets.iPhoneSe3, textScale: 1.5),
      PreviewDevice(preset: DevicePresets.pixel9),
    ],
    appBuilder: (context, slot) => const ExampleApp(),
  );
}
0
likes
160
points
--
downloads
screenshot

Documentation

API reference

Publisher

verified publisherk9i.app

Weekly Downloads

Run a Flutter app on multiple device sizes and text scales side by side in a single macOS window, and mirror input from one device to the others.

Repository (GitHub)
View/report issues

Topics

#device-preview #testing #layout #responsive

License

MIT (license)

Dependencies

args, device_preview, flutter, path, yaml, yaml_edit

More

Packages that depend on multi_device_preview