diff --git a/lib/main.dart b/lib/main.dart index 734b975..a042e05 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -90,14 +90,14 @@ class MyApp extends StatelessWidget { }, child: ScreenUtilInit( designSize: Size(750, 1334), - builder: () { + builder: (context,child) { return GetMaterialApp( debugShowCheckedModeBanner: false, title: '小蜜蜂管家', theme: AppTheme.theme, home: SplashPage(), builder: (context, widget) { - ScreenUtil.setContext(context); + // ScreenUtil.setContext(context); return MediaQuery( //Setting font does not change with system font size data: diff --git a/lib/new_ui/new_home/new_home_page.dart b/lib/new_ui/new_home/new_home_page.dart index 007ae15..864e945 100644 --- a/lib/new_ui/new_home/new_home_page.dart +++ b/lib/new_ui/new_home/new_home_page.dart @@ -18,8 +18,6 @@ import 'package:flutter_easyrefresh/easy_refresh.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:get/get.dart'; import 'package:velocity_x/velocity_x.dart'; - -import '../../ui/home/messages/message.dart'; import 'application_util.dart'; import 'home_swiper.dart'; diff --git a/pubspec.lock b/pubspec.lock index 7036f2a..b835b96 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -430,7 +430,7 @@ packages: name: flutter_screenutil url: "https://pub.dartlang.org" source: hosted - version: "5.3.1" + version: "5.5.3+2" flutter_test: dependency: "direct dev" description: flutter diff --git a/pubspec.yaml b/pubspec.yaml index 23446fd..f8fe6b5 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ dependencies: intl: ^0.17.0 cupertino_icons: ^1.0.2 #屏幕适配 - flutter_screenutil: ^5.3.1 + flutter_screenutil: ^5.5.3+2 #状态管理 provider: ^5.0.0 #路由