Skip to content

Commit 9f63be0

Browse files
author
李卓原
committed
v5.9.0
1 parent f4a329e commit 9f63be0

File tree

7 files changed

+30
-25
lines changed

7 files changed

+30
-25
lines changed

.github/workflows/actions.yml

+18-17
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
1-
name: Close inactive issues
1+
# .github/workflows/publish.yml
2+
name: Publish to pub.dev
3+
24
on:
3-
schedule:
4-
- cron: "30 1 * * *"
5+
push:
6+
tags:
7+
- 'v[0-9]+.[0-9]+.[0-9]+*' # tag pattern on pub.dev: 'v'
58

9+
# Publish using custom workflow
610
jobs:
7-
close-issues:
8-
runs-on: ubuntu-latest
11+
publish:
912
permissions:
10-
issues: write
11-
pull-requests: write
13+
id-token: write # Required for authentication using OIDC
14+
runs-on: ubuntu-latest
1215
steps:
13-
- uses: actions/stale@v3
14-
with:
15-
days-before-issue-stale: 30
16-
days-before-issue-close: 14
17-
stale-issue-label: "stale"
18-
stale-issue-message: "This issue is stale because it has been open for 30 days with no activity."
19-
close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale."
20-
days-before-pr-stale: -1
21-
days-before-pr-close: -1
22-
repo-token: ${{ secrets.GITHUB_TOKEN }}
16+
- uses: actions/checkout@v3
17+
- uses: dart-lang/setup-dart@v1
18+
- name: Install dependencies
19+
run: dart pub get
20+
# Here you can insert custom steps you need
21+
# - run: dart tool/generate-code.dart
22+
- name: Publish
23+
run: dart pub publish --force

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 5.9.1
2+
- merge pr #550 #555 #556
3+
- update readme
4+
15
# 5.9.0
26
- ScreenUtilInit won't rebuild the whole widget tree
37
- Add `fontSizeResolver` to specify how font size should be scaled

example/android/app/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ android {
3939
defaultConfig {
4040
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
4141
applicationId "li.zhuoyuan.example"
42-
minSdkVersion 16
42+
minSdkVersion flutter.minSdkVersion
4343
targetSdkVersion 31
4444
versionCode flutterVersionCode.toInteger()
4545
versionName flutterVersionName

example/ios/Flutter/flutter_export_environment.sh

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
export "FLUTTER_ROOT=/Users/lizhuoyuan/fvm/versions/stable"
44
export "FLUTTER_APPLICATION_PATH=/Users/lizhuoyuan/Development/Project/flutter_screenutil/example"
55
export "COCOAPODS_PARALLEL_CODE_SIGN=true"
6-
export "FLUTTER_TARGET=/Users/lizhuoyuan/Development/Project/flutter_screenutil/example/lib/main.dart"
6+
export "FLUTTER_TARGET=lib/main.dart"
77
export "FLUTTER_BUILD_DIR=build"
88
export "FLUTTER_BUILD_NAME=1.0.0"
99
export "FLUTTER_BUILD_NUMBER=1"
10-
export "DART_DEFINES=Zmx1dHRlci5pbnNwZWN0b3Iuc3RydWN0dXJlZEVycm9ycz10cnVl,RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ==,RkxVVFRFUl9XRUJfQ0FOVkFTS0lUX1VSTD1odHRwczovL3d3dy5nc3RhdGljLmNvbS9mbHV0dGVyLWNhbnZhc2tpdC9jZGJlZGE3ODhhMjkzZmEyOTY2NWRjM2ZhM2Q2ZTYzYmQyMjFjYjBkLw=="
1110
export "DART_OBFUSCATION=false"
1211
export "TRACK_WIDGET_CREATION=true"
1312
export "TREE_SHAKE_ICONS=false"
14-
export "PACKAGE_CONFIG=/Users/lizhuoyuan/Development/Project/flutter_screenutil/example/.dart_tool/package_config.json"
13+
export "PACKAGE_CONFIG=.dart_tool/package_config.json"

example/lib/src/first_method.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import 'package:example/responsive_widgets.su.dart';
2-
import 'package:example/src/home.dart';
32
import 'package:flutter/material.dart';
43
import 'package:flutter_screenutil/flutter_screenutil.dart';
54

5+
import '../src_zh/home.dart';
6+
67
class MyApp extends StatelessWidget {
78
const MyApp({Key? key}) : super(key: key);
89

lib/src/screenutil_init.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import 'dart:async';
22
import 'dart:collection';
33

44
import 'package:flutter/widgets.dart';
5-
import './_flutter_widgets.dart';
65

7-
import 'screenutil_mixin.dart';
6+
import './_flutter_widgets.dart';
87
import 'screen_util.dart';
8+
import 'screenutil_mixin.dart';
99

1010
typedef RebuildFactor = bool Function(MediaQueryData old, MediaQueryData data);
1111

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_screenutil
22
description: A flutter plugin for adapting screen and font size.Guaranteed to look good on different models
3-
version: 5.9.0
3+
version: 5.9.1
44
homepage: https://github.com/OpenFlutter/flutter_screenutil
55

66
environment:

0 commit comments

Comments
 (0)