device_preview_community 1.0.3 device_preview_community: ^1.0.3 copied to clipboard
Approximate how your Flutter app looks and performs on another device.
import 'package:device_preview_community/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: [
...DevicePreview.defaultTools,
const CustomPlugin(),
],
builder: (context) => const BasicApp(),
),
);
}