Skip to content
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions device_frame/assets/android_phone_android-16-9-aspect-ratio.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions device_frame/assets/android_tablet_android-10-inch.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions device_frame/assets/android_tablet_android-7-inch.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions device_frame/assets/ios_phone_iphone-5-5-inch.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions device_frame/assets/ios_phone_iphone-6-5-inch.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions device_frame/assets/ios_tablet_ipad-12-9-inch.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions device_frame/lib/src/devices.dart
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,24 @@ class IosDevices {
'ipad',
);

final iPhone5_5Inch = _find(
TargetPlatform.iOS,
DeviceType.phone,
'iphone-5-5-inch',
);

final iPhone6_5Inch = _find(
TargetPlatform.iOS,
DeviceType.phone,
'iphone-6-5-inch',
);

final iPad12_9Inch = _find(
TargetPlatform.iOS,
DeviceType.tablet,
'ipad-12-9-inch',
);

List<DeviceInfo> get all => [
iPadMini,
iPadPro129,
Expand All @@ -150,6 +168,9 @@ class IosDevices {
iPhone11,
iPhone11Pro,
iPhone11ProMax,
iPhone5_5Inch,
iPhone6_5Inch,
iPad12_9Inch
];
}

Expand Down Expand Up @@ -205,6 +226,24 @@ class AndroidDevices {
'nexus9',
);

final android16_9AspectRatio = _find(
TargetPlatform.android,
DeviceType.phone,
'android-16-9-aspect-ratio',
);

final android7Inch = _find(
TargetPlatform.android,
DeviceType.tablet,
'android-7-inch',
);

final android10Inch = _find(
TargetPlatform.android,
DeviceType.tablet,
'android-10-inch',
);

List<DeviceInfo> get all => [
small,
medium,
Expand All @@ -214,6 +253,9 @@ class AndroidDevices {
samsungS20,
samsungNote10Plus,
nexus9,
android16_9AspectRatio,
android7Inch,
android10Inch
];
}

Expand Down
Loading