device_preview_minus 1.4.0 copy "device_preview_minus: ^1.4.0" to clipboard
device_preview_minus: ^1.4.0 copied to clipboard

A temporary alternative to device_preview. (https://pub.dev/packages/device_preview)

example/main.dart

import 'package:flutter/material.dart';
import 'package:device_preview_minus/device_preview_minus.dart';

void main() {
  runApp(
    DevicePreview(
      builder: (context) => const MyApp(),
    ),
  );
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      locale: DevicePreview.locale(context),
      builder: DevicePreview.appBuilder,
      home: const HomePage(),
    );
  }
}

class HomePage extends StatelessWidget {
  const HomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: ListView(
        children: List.generate(
          100,
          (i) => ListTile(
            title: Text('Tile $i'),
            onTap: () {},
          ),
        ),
      ),
    );
  }
}
10
likes
130
points
1.23k
downloads

Publisher

verified publisherrubydog.jp

Weekly Downloads

A temporary alternative to device_preview. (https://pub.dev/packages/device_preview)

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

collection, flutter, flutter_localizations, freezed_annotation, json_annotation, provider, shared_preferences, web

More

Packages that depend on device_preview_minus