import 'package:device_preview/device_preview.dart'; import 'export.dart'; void main() async { WidgetsFlutterBinding.ensureInitialized(); runApp(DevicePreview( enabled: true, tools: const [ ...DevicePreview.defaultTools, ], builder: (context) => const App(), )); }