mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-24 00:10:47 +00:00
disable font smoothing
This commit is contained in:
parent
616f327f15
commit
351631bb8a
5 changed files with 13 additions and 8 deletions
5
.github/workflows/pr_check.yml
vendored
5
.github/workflows/pr_check.yml
vendored
|
@ -54,7 +54,10 @@ jobs:
|
||||||
run: flutter analyze lib --fatal-infos
|
run: flutter analyze lib --fatal-infos
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: flutter test --dart-define cameraStubImage=assets/camera_stub_image.jpg
|
run: |
|
||||||
|
defaults -currentHost write -g AppleFontSmoothing -int 0
|
||||||
|
flutter test --dart-define cameraStubImage=assets/camera_stub_image.jpg
|
||||||
|
defaults -currentHost write -g AppleFontSmoothing
|
||||||
|
|
||||||
- name: Analyze project source with stub
|
- name: Analyze project source with stub
|
||||||
if: steps.override-iap.conclusion != 'success'
|
if: steps.override-iap.conclusion != 'success'
|
||||||
|
|
2
.github/workflows/run_golden_tests.yml
vendored
2
.github/workflows/run_golden_tests.yml
vendored
|
@ -45,10 +45,12 @@ jobs:
|
||||||
env:
|
env:
|
||||||
UPDATE_GOLDENS: ${{inputs.update-goldens && '--update-goldens' || '' }}
|
UPDATE_GOLDENS: ${{inputs.update-goldens && '--update-goldens' || '' }}
|
||||||
run: |
|
run: |
|
||||||
|
defaults -currentHost write -g AppleFontSmoothing -int 0
|
||||||
goldens=$(find ./test -name "*_golden_test.dart" -print)
|
goldens=$(find ./test -name "*_golden_test.dart" -print)
|
||||||
for f in $goldens; do
|
for f in $goldens; do
|
||||||
flutter test "$f" --dart-define cameraStubImage=assets/camera_stub_image.jpg "$UPDATE_GOLDENS"
|
flutter test "$f" --dart-define cameraStubImage=assets/camera_stub_image.jpg "$UPDATE_GOLDENS"
|
||||||
done
|
done
|
||||||
|
defaults -currentHost write -g AppleFontSmoothing
|
||||||
|
|
||||||
- name: Commit changes
|
- name: Commit changes
|
||||||
if: ${{ inputs.update-goldens }}
|
if: ${{ inputs.update-goldens }}
|
||||||
|
|
14
pubspec.yaml
14
pubspec.yaml
|
@ -62,13 +62,13 @@ flutter:
|
||||||
uses-material-design: true
|
uses-material-design: true
|
||||||
assets:
|
assets:
|
||||||
- assets/camera_stub_image.jpg
|
- assets/camera_stub_image.jpg
|
||||||
fonts:
|
# fonts:
|
||||||
- family: Roboto
|
# - family: Roboto
|
||||||
fonts:
|
# fonts:
|
||||||
- asset: assets/fonts/Roboto-Regular.ttf
|
# - asset: assets/fonts/Roboto-Regular.ttf
|
||||||
weight: 400
|
# weight: 400
|
||||||
- asset: assets/fonts/Roboto-Medium.ttf
|
# - asset: assets/fonts/Roboto-Medium.ttf
|
||||||
weight: 500
|
# weight: 500
|
||||||
|
|
||||||
flutter_intl:
|
flutter_intl:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 1.5 MiB After Width: | Height: | Size: 1.5 MiB |
Binary file not shown.
Before Width: | Height: | Size: 465 KiB After Width: | Height: | Size: 488 KiB |
Loading…
Reference in a new issue