device_preview 0.5.0-prerelease.4 copy "device_preview: ^0.5.0-prerelease.4" to clipboard
device_preview: ^0.5.0-prerelease.4 copied to clipboard

outdated

Approximate how your app looks and performs on another device.

example/lib/main.dart

import 'package:device_preview/device_preview.dart';
import 'package:device_preview_example/gallery/l10n/gallery_localizations.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';

import 'gallery/studies/starter/app.dart';

void main() {
  debugDefaultTargetPlatformOverride = TargetPlatform.fuchsia;

  runApp(DevicePreview(
    availableLocales: GalleryLocalizations.supportedLocales,
    builder: (context) => StarterApp(),
  ));
}