Skip to content

Commit

Permalink
迁移3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
李卓原 committed May 12, 2023
1 parent ddf554e commit 481964d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 5.8.0
- mirage flutter 3.10

# 5.7.0
- merge #464

Expand Down
2 changes: 1 addition & 1 deletion example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ subprojects {
project.evaluationDependsOn(':app')
}

task clean(type: Delete) {
tasks.register("clean", Delete) {
delete rootProject.buildDir
}
4 changes: 2 additions & 2 deletions example/lib/src/home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
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:
Expand Down

0 comments on commit 481964d

Please sign in to comment.