Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
flutter_screenutil
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
李卓原
2024-05-15 18:28:46 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9f63be0cd45d7eb1eac76f97b40d1cac017c7971
9f63be0c
1 parent
f4a329e8
v5.9.0
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
30 additions
and
25 deletions
.github/workflows/actions.yml
CHANGELOG.md
example/android/app/build.gradle
example/ios/Flutter/flutter_export_environment.sh
example/lib/src/first_method.dart
lib/src/screenutil_init.dart
pubspec.yaml
.github/workflows/actions.yml
View file @
9f63be0
name
:
Close inactive issues
# .github/workflows/publish.yml
name
:
Publish to pub.dev
on
:
schedule
:
-
cron
:
"
30
1
*
*
*"
push
:
tags
:
-
'
v[0-9]+.[0-9]+.[0-9]+*'
# tag pattern on pub.dev: 'v'
# Publish using custom workflow
jobs
:
close-issues
:
runs-on
:
ubuntu-latest
publish
:
permissions
:
issues
:
write
pull-requests
:
write
id-token
:
write
# Required for authentication using OIDC
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/stale@v3
with
:
days-before-issue-stale
:
30
days-before-issue-close
:
14
stale-issue-label
:
"
stale"
stale-issue-message
:
"
This
issue
is
stale
because
it
has
been
open
for
30
days
with
no
activity."
close-issue-message
:
"
This
issue
was
closed
because
it
has
been
inactive
for
14
days
since
being
marked
as
stale."
days-before-pr-stale
:
-1
days-before-pr-close
:
-1
repo-token
:
${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file
-
uses
:
actions/checkout@v3
-
uses
:
dart-lang/setup-dart@v1
-
name
:
Install dependencies
run
:
dart pub get
# Here you can insert custom steps you need
# - run: dart tool/generate-code.dart
-
name
:
Publish
run
:
dart pub publish --force
\ No newline at end of file
...
...
CHANGELOG.md
View file @
9f63be0
# 5.9.1
-
merge pr #550 #555 #556
-
update readme
# 5.9.0
-
ScreenUtilInit won't rebuild the whole widget tree
-
Add
`fontSizeResolver`
to specify how font size should be scaled
...
...
example/android/app/build.gradle
View file @
9f63be0
...
...
@@ -39,7 +39,7 @@ android {
defaultConfig
{
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId
"li.zhuoyuan.example"
minSdkVersion
16
minSdkVersion
flutter
.
minSdkVersion
targetSdkVersion
31
versionCode
flutterVersionCode
.
toInteger
()
versionName
flutterVersionName
...
...
example/ios/Flutter/flutter_export_environment.sh
View file @
9f63be0
...
...
@@ -3,12 +3,11 @@
export
"FLUTTER_ROOT=/Users/lizhuoyuan/fvm/versions/stable"
export
"FLUTTER_APPLICATION_PATH=/Users/lizhuoyuan/Development/Project/flutter_screenutil/example"
export
"COCOAPODS_PARALLEL_CODE_SIGN=true"
export
"FLUTTER_TARGET=
/Users/lizhuoyuan/Development/Project/flutter_screenutil/example/
lib/main.dart"
export
"FLUTTER_TARGET=lib/main.dart"
export
"FLUTTER_BUILD_DIR=build"
export
"FLUTTER_BUILD_NAME=1.0.0"
export
"FLUTTER_BUILD_NUMBER=1"
export
"DART_DEFINES=Zmx1dHRlci5pbnNwZWN0b3Iuc3RydWN0dXJlZEVycm9ycz10cnVl,RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ==,RkxVVFRFUl9XRUJfQ0FOVkFTS0lUX1VSTD1odHRwczovL3d3dy5nc3RhdGljLmNvbS9mbHV0dGVyLWNhbnZhc2tpdC9jZGJlZGE3ODhhMjkzZmEyOTY2NWRjM2ZhM2Q2ZTYzYmQyMjFjYjBkLw=="
export
"DART_OBFUSCATION=false"
export
"TRACK_WIDGET_CREATION=true"
export
"TREE_SHAKE_ICONS=false"
export
"PACKAGE_CONFIG=
/Users/lizhuoyuan/Development/Project/flutter_screenutil/example/
.dart_tool/package_config.json"
export
"PACKAGE_CONFIG=.dart_tool/package_config.json"
...
...
example/lib/src/first_method.dart
View file @
9f63be0
import
'package:example/responsive_widgets.su.dart'
;
import
'package:example/src/home.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter_screenutil/flutter_screenutil.dart'
;
import
'../src_zh/home.dart'
;
class
MyApp
extends
StatelessWidget
{
const
MyApp
({
Key
?
key
})
:
super
(
key:
key
);
...
...
lib/src/screenutil_init.dart
View file @
9f63be0
...
...
@@ -2,10 +2,10 @@ import 'dart:async';
import
'dart:collection'
;
import
'package:flutter/widgets.dart'
;
import
'./_flutter_widgets.dart'
;
import
'
screenutil_mixin
.dart'
;
import
'
./_flutter_widgets
.dart'
;
import
'screen_util.dart'
;
import
'screenutil_mixin.dart'
;
typedef
RebuildFactor
=
bool
Function
(
MediaQueryData
old
,
MediaQueryData
data
);
...
...
pubspec.yaml
View file @
9f63be0
name
:
flutter_screenutil
description
:
A flutter plugin for adapting screen and font size.Guaranteed to look good on different models
version
:
5.9.
0
version
:
5.9.
1
homepage
:
https://github.com/OpenFlutter/flutter_screenutil
environment
:
...
...
Please
register
or
login
to post a comment