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

Corrects the iPhone 12 screen size and safe area #204

Open
wants to merge 2 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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions device_frame/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 1.1.1
* Fixes iPhone 12 size and safe area issue

## 1.1.0

* Updated freezed dependency.
Expand Down
16 changes: 8 additions & 8 deletions device_frame/lib/src/devices/ios/iphone_12/device.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion device_frame/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down