device_preview_plus 2.0.0 device_preview_plus: ^2.0.0 copied to clipboard
Approximate how your Flutter app looks and performs on another device
import 'package:device_preview_plus/device_preview_plus.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(),
),
);
}