From 18ec2cf74b1ee41d16258633a03e183fd2e9c1a4 Mon Sep 17 00:00:00 2001 From: Heeyun Lee Date: Mon, 17 Oct 2022 11:06:44 -0400 Subject: [PATCH 1/2] Revert "fill in 4th gen stats" This reverts commit 0c1b94a4f8120955df3ce52b1bb9778a282ca586. --- .../lib/src/devices/ios/iphone_12/device.dart | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/device_frame/lib/src/devices/ios/iphone_12/device.dart b/device_frame/lib/src/devices/ios/iphone_12/device.dart index 03386ac3..899263c2 100644 --- a/device_frame/lib/src/devices/ios/iphone_12/device.dart +++ b/device_frame/lib/src/devices/ios/iphone_12/device.dart @@ -13,20 +13,20 @@ final info = DeviceInfo( 'iphone-12', ), name: 'iPhone 12', - pixelRatio: 2.0, + pixelRatio: 3.0, frameSize: const Size(873.0, 1771.0), - screenSize: const Size(1024.0, 1366.0), + screenSize: const Size(390.0, 844.0), safeAreas: const EdgeInsets.only( left: 0.0, - top: 24.0, + top: 44.0, right: 0.0, - bottom: 20.0, + bottom: 34.0, ), rotatedSafeAreas: const EdgeInsets.only( - left: 0.0, - top: 24.0, - right: 0.0, - bottom: 20.0, + left: 44.0, + top: 0.0, + right: 44.0, + bottom: 21.0, ), framePainter: const _FramePainter(), screenPath: _screenPath, From 8edfc146d830bdb0883e434a093c68b7b22431b2 Mon Sep 17 00:00:00 2001 From: Heeyun Lee Date: Mon, 17 Oct 2022 11:27:25 -0400 Subject: [PATCH 2/2] update changelog and version for device_frame package --- device_frame/CHANGELOG.md | 3 +++ device_frame/pubspec.yaml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/device_frame/CHANGELOG.md b/device_frame/CHANGELOG.md index f2ded160..63d22ff8 100644 --- a/device_frame/CHANGELOG.md +++ b/device_frame/CHANGELOG.md @@ -1,3 +1,6 @@ +## 1.1.1 +* Fixes iPhone 12 size and safe area issue + ## 1.1.0 * Updated freezed dependency. diff --git a/device_frame/pubspec.yaml b/device_frame/pubspec.yaml index 971af2f5..90be604a 100644 --- a/device_frame/pubspec.yaml +++ b/device_frame/pubspec.yaml @@ -1,6 +1,6 @@ name: device_frame description: Mockups for common devices. -version: 1.1.0 +version: 1.1.1 homepage: https://github.com/aloisdeniel/flutter_device_preview/device_frame environment: