upgrade flutter screenutil

master
张萌 3 years ago
parent cdcbc40c7d
commit 0f31d04c76

@ -90,14 +90,14 @@ class MyApp extends StatelessWidget {
}, },
child: ScreenUtilInit( child: ScreenUtilInit(
designSize: Size(750, 1334), designSize: Size(750, 1334),
builder: () { builder: (context,child) {
return GetMaterialApp( return GetMaterialApp(
debugShowCheckedModeBanner: false, debugShowCheckedModeBanner: false,
title: '小蜜蜂管家', title: '小蜜蜂管家',
theme: AppTheme.theme, theme: AppTheme.theme,
home: SplashPage(), home: SplashPage(),
builder: (context, widget) { builder: (context, widget) {
ScreenUtil.setContext(context); // ScreenUtil.setContext(context);
return MediaQuery( return MediaQuery(
//Setting font does not change with system font size //Setting font does not change with system font size
data: data:

@ -18,8 +18,6 @@ import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart'; import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart'; import 'package:velocity_x/velocity_x.dart';
import '../../ui/home/messages/message.dart';
import 'application_util.dart'; import 'application_util.dart';
import 'home_swiper.dart'; import 'home_swiper.dart';

@ -430,7 +430,7 @@ packages:
name: flutter_screenutil name: flutter_screenutil
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "5.3.1" version: "5.5.3+2"
flutter_test: flutter_test:
dependency: "direct dev" dependency: "direct dev"
description: flutter description: flutter

@ -16,7 +16,7 @@ dependencies:
intl: ^0.17.0 intl: ^0.17.0
cupertino_icons: ^1.0.2 cupertino_icons: ^1.0.2
#屏幕适配 #屏幕适配
flutter_screenutil: ^5.3.1 flutter_screenutil: ^5.5.3+2
#状态管理 #状态管理
provider: ^5.0.0 provider: ^5.0.0
#路由 #路由

Loading…
Cancel
Save