device_preview 0.5.0-prerelease.7 copy "device_preview: ^0.5.0-prerelease.7" to clipboard
device_preview: ^0.5.0-prerelease.7 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(Row(
    textDirection: TextDirection.ltr,
    crossAxisAlignment: CrossAxisAlignment.stretch,
    children: [
      /*Expanded(
        child: Container(color: Colors.red),
      ),*/
      Expanded(
        child: DevicePreview(
          availableLocales: GalleryLocalizations.supportedLocales,
          builder: (context) => StarterApp(),
        ),
      ),
    ],
  ));
}