upgrade flutter screenutil

master
张萌 3 years ago
parent cdcbc40c7d
commit 0f31d04c76

@ -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:

@ -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';

@ -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

@ -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
#路由

Loading…
Cancel
Save