Showing
4 changed files
with
15 additions
and
15 deletions
| @@ -5,14 +5,5 @@ | @@ -5,14 +5,5 @@ | ||
| 5 | 5 | ||
| 6 | library flutter_screenutil; | 6 | library flutter_screenutil; |
| 7 | 7 | ||
| 8 | -import 'dart:math'; | ||
| 9 | -import 'dart:ui' as ui; | ||
| 10 | -import 'dart:ui'; | ||
| 11 | - | ||
| 12 | -import 'package:flutter/material.dart'; | ||
| 13 | - | ||
| 14 | -part 'screen_util.dart'; | ||
| 15 | - | ||
| 16 | -part 'screenutil_init.dart'; | ||
| 17 | - | ||
| 18 | -part 'size_extension.dart'; | 8 | +export 'src/screen_util.dart'; |
| 9 | +export 'src/screenutil_init.dart'; |
| @@ -2,7 +2,10 @@ | @@ -2,7 +2,10 @@ | ||
| 2 | * Created by 李卓原 on 2018/9/29. | 2 | * Created by 李卓原 on 2018/9/29. |
| 3 | * email: zhuoyuan93@gmail.com | 3 | * email: zhuoyuan93@gmail.com |
| 4 | */ | 4 | */ |
| 5 | -part of flutter_screenutil; | 5 | + |
| 6 | +import 'dart:math'; | ||
| 7 | + | ||
| 8 | +import 'package:flutter/material.dart'; | ||
| 6 | 9 | ||
| 7 | class ScreenUtil { | 10 | class ScreenUtil { |
| 8 | static const Size defaultSize = Size(360, 690); | 11 | static const Size defaultSize = Size(360, 690); |
| 1 | -part of flutter_screenutil; | 1 | +import 'package:flutter/cupertino.dart'; |
| 2 | + | ||
| 3 | +import 'screen_util.dart'; | ||
| 2 | 4 | ||
| 3 | class ScreenUtilInit extends StatelessWidget { | 5 | class ScreenUtilInit extends StatelessWidget { |
| 4 | /// A helper widget that initializes [ScreenUtil] | 6 | /// A helper widget that initializes [ScreenUtil] |
| 5 | - ScreenUtilInit({ | 7 | + const ScreenUtilInit({ |
| 6 | required this.builder, | 8 | required this.builder, |
| 7 | this.designSize = ScreenUtil.defaultSize, | 9 | this.designSize = ScreenUtil.defaultSize, |
| 8 | this.splitScreenMode = false, | 10 | this.splitScreenMode = false, |
-
Please register or login to post a comment