李卓原

迁移3.10

# 5.8.0
- mirage flutter 3.10
# 5.7.0
- merge #464
... ...
... ... @@ -26,6 +26,6 @@ subprojects {
project.evaluationDependsOn(':app')
}
task clean(type: Delete) {
tasks.register("clean", Delete) {
delete rootProject.buildDir
}
... ...
... ... @@ -5,7 +5,7 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
class HomePageScaffold extends StatelessWidget {
const HomePageScaffold({Key? key, this.title = ''}) : super(key: key);
void printScreenInformation() {
void printScreenInformation(BuildContext context) {
print('Device Size:${Size(1.sw, 1.sh)}');
print('Device pixel density:${ScreenUtil().pixelRatio}');
print('Bottom safe zone distance dp:${ScreenUtil().bottomBarHeight}dp');
... ... @@ -21,7 +21,7 @@ class HomePageScaffold extends StatelessWidget {
@override
Widget build(BuildContext context) {
printScreenInformation();
printScreenInformation(context);
/// Uncomment if you wanna force current widget to be rebuilt with updated values
/// Must use it if you use the second method, or if you use ScreenUtilInit's child.
... ...
name: flutter_screenutil
description: A flutter plugin for adapting screen and font size.Guaranteed to look good on different models
version: 5.7.0
version: 5.8.0
homepage: https://github.com/OpenFlutter/flutter_screenutil
environment:
... ...