1 2 3 4 5 6 7 8 9 10 11 12 13 14
import 'package:device_preview/device_preview.dart'; import 'export.dart'; void main() async { WidgetsFlutterBinding.ensureInitialized(); runApp(DevicePreview( enabled: debugDisplay, tools: const [ ...DevicePreview.defaultTools, ], builder: (context) => const App(), )); }