Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding DeviceListView key #177

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
<img src="https://github.com/aloisdeniel/flutter_device_preview/raw/master/device_preview.gif" alt="Device Preview for Flutter" />
</p>

Disclaimer: This is a fork of the [Flutter Device Preview Repo](https://github.com/aloisdeniel/flutter_device_preview) that is currently not accepting pull requests.

## Main features

* Preview any device from any device
Expand Down Expand Up @@ -47,7 +49,7 @@ Wrap your app's root widget in a `DevicePreview` and make sure to :
> Make sure to override the previous properties as described. If not defined, `MediaQuery` won't be simulated for the selected device.

```dart
import 'package:device_preview/device_preview.dart';
import 'package:device_preview_community/device_preview.dart';

void main() => runApp(
DevicePreview(
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 1.0.2
* Fixing file name changes

## 1.0.1
* Reviving stale repo with fork

## 1.0.0-alpha.2

* Added extra padding for virtual keyboard.
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:device_frame/device_frame.dart';
import 'package:device_frame_community/device_frame_community.dart';
import 'package:flutter/material.dart';

Future<void> main() async {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ environment:
# the latest version available on pub.dev. To see which dependencies have newer
# versions available, run `flutter pub outdated`.
dependencies:
device_preview:
device_frame_community:
path: ../
flutter:
sdk: flutter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
library device_frame;
library device_frame_community;

export 'src/devices/devices.dart';
export 'src/frame.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import 'dart:ui';

import 'package:device_frame/src/info/info.dart';
import 'package:device_frame_community/src/info/info.dart';

import 'package:device_frame/src/devices/android/samsung_galaxy_s20/device.dart'
import 'package:device_frame_community/src/devices/android/samsung_galaxy_s20/device.dart'
as i_samsung_galaxy_s20;
import 'package:device_frame/src/devices/android/samsung_galaxy_note20/device.dart'
import 'package:device_frame_community/src/devices/android/samsung_galaxy_note20/device.dart'
as i_samsung_galaxy_note20;
import 'package:device_frame/src/devices/android/samsung_galaxy_note20_ultra/device.dart'
import 'package:device_frame_community/src/devices/android/samsung_galaxy_note20_ultra/device.dart'
as i_samsung_galaxy_note20_ultra;
import 'package:device_frame/src/devices/android/samsung_galaxy_a50/device.dart'
import 'package:device_frame_community/src/devices/android/samsung_galaxy_a50/device.dart'
as samsung_galaxy_a50;
import 'package:device_frame/src/devices/android/oneplus_8_pro/device.dart'
import 'package:device_frame_community/src/devices/android/oneplus_8_pro/device.dart'
as i_oneplus_8_pro;
import 'package:device_frame/src/devices/android/sony_xperia_1_ii/device.dart'
import 'package:device_frame_community/src/devices/android/sony_xperia_1_ii/device.dart'
as i_sony_xperia_1_ii;
import 'package:flutter/material.dart';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:device_frame/src/info/device_type.dart';
import 'package:device_frame/src/info/identifier.dart';
import 'package:device_frame/src/info/info.dart';
import 'package:device_frame_community/src/info/device_type.dart';
import 'package:device_frame_community/src/info/identifier.dart';
import 'package:device_frame_community/src/info/info.dart';
import 'package:flutter/material.dart';

part 'frame.g.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:device_frame/src/info/device_type.dart';
import 'package:device_frame/src/info/identifier.dart';
import 'package:device_frame/src/info/info.dart';
import 'package:device_frame_community/src/info/device_type.dart';
import 'package:device_frame_community/src/info/identifier.dart';
import 'package:device_frame_community/src/info/info.dart';
import 'package:flutter/material.dart';

part 'frame.g.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:device_frame/src/info/device_type.dart';
import 'package:device_frame/src/info/identifier.dart';
import 'package:device_frame/src/info/info.dart';
import 'package:device_frame_community/src/info/device_type.dart';
import 'package:device_frame_community/src/info/identifier.dart';
import 'package:device_frame_community/src/info/info.dart';
import 'package:flutter/material.dart';

part 'frame.g.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:device_frame/src/info/device_type.dart';
import 'package:device_frame/src/info/identifier.dart';
import 'package:device_frame/src/info/info.dart';
import 'package:device_frame_community/src/info/device_type.dart';
import 'package:device_frame_community/src/info/identifier.dart';
import 'package:device_frame_community/src/info/info.dart';
import 'package:flutter/material.dart';

part 'frame.g.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:device_frame/src/info/device_type.dart';
import 'package:device_frame/src/info/identifier.dart';
import 'package:device_frame/src/info/info.dart';
import 'package:device_frame_community/src/info/device_type.dart';
import 'package:device_frame_community/src/info/identifier.dart';
import 'package:device_frame_community/src/info/info.dart';
import 'package:flutter/material.dart';

part 'frame.g.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:device_frame/src/info/device_type.dart';
import 'package:device_frame/src/info/identifier.dart';
import 'package:device_frame/src/info/info.dart';
import 'package:device_frame_community/src/info/device_type.dart';
import 'package:device_frame_community/src/info/identifier.dart';
import 'package:device_frame_community/src/info/info.dart';
import 'package:flutter/material.dart';

part 'frame.g.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:device_frame/src/info/info.dart';
import 'package:device_frame_community/src/info/info.dart';

import 'android/devices.dart';
import 'ios/devices.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:device_frame/src/devices/generic/base/draw_extensions.dart';
import 'package:device_frame/src/info/device_type.dart';
import 'package:device_frame/src/info/identifier.dart';
import 'package:device_frame/src/info/info.dart';
import 'package:device_frame_community/src/devices/generic/base/draw_extensions.dart';
import 'package:device_frame_community/src/info/device_type.dart';
import 'package:device_frame_community/src/info/identifier.dart';
import 'package:device_frame_community/src/info/info.dart';
import 'package:flutter/material.dart';

part 'frame.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:device_frame/src/devices/generic/base/draw_extensions.dart';
import 'package:device_frame/src/info/device_type.dart';
import 'package:device_frame/src/info/identifier.dart';
import 'package:device_frame/src/info/info.dart';
import 'package:device_frame_community/src/devices/generic/base/draw_extensions.dart';
import 'package:device_frame_community/src/info/device_type.dart';
import 'package:device_frame_community/src/info/identifier.dart';
import 'package:device_frame_community/src/info/info.dart';
import 'package:flutter/material.dart';

part 'frame.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:device_frame/src/devices/generic/base/draw_extensions.dart';
import 'package:device_frame/src/info/device_type.dart';
import 'package:device_frame/src/info/identifier.dart';
import 'package:device_frame/src/info/info.dart';
import 'package:device_frame_community/src/devices/generic/base/draw_extensions.dart';
import 'package:device_frame_community/src/info/device_type.dart';
import 'package:device_frame_community/src/info/identifier.dart';
import 'package:device_frame_community/src/info/info.dart';
import 'package:flutter/material.dart';

part 'frame.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:device_frame/src/devices/generic/base/draw_extensions.dart';
import 'package:device_frame/src/info/device_type.dart';
import 'package:device_frame/src/info/identifier.dart';
import 'package:device_frame/src/info/info.dart';
import 'package:device_frame_community/src/devices/generic/base/draw_extensions.dart';
import 'package:device_frame_community/src/info/device_type.dart';
import 'package:device_frame_community/src/info/identifier.dart';
import 'package:device_frame_community/src/info/info.dart';
import 'package:flutter/material.dart';

part 'frame.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
import 'package:device_frame/src/info/info.dart';
import 'package:device_frame_community/src/info/info.dart';

import 'package:device_frame/src/devices/ios/iphone_12_mini/device.dart'
import 'package:device_frame_community/src/devices/ios/iphone_12_mini/device.dart'
as i_iphone_12_mini;
import 'package:device_frame/src/devices/ios/iphone_12/device.dart'
import 'package:device_frame_community/src/devices/ios/iphone_12/device.dart'
as i_iphone_12;
import 'package:device_frame/src/devices/ios/iphone_12_pro_max/device.dart'
import 'package:device_frame_community/src/devices/ios/iphone_12_pro_max/device.dart'
as i_iphone_12_pro_max;

import 'package:device_frame/src/devices/ios/iphone_13_mini/device.dart'
import 'package:device_frame_community/src/devices/ios/iphone_13_mini/device.dart'
as i_iphone_13_mini;
import 'package:device_frame/src/devices/ios/iphone_13/device.dart'
import 'package:device_frame_community/src/devices/ios/iphone_13/device.dart'
as i_iphone_13;
import 'package:device_frame/src/devices/ios/iphone_13_pro_max/device.dart'
import 'package:device_frame_community/src/devices/ios/iphone_13_pro_max/device.dart'
as i_iphone_13_pro_max;
import 'package:device_frame/src/devices/ios/iphone_se/device.dart'
import 'package:device_frame_community/src/devices/ios/iphone_se/device.dart'
as i_iphone_se;
import 'package:device_frame/src/devices/ios/ipad_air_4/device.dart'
import 'package:device_frame_community/src/devices/ios/ipad_air_4/device.dart'
as i_ipad_air_4;
import 'package:device_frame/src/devices/ios/ipad/device.dart' as i_ipad;
import 'package:device_frame/src/devices/ios/ipad_pro_11inches/device.dart'
import 'package:device_frame_community/src/devices/ios/ipad/device.dart' as i_ipad;
import 'package:device_frame_community/src/devices/ios/ipad_pro_11inches/device.dart'
as i_ipad_pro_11inches;

/// A set of iOS devices.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:device_frame/src/info/device_type.dart';
import 'package:device_frame/src/info/identifier.dart';
import 'package:device_frame/src/info/info.dart';
import 'package:device_frame_community/src/info/device_type.dart';
import 'package:device_frame_community/src/info/identifier.dart';
import 'package:device_frame_community/src/info/info.dart';
import 'package:flutter/material.dart';

part 'frame.g.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:device_frame/src/info/device_type.dart';
import 'package:device_frame/src/info/identifier.dart';
import 'package:device_frame/src/info/info.dart';
import 'package:device_frame_community/src/info/device_type.dart';
import 'package:device_frame_community/src/info/identifier.dart';
import 'package:device_frame_community/src/info/info.dart';
import 'package:flutter/material.dart';

part 'frame.g.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:device_frame/src/info/device_type.dart';
import 'package:device_frame/src/info/identifier.dart';
import 'package:device_frame/src/info/info.dart';
import 'package:device_frame_community/src/info/device_type.dart';
import 'package:device_frame_community/src/info/identifier.dart';
import 'package:device_frame_community/src/info/info.dart';
import 'package:flutter/material.dart';

part 'frame.g.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:device_frame/src/info/device_type.dart';
import 'package:device_frame/src/info/identifier.dart';
import 'package:device_frame/src/info/info.dart';
import 'package:device_frame_community/src/info/device_type.dart';
import 'package:device_frame_community/src/info/identifier.dart';
import 'package:device_frame_community/src/info/info.dart';
import 'package:flutter/material.dart';

part 'frame.g.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:device_frame/src/info/device_type.dart';
import 'package:device_frame/src/info/identifier.dart';
import 'package:device_frame/src/info/info.dart';
import 'package:device_frame_community/src/info/device_type.dart';
import 'package:device_frame_community/src/info/identifier.dart';
import 'package:device_frame_community/src/info/info.dart';
import 'package:flutter/material.dart';

part 'frame.g.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:device_frame/src/info/device_type.dart';
import 'package:device_frame/src/info/identifier.dart';
import 'package:device_frame/src/info/info.dart';
import 'package:device_frame_community/src/info/device_type.dart';
import 'package:device_frame_community/src/info/identifier.dart';
import 'package:device_frame_community/src/info/info.dart';
import 'package:flutter/material.dart';

part 'frame.g.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:device_frame/src/info/device_type.dart';
import 'package:device_frame/src/info/identifier.dart';
import 'package:device_frame/src/info/info.dart';
import 'package:device_frame_community/src/info/device_type.dart';
import 'package:device_frame_community/src/info/identifier.dart';
import 'package:device_frame_community/src/info/info.dart';
import 'package:flutter/material.dart';

part 'frame.g.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:device_frame/src/info/device_type.dart';
import 'package:device_frame/src/info/identifier.dart';
import 'package:device_frame/src/info/info.dart';
import 'package:device_frame_community/src/info/device_type.dart';
import 'package:device_frame_community/src/info/identifier.dart';
import 'package:device_frame_community/src/info/info.dart';
import 'package:flutter/material.dart';

part 'frame.g.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:device_frame/src/info/device_type.dart';
import 'package:device_frame/src/info/identifier.dart';
import 'package:device_frame/src/info/info.dart';
import 'package:device_frame_community/src/info/device_type.dart';
import 'package:device_frame_community/src/info/identifier.dart';
import 'package:device_frame_community/src/info/info.dart';
import 'package:flutter/material.dart';

part 'frame.g.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:device_frame/src/info/device_type.dart';
import 'package:device_frame/src/info/identifier.dart';
import 'package:device_frame/src/info/info.dart';
import 'package:device_frame_community/src/info/device_type.dart';
import 'package:device_frame_community/src/info/identifier.dart';
import 'package:device_frame_community/src/info/info.dart';
import 'package:flutter/material.dart';

part 'frame.g.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:device_frame/src/info/info.dart';
import 'package:device_frame_community/src/info/info.dart';
import 'package:flutter/widgets.dart';

/// A set of Linux devices.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:device_frame/src/info/info.dart';
import 'package:device_frame_community/src/info/info.dart';
import 'package:flutter/widgets.dart';
import 'package:device_frame/src/devices/macos/macbook_pro/device.dart'
import 'package:device_frame_community/src/devices/macos/macbook_pro/device.dart'
as i_macbook_pro;

/// A set of macOS devices.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import 'dart:ui' as ui;

import 'package:device_frame/src/info/device_type.dart';
import 'package:device_frame/src/info/identifier.dart';
import 'package:device_frame/src/info/info.dart';
import 'package:device_frame/src/devices/generic/base/draw_extensions.dart';
import 'package:device_frame_community/src/info/device_type.dart';
import 'package:device_frame_community/src/info/identifier.dart';
import 'package:device_frame_community/src/info/info.dart';
import 'package:device_frame_community/src/devices/generic/base/draw_extensions.dart';
import 'package:flutter/material.dart';

part 'frame.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:device_frame/src/info/info.dart';
import 'package:device_frame_community/src/info/info.dart';

import 'package:flutter/widgets.dart';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:device_frame/src/devices/generic/desktop_monitor/device.dart';
import 'package:device_frame/src/devices/generic/laptop/device.dart';
import 'package:device_frame/src/devices/generic/phone/device.dart';
import 'package:device_frame/src/devices/generic/tablet/device.dart';
import 'package:device_frame_community/src/devices/generic/desktop_monitor/device.dart';
import 'package:device_frame_community/src/devices/generic/laptop/device.dart';
import 'package:device_frame_community/src/devices/generic/phone/device.dart';
import 'package:device_frame_community/src/devices/generic/tablet/device.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:device_frame/device_frame.dart';
import 'package:device_frame_community/device_frame_community.dart';
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: device_frame
name: device_frame_community
description: Mockups for common devices.
version: 1.0.0
homepage: https://github.com/aloisdeniel/flutter_device_preview/device_frame
version: 1.0.2
homepage: https://github.com/the-mac/flutter_device_preview/device_frame_community

environment:
sdk: ">=2.12.0 <3.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'dart:ui';

import 'package:device_frame/device_frame.dart';
import 'package:device_frame_community/device_frame_community.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
Expand Down
Binary file removed device_preview/.DS_Store
Binary file not shown.
Loading