device_preview 1.2.0 copy "device_preview: ^1.2.0" to clipboard
device_preview: ^1.2.0 copied to clipboard

Approximate how your Flutter app looks and performs on another device.

example/lib/main.dart

import 'package:device_preview/device_preview.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

import 'basic.dart';
import 'custom_plugin.dart';

void main() {
  runApp(
    DevicePreview(
      enabled: true,
      tools: const [
        ...DevicePreview.defaultTools,
        CustomPlugin(),
      ],
      builder: (context) => const BasicApp(),
    ),
  );
}
4.03k
likes
130
points
146k
downloads

Publisher

verified publisheraloisdeniel.com

Weekly Downloads

Approximate how your Flutter app looks and performs on another device.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

collection, device_frame, flutter, flutter_localizations, freezed_annotation, json_annotation, provider, shared_preferences

More

Packages that depend on device_preview