diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml
new file mode 100644
index 0000000000000000000000000000000000000000..30aa626c23142d59e94cc76327172301f159b618
--- /dev/null
+++ b/.idea/codeStyles/Project.xml
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/encodings.xml b/.idea/encodings.xml
new file mode 100644
index 0000000000000000000000000000000000000000..97626ba45445dc9f3afa66e6a149914dc39e3df6
--- /dev/null
+++ b/.idea/encodings.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Dart_Packages.xml b/.idea/libraries/Dart_Packages.xml
new file mode 100644
index 0000000000000000000000000000000000000000..6ecdc03ab3c912bee5d5212720c7810badf47d06
--- /dev/null
+++ b/.idea/libraries/Dart_Packages.xml
@@ -0,0 +1,444 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Dart_SDK.xml b/.idea/libraries/Dart_SDK.xml
new file mode 100644
index 0000000000000000000000000000000000000000..0de71f6b39af6852b72032c4274cd488e159991d
--- /dev/null
+++ b/.idea/libraries/Dart_SDK.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Flutter_Plugins.xml b/.idea/libraries/Flutter_Plugins.xml
new file mode 100644
index 0000000000000000000000000000000000000000..b0f697111e2fc0906ecb29d124d8357aab6c56f9
--- /dev/null
+++ b/.idea/libraries/Flutter_Plugins.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000000000000000000000000000000000000..9c676f7c69fb6d23b589f1e8e866e3647e3fb3bb
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000000000000000000000000000000000000..f0fc49b4bd4f426109165a501827de78603faac5
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/screenutil.iml b/.idea/screenutil.iml
new file mode 100644
index 0000000000000000000000000000000000000000..ae9af9751ced45d14178fc120a7c81912ab7bd32
--- /dev/null
+++ b/.idea/screenutil.iml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000000000000000000000000000000000000..35eb1ddfbbc029bcab630581847471d7f238ec53
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
new file mode 100644
index 0000000000000000000000000000000000000000..9df58f3c28224d5f6061a4da9702fdb482a73986
--- /dev/null
+++ b/.idea/workspace.xml
@@ -0,0 +1,266 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1537725879111
+
+
+ 1537725879111
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1.8
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ScreenUtil.dart b/lib/flutter_screenutil.dart
similarity index 65%
rename from ScreenUtil.dart
rename to lib/flutter_screenutil.dart
index 7acfbba3394c1bf2cf3f9959ff73b176d391df61..305bff7307f361312a9ddb878181ed0a3a3f913c 100644
--- a/ScreenUtil.dart
+++ b/lib/flutter_screenutil.dart
@@ -1,55 +1,62 @@
-/*
- * Created by 李卓原 on 2018/9/20.
- * email: zhuoyuan93@gmail.com
- * 设计稿设备尺寸 1080 * 1920 px
- */
-
-import 'dart:ui';
-
-class ScreenUtil {
- static ScreenUtil instance;
-
- //设计稿的设备尺寸修改 (请修改成你的设计稿的尺寸)
- static const designWidth = 1080;
- static const designHeight = 1920;
-
- //设备的像素密度
- static double pixelRatio = window.devicePixelRatio;
-
- //当前设备宽度 px
- static double screenWidth = window.physicalSize.width;
-
- //当前设备高度 px
- static double screenHeight = window.physicalSize.height;
-
- //状态栏高度 刘海屏会更高
- static double StatusBarHeight = window.padding.top;
-
- //底部安全区距离
- static double BottomBarHeight = window.padding.bottom;
-
- //相对于设计稿放大的倍数
- var scaleWidth = screenWidth / designWidth / pixelRatio;
- var scaleHeight = screenHeight / designHeight / pixelRatio;
-
- static ScreenUtil getInstance() {
- if (instance == null) {
- instance = new ScreenUtil();
- }
- return instance;
- }
-
- /**
- * 根据设计稿的设备宽度适配
- * 高度也根据这个来做适配可以保证不变形
- */
- setWidth(int width) => width * scaleWidth;
-
- /**
- * 根据设计稿的设备高度适配
- * 当发现设计稿中的一屏显示的与当前样式效果不符合时,
- * 或者形状有差异时,高度适配建议使用此方法
- * 高度适配主要针对想根据设计稿的一屏展示一样的效果
- */
- setHeight(int height) => height * scaleHeight;
-}
+/*
+ * Created by 李卓原 on 2018/9/24.
+ * email: zhuoyuan93@gmail.com
+ * 设计稿设备尺寸默认为 1080 * 1920 px
+ */
+
+import 'dart:ui';
+
+class ScreenUtil {
+ //设计稿的设备尺寸修改 (请修改成你的设计稿的尺寸)
+ int designWidth;
+ int designHeight;
+ static ScreenUtil instance;
+
+ ScreenUtil({int width, int height}) {
+ designWidth = width;
+ designHeight = height;
+ }
+
+ static ScreenUtil getInstance() {
+ if (instance == null) {
+ instance = new ScreenUtil(width: 1080, height: 1920);
+ }
+ return instance;
+ }
+
+ //设备的像素密度
+ static double pixelRatio = window.devicePixelRatio;
+
+ //当前设备宽度 px
+ static double screenWidth = window.physicalSize.width;
+
+ //当前设备高度 px
+ static double screenHeight = window.physicalSize.height;
+
+ //状态栏高度 刘海屏会更高
+ static double statusBarHeight = window.padding.top;
+
+ //底部安全区距离
+ static double bottomBarHeight = window.padding.bottom;
+
+ //相对于设计稿放大的倍数
+ double get scaleWidth =>
+ screenWidth / ScreenUtil.getInstance().designWidth / pixelRatio;
+
+ double get scaleHeight =>
+ screenHeight / ScreenUtil.getInstance().designHeight / pixelRatio;
+
+ /**
+ * 根据设计稿的设备宽度适配
+ * 高度也根据这个来做适配可以保证不变形
+ */
+ setWidth(int width) => width * scaleWidth;
+
+ /**
+ * 根据设计稿的设备高度适配
+ * 当发现设计稿中的一屏显示的与当前样式效果不符合时,
+ * 或者形状有差异时,高度适配建议使用此方法
+ * 高度适配主要针对想根据设计稿的一屏展示一样的效果
+ */
+ setHeight(int height) => height * scaleHeight;
+}