Compare commits
12 commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
d6cd537ffd | ||
![]() |
91f90ae8e8 | ||
![]() |
79f702f7ea | ||
![]() |
f0110e0edf | ||
![]() |
0e45d98060 | ||
![]() |
cf471afdfd | ||
![]() |
d95b811d6c | ||
![]() |
2dee63e78e | ||
![]() |
5856100634 | ||
![]() |
492cbaa7ee | ||
![]() |
461efc7ffd | ||
![]() |
c9bc8bc55d |
2
.fvmrc
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"flutter": "3.27.1"
|
||||
"flutter": "3.24.5"
|
||||
}
|
11
.github/workflows/build_apk.yml
vendored
|
@ -30,6 +30,10 @@ on:
|
|||
type: boolean
|
||||
description: Use stage backend
|
||||
default: true
|
||||
upload-artifact:
|
||||
type: boolean
|
||||
description: Upload build to artifacts
|
||||
default: true
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version:
|
||||
|
@ -59,6 +63,10 @@ on:
|
|||
type: boolean
|
||||
description: Use stage backend
|
||||
default: true
|
||||
upload-artifact:
|
||||
type: boolean
|
||||
description: Upload build to artifacts
|
||||
default: true
|
||||
|
||||
env:
|
||||
BUILD_ARGS: --release --flavor ${{ inputs.flavor }} -t lib/main_${{ inputs.flavor }}.dart
|
||||
|
@ -124,7 +132,7 @@ jobs:
|
|||
uses: subosito/flutter-action@v2
|
||||
with:
|
||||
channel: "stable"
|
||||
flutter-version: "3.27.1"
|
||||
flutter-version: "3.24.5"
|
||||
|
||||
- name: Prepare flutter project
|
||||
run: |
|
||||
|
@ -136,6 +144,7 @@ jobs:
|
|||
run: flutter build ${{ inputs.binary-type }} $BUILD_ARGS
|
||||
|
||||
- name: Upload ${{ inputs.binary-type }} to artifacts
|
||||
if: ${{ inputs.upload-artifact }}
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: m3_lightmeter_${{ inputs.binary-type }}
|
||||
|
|
11
.github/workflows/build_ipa.yml
vendored
|
@ -22,6 +22,10 @@ on:
|
|||
type: boolean
|
||||
description: Use stage backend
|
||||
default: true
|
||||
upload-artifact:
|
||||
type: boolean
|
||||
description: Upload build to artifacts
|
||||
default: true
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version:
|
||||
|
@ -36,6 +40,10 @@ on:
|
|||
type: boolean
|
||||
description: Use stage backend
|
||||
default: true
|
||||
upload-artifact:
|
||||
type: boolean
|
||||
description: Upload build to artifacts
|
||||
default: true
|
||||
|
||||
env:
|
||||
FLAVOR: "prod"
|
||||
|
@ -117,7 +125,7 @@ jobs:
|
|||
uses: subosito/flutter-action@v2
|
||||
with:
|
||||
channel: "stable"
|
||||
flutter-version: "3.27.1"
|
||||
flutter-version: "3.24.5"
|
||||
|
||||
- name: Prepare flutter project
|
||||
run: |
|
||||
|
@ -135,6 +143,7 @@ jobs:
|
|||
--export-options-plist=ios/Runner/ExportOptions.plist
|
||||
|
||||
- name: Upload artifact
|
||||
if: ${{ inputs.upload-artifact }}
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: m3_lightmeter_ipa
|
||||
|
|
2
.github/workflows/create_release.yml
vendored
|
@ -86,6 +86,7 @@ jobs:
|
|||
with:
|
||||
binary-type: ${{ matrix.binary-type }}
|
||||
flavor: prod
|
||||
upload-artifact: true
|
||||
stage-backend: false
|
||||
version: ${{ inputs.version }}
|
||||
|
||||
|
@ -96,6 +97,7 @@ jobs:
|
|||
uses: ./.github/workflows/build_ipa.yml
|
||||
secrets: inherit
|
||||
with:
|
||||
upload-artifact: true
|
||||
stage-backend: false
|
||||
version: ${{ inputs.version }}
|
||||
|
||||
|
|
29
.github/workflows/pr_check.yml
vendored
|
@ -16,6 +16,9 @@ jobs:
|
|||
name: Analyze & test
|
||||
runs-on: macos-14
|
||||
timeout-minutes: 10
|
||||
env:
|
||||
EMPTY_CONSTANTS: Y29uc3QgU3RyaW5nIGlhcFNlcnZlclVybCA9ICcnOwpjb25zdCBTdHJpbmcgaXNzdWVzUmVwb3J0VXJsID0gJyc7CmNvbnN0IFN0cmluZyBzb3VyY2VDb2RlVXJsID0gJyc7CmNvbnN0IFN0cmluZyBjb250YWN0RW1haWwgPSAnJzsK
|
||||
EMPTY_FIREBASE_OPTIONS: Ly8gaWdub3JlX2Zvcl9maWxlOiB0eXBlPWxpbnQKaW1wb3J0ICdwYWNrYWdlOmZpcmViYXNlX2NvcmUvZmlyZWJhc2VfY29yZS5kYXJ0JyBzaG93IEZpcmViYXNlT3B0aW9uczsKY2xhc3MgRGVmYXVsdEZpcmViYXNlT3B0aW9ucyB7c3RhdGljIEZpcmViYXNlT3B0aW9ucyBnZXQgY3VycmVudFBsYXRmb3JtID0+RmlyZWJhc2VPcHRpb25zKGFwaUtleTogJycsIGFwcElkOiAnJywgbWVzc2FnaW5nU2VuZGVySWQ6ICcnLCBwcm9qZWN0SWQ6ICcnKTt9Cg==
|
||||
steps:
|
||||
- uses: 8BitJonny/gh-get-current-pr@2.2.0
|
||||
id: PR
|
||||
|
@ -37,14 +40,17 @@ jobs:
|
|||
run: bash ./.github/scripts/stub_iap.sh
|
||||
|
||||
- name: Restore secrets
|
||||
env:
|
||||
CONSTANTS: ${{ steps.fetch-iap.conclusion == 'success' && secrets.CONSTANTS || env.EMPTY_CONSTANTS }}
|
||||
FIREBASE_OPTIONS: ${{ steps.fetch-iap.conclusion == 'success' && secrets.FIREBASE_OPTIONS || env.EMPTY_FIREBASE_OPTIONS }}
|
||||
run: |
|
||||
bash .github/scripts/restore_from_base64.sh "${{ secrets.CONSTANTS }}" "lib/constants.dart"
|
||||
bash .github/scripts/restore_from_base64.sh "${{ secrets.FIREBASE_OPTIONS }}" "lib/firebase_options.dart"
|
||||
bash .github/scripts/restore_from_base64.sh "${{ env.CONSTANTS }}" "lib/constants.dart"
|
||||
bash .github/scripts/restore_from_base64.sh "${{ env.FIREBASE_OPTIONS }}" "lib/firebase_options.dart"
|
||||
|
||||
- uses: subosito/flutter-action@v2
|
||||
with:
|
||||
channel: "stable"
|
||||
flutter-version: "3.27.1"
|
||||
flutter-version: "3.24.5"
|
||||
|
||||
- name: Prepare flutter project
|
||||
run: |
|
||||
|
@ -98,6 +104,7 @@ jobs:
|
|||
with:
|
||||
binary-type: apk
|
||||
flavor: prod
|
||||
upload-artifact: false
|
||||
stage-backend: false
|
||||
version: "1.0.0"
|
||||
|
||||
|
@ -108,20 +115,6 @@ jobs:
|
|||
uses: ./.github/workflows/build_ipa.yml
|
||||
secrets: inherit
|
||||
with:
|
||||
upload-artifact: false
|
||||
stage-backend: false
|
||||
version: "1.0.0"
|
||||
|
||||
cleanup:
|
||||
name: Cleanup
|
||||
if: ${{ always() }}
|
||||
needs: [build-android, build-ios]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Delete release artifacts
|
||||
uses: geekyeggo/delete-artifact@v2
|
||||
with:
|
||||
failOnError: false
|
||||
name: |
|
||||
m3_lightmeter_apk
|
||||
m3_lightmeter_appbundle
|
||||
m3_lightmeter_ipa
|
||||
|
|
2
.github/workflows/run_integration_tests.yml
vendored
|
@ -33,7 +33,7 @@ jobs:
|
|||
- uses: subosito/flutter-action@v2
|
||||
with:
|
||||
channel: "stable"
|
||||
flutter-version: "3.27.1"
|
||||
flutter-version: "3.24.5"
|
||||
|
||||
- name: Prepare app
|
||||
run: |
|
||||
|
|
55
README.md
|
@ -23,56 +23,33 @@ Without further delay behold my new Lightmeter app inspired by Material You (a.k
|
|||
# Screenshots
|
||||
|
||||
<p float="center">
|
||||
<img src="screenshots/generated/android/android/light_metering-reflected.png" width="18.8%" />
|
||||
<img src="screenshots/generated/android/android/light_timer.png" width="18.8%" />
|
||||
<img src="screenshots/generated/android/android/light_settings.png" width="18.8%" />
|
||||
<img src="screenshots/generated/android/android/light_equipment-profiles.png" width="18.8%" />
|
||||
<img src="screenshots/generated/android/android/dark_metering-reflected.png" width="18.8%" />
|
||||
<img src="screenshots/generated/ios/iphone65inch/light_metering-reflected.png" width="18.8%" />
|
||||
<img src="screenshots/generated/ios/iphone65inch/light_equipment-profiles.png" width="18.8%" />
|
||||
<img src="screenshots/generated/ios/iphone65inch/light_settings.png" width="18.8%" />
|
||||
<img src="screenshots/generated/ios/iphone65inch/light_timer.png" width="18.8%" />
|
||||
<img src="screenshots/generated/ios/iphone65inch/dark_metering-reflected.png" width="18.8%" />
|
||||
</p>
|
||||
|
||||
# Development
|
||||
|
||||
### 1. Install Flutter
|
||||
|
||||
To build this app you need to install Flutter 3.27.1 stable. [How to install](https://docs.flutter.dev/get-started/install).
|
||||
To build this app you need to install Flutter 3.24.5 stable. [How to install](https://docs.flutter.dev/get-started/install).
|
||||
|
||||
### 2. Project setup
|
||||
|
||||
#### Restore _constants.dart_ file
|
||||
#### Restore git-ignored files:
|
||||
|
||||
Create a file _lib/constants.dart_ and paste the following content:
|
||||
|
||||
```dart
|
||||
const String contactEmail = '';
|
||||
const String iapServerUrl = '';
|
||||
const String issuesReportUrl = '';
|
||||
const String sourceCodeUrl = '';
|
||||
```
|
||||
|
||||
#### Stub IAP package
|
||||
|
||||
As part of the app's functionallity is in the private repo, you have to replace these lines in _pubspec.yaml_:
|
||||
|
||||
```yaml
|
||||
m3_lightmeter_iap:
|
||||
git:
|
||||
url: "https://github.com/vodemn/m3_lightmeter_iap"
|
||||
ref: main
|
||||
```
|
||||
|
||||
with these:
|
||||
|
||||
```yaml
|
||||
m3_lightmeter_iap:
|
||||
path: iap
|
||||
```
|
||||
|
||||
You can do it simply by running the script:
|
||||
For macOS you can just run the following script:
|
||||
|
||||
```console
|
||||
sh .github/scripts/stub_iap.sh
|
||||
sh scripts/setup_fork.sh
|
||||
```
|
||||
|
||||
Or create the files manually using the contents from the script.
|
||||
|
||||
#### Get dependencies
|
||||
|
||||
> If you are using VSCode, you can open the workspace like so: _File -> Open Workspace from File -> m3_lightmeter.code-workspace_. Otherwise you have to run `flutter pub get` command from the iap folder.
|
||||
|
||||
Then you can fetch all the neccessary dependencies and generate translation files by running the following commands:
|
||||
|
@ -82,11 +59,7 @@ flutter pub get
|
|||
flutter pub run intl_utils:generate
|
||||
```
|
||||
|
||||
### 3. (Optional) Install Firebase
|
||||
|
||||
Out of the box Firebase Crashlytics won't work. If you want to add Crashlytics to your local build please follow [this guide](https://firebase.google.com/docs/flutter/setup).
|
||||
|
||||
### 4. Build
|
||||
### 3. Build
|
||||
|
||||
- Checkout [Build .apk](.github/workflows/build_apk.yml) workflow for Android
|
||||
- Checkout [Build .ipa](.github/workflows/build_ipa.yml) workflow for iOS
|
||||
|
|
2
assets/release_notes/release_notes_en_1.0.3.md
Normal file
|
@ -0,0 +1,2 @@
|
|||
- Fixed camera preview rotation.
|
||||
- Improved translations.
|
3
assets/release_notes/release_notes_en_1.0.4.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
- Fixed histogram being affected by spot metering.
|
||||
- Improved text fields focus handling.
|
||||
- Added German translation.
|
|
@ -109,17 +109,17 @@ void testE2E(String description) {
|
|||
);
|
||||
|
||||
/// Add ND to shoot another scene
|
||||
await tester.openPickerAndSelect<NdValuePicker, NdValue>('2');
|
||||
await _expectMeteringStateAndMeasure(
|
||||
tester,
|
||||
equipmentProfile: mockEquipmentProfiles[0],
|
||||
film: mockFilms[0],
|
||||
fastest: 'f/1.8 - 1/200',
|
||||
slowest: 'f/16 - 1/2.5',
|
||||
iso: '400',
|
||||
nd: '2',
|
||||
ev: mockPhotoEv100 + 2 - 1,
|
||||
);
|
||||
// await tester.openPickerAndSelect<NdValuePicker, NdValue>('2');
|
||||
// await _expectMeteringStateAndMeasure(
|
||||
// tester,
|
||||
// equipmentProfile: mockEquipmentProfiles[0],
|
||||
// film: mockFilms[0],
|
||||
// fastest: 'f/1.8 - 1/200',
|
||||
// slowest: 'f/16 - 1/2.5',
|
||||
// iso: '400',
|
||||
// nd: '2',
|
||||
// ev: mockPhotoEv100 + 2 - 1,
|
||||
// );
|
||||
|
||||
/// Select another lens without ND
|
||||
await tester.openPickerAndSelect<EquipmentProfilePicker, EquipmentProfile>(mockEquipmentProfiles[1].name);
|
||||
|
|
|
@ -53,6 +53,7 @@ class _MockIAPProvidersState extends State<MockIAPProviders> {
|
|||
() => mockEquipmentProfilesStorageService.updateProfile(
|
||||
id: any<String>(named: 'id'),
|
||||
name: any<String>(named: 'name'),
|
||||
isUsed: any<bool>(named: 'isUsed'),
|
||||
),
|
||||
).thenAnswer((_) async {});
|
||||
when(() => mockEquipmentProfilesStorageService.deleteProfile(any<String>())).thenAnswer((_) async {});
|
||||
|
|
|
@ -156,7 +156,7 @@
|
|||
45F53C083F2EA48EF231DA16 /* [CP] Embed Pods Frameworks */,
|
||||
FF00F85CE432774850A0EDB7 /* [firebase_crashlytics] Crashlytics Upload Symbols */,
|
||||
08127035D2CDEEEBA66FCDBB /* [CP] Copy Pods Resources */,
|
||||
6F6C086A620B15784F8BE312 /* FlutterFire: "flutterfire upload-crashlytics-symbols" */,
|
||||
051083B0AECD5071E5FA2A6F /* FlutterFire: "flutterfire upload-crashlytics-symbols" */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
|
@ -216,6 +216,24 @@
|
|||
/* End PBXResourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXShellScriptBuildPhase section */
|
||||
051083B0AECD5071E5FA2A6F /* FlutterFire: "flutterfire upload-crashlytics-symbols" */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputFileListPaths = (
|
||||
);
|
||||
inputPaths = (
|
||||
);
|
||||
name = "FlutterFire: \"flutterfire upload-crashlytics-symbols\"";
|
||||
outputFileListPaths = (
|
||||
);
|
||||
outputPaths = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "\n#!/bin/bash\nPATH=\"${PATH}:$FLUTTER_ROOT/bin:$HOME/.pub-cache/bin\"\nflutterfire upload-crashlytics-symbols --upload-symbols-script-path=\"$PODS_ROOT/FirebaseCrashlytics/upload-symbols\" --platform=ios --apple-project-path=\"${SRCROOT}\" --env-platform-name=\"${PLATFORM_NAME}\" --env-configuration=\"${CONFIGURATION}\" --env-project-dir=\"${PROJECT_DIR}\" --env-built-products-dir=\"${BUILT_PRODUCTS_DIR}\" --env-dwarf-dsym-folder-path=\"${DWARF_DSYM_FOLDER_PATH}\" --env-dwarf-dsym-file-name=\"${DWARF_DSYM_FILE_NAME}\" --env-infoplist-path=\"${INFOPLIST_PATH}\" --default-config=default\n";
|
||||
};
|
||||
08127035D2CDEEEBA66FCDBB /* [CP] Copy Pods Resources */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
|
@ -288,24 +306,6 @@
|
|||
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
|
||||
showEnvVarsInLog = 0;
|
||||
};
|
||||
6F6C086A620B15784F8BE312 /* FlutterFire: "flutterfire upload-crashlytics-symbols" */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputFileListPaths = (
|
||||
);
|
||||
inputPaths = (
|
||||
);
|
||||
name = "FlutterFire: \"flutterfire upload-crashlytics-symbols\"";
|
||||
outputFileListPaths = (
|
||||
);
|
||||
outputPaths = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "\n#!/bin/bash\nPATH=\"${PATH}:$FLUTTER_ROOT/bin:$HOME/.pub-cache/bin\"\nflutterfire upload-crashlytics-symbols --upload-symbols-script-path=\"$PODS_ROOT/FirebaseCrashlytics/upload-symbols\" --platform=ios --apple-project-path=\"${SRCROOT}\" --env-platform-name=\"${PLATFORM_NAME}\" --env-configuration=\"${CONFIGURATION}\" --env-project-dir=\"${PROJECT_DIR}\" --env-built-products-dir=\"${BUILT_PRODUCTS_DIR}\" --env-dwarf-dsym-folder-path=\"${DWARF_DSYM_FOLDER_PATH}\" --env-dwarf-dsym-file-name=\"${DWARF_DSYM_FILE_NAME}\" --env-infoplist-path=\"${INFOPLIST_PATH}\" --default-config=default\n";
|
||||
};
|
||||
9740EEB61CF901F6004384FC /* Run Script */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
alwaysOutOfDate = 1;
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
enum SupportedLocale { en, fr, ru, zh }
|
||||
enum SupportedLocale { de, en, fr, ru, zh }
|
||||
|
||||
extension SupportedLocaleExtension on SupportedLocale {
|
||||
String get intlName => toString().replaceAll("SupportedLocale.", "");
|
||||
|
||||
String get localizedName {
|
||||
switch (this) {
|
||||
case SupportedLocale.de:
|
||||
return 'Deutsch';
|
||||
case SupportedLocale.en:
|
||||
return 'English';
|
||||
case SupportedLocale.fr:
|
||||
|
|
165
lib/l10n/intl_de.arb
Normal file
|
@ -0,0 +1,165 @@
|
|||
{
|
||||
"@@locale": "de",
|
||||
"fastestExposurePair": "Schnellstes",
|
||||
"slowestExposurePair": "Langsamstes",
|
||||
"ev": "EV",
|
||||
"evValue": "{value} EV",
|
||||
"@evValue": {
|
||||
"placeholders": {
|
||||
"value": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"iso": "ISO",
|
||||
"filmSpeed": "Film Empfindlichkeit",
|
||||
"nd": "ND",
|
||||
"ndFilterFactor": "Neutraldichtefilter-Faktor",
|
||||
"noExposurePairs": "Es gibt keine Belichtungspaare für die ausgewählten Einstellungen.",
|
||||
"noCamerasDetected": "Scheinbar sind keine Kameras an das Gerät angeschlossen.",
|
||||
"noCameraPermission": "Kamera-Erlaubnis nicht erteilt.",
|
||||
"otherCameraError": "Beim Verbinden der Kamera ist ein Fehler aufgetreten.",
|
||||
"none": "Keiner",
|
||||
"cancel": "Abbrechen",
|
||||
"select": "Auswählen",
|
||||
"save": "Speichern",
|
||||
"settings": "Einstellungen",
|
||||
"metering": "Messung",
|
||||
"fractionalStops": "Zwischenstufen",
|
||||
"showFractionalStops": "Zwischenstufen anzeigen",
|
||||
"halfStops": "1/2",
|
||||
"thirdStops": "1/3",
|
||||
"calibration": "Kalibration",
|
||||
"calibrationMessage": "Die Genauigkeit der Messungen sind vollständig von der Hardware des Geräts abhängig. Deshalb ist es empfehlenswert diese App zu testen und EV-Kalibrationswerte einzustellen, die korrekte Messungen produzieren.",
|
||||
"calibrationMessageCameraOnly": "Die Genauigkeit der Messungen sind vollständig von der Kamera des Geräts abhängig. Deshalb ist es empfehlenswert diese App zu testen und EV-Kalibrationswerte einzustellen, die korrekte Messungen produzieren.",
|
||||
"camera": "Kamera",
|
||||
"lightSensor": "Lichtsensor",
|
||||
"showEv100": "EV\u2081\u2080\u2080 anzeigen",
|
||||
"meteringScreenLayout": "Messansicht Layout",
|
||||
"meteringScreenLayoutHint": "Verstecke Elemente von der Messansicht, damit sie nicht den Platz für Belichtungspaare verschwenden.",
|
||||
"meteringScreenLayoutHintEquipmentProfiles": "Ausrüstungsprofil Auswahl",
|
||||
"meteringScreenFeatureExtremeExposurePairs": "Schnellste & langsamste Belichtungspaare",
|
||||
"meteringScreenFeatureFilmPicker": "Film Auswahl",
|
||||
"cameraFeatures": "Kamerafunktionen",
|
||||
"cameraFeatureSpotMetering": "Punkt-Messung",
|
||||
"cameraFeatureSpotMeteringHint": "Halte die Kameraansicht gedrückt um den Messpunkt zu entfernen",
|
||||
"cameraFeatureHistogram": "Histogramm",
|
||||
"cameraFeatureHistogramHint": "Verwendung des Histogramms kann den Batterieverbrauch erhöhen",
|
||||
"film": "Film",
|
||||
"filmPush": "Film (push)",
|
||||
"filmPull": "Film (pull)",
|
||||
"filmReciprocityHint": "Korrigiert Belichtungszeiten länger als 1 Sekunde",
|
||||
"equipmentProfileName": "Ausrüstungsprofilname",
|
||||
"equipmentProfileNameHint": "Praktica MTL5B",
|
||||
"equipmentProfileAllValues": "Alle",
|
||||
"apertureValues": "Blend-Werte",
|
||||
"apertureValuesFilterDescription": "Wähle die anzuzeigenden Blend-Werte aus. Die Werte sind normalerweise von dem verwendeten Objektiv bestimmt.",
|
||||
"ndFilters": "ND Filter",
|
||||
"ndFiltersFilterDescription": "Wähle die anzuzeigenden ND Filter aus. (Beispielsweise die Meistverwendeten)",
|
||||
"shutterSpeedValues": "Belichtungszeiten",
|
||||
"shutterSpeedValuesFilterDescription": "Wähle die anzuzeigenden Belichtungszeiten aus. Die Werte sind normalerweise von der Kamera bestimmt.",
|
||||
"shutterSpeedManualShort": "B",
|
||||
"shutterSpeedManual": "Manuell",
|
||||
"isoValues": "ISO Werte",
|
||||
"isoValuesFilterDescription": "Wähle die anzuzeigenden ISO Werte aus. (Beispielsweise die Meistverwendeten)",
|
||||
"lensZoom": "Objektiv-Zoom",
|
||||
"lensZoomDescription": "Wähle den Zoom, relativ zur Handykamera, dass mit dem Sucher der Kamera übereinstimmt.",
|
||||
"equipmentProfile": "Ausrüstungsprofil",
|
||||
"equipmentProfiles": "Ausrüstungsprofile",
|
||||
"tapToAdd": "Tippe zum Hinzufügen",
|
||||
"general": "Allgemein",
|
||||
"keepScreenOn": "Bildschirm anbehalten",
|
||||
"haptics": "Haptik",
|
||||
"autostartTimer": "Timer auto-starten",
|
||||
"volumeKeysAction": "Auslösen durch Lautstärketasten",
|
||||
"language": "Sprache",
|
||||
"chooseLanguage": "Sprache auswählen",
|
||||
"theme": "Theme",
|
||||
"chooseTheme": "Theme auswählen",
|
||||
"themeLight": "Hell",
|
||||
"themeDark": "Dunkel",
|
||||
"themeSystemDefault": "Systemeinstellung",
|
||||
"dynamicColor": "Dynamische Farbe",
|
||||
"primaryColor": "Akzentfarbe",
|
||||
"choosePrimaryColor": "Akzentfarbe auswählen",
|
||||
"about": "Info",
|
||||
"restorePurchases": "Käufe wiederherstellen",
|
||||
"sourceCode": "Source code",
|
||||
"reportIssue": "Problem melden",
|
||||
"writeEmail": "Email schreiben",
|
||||
"youDontHaveMailApp": "Es ist keine Email App installiert.",
|
||||
"copyEmail": "Email kopieren",
|
||||
"version": "Version",
|
||||
"versionNumber": "{version} ({buildNumber})",
|
||||
"@versionNumber": {
|
||||
"placeholders": {
|
||||
"version": {
|
||||
"type": "String"
|
||||
},
|
||||
"buildNumber": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"proFeaturesTitle": "Lightmeter Pro",
|
||||
"getPro": "Pro kaufen",
|
||||
"featuresFree": "Gratis",
|
||||
"featuresPro": "Pro",
|
||||
"proFeaturesPromoText": "Lightmeter Pro liefert alles, was Sie brauchen, um die besten Aufnahmen zu machen!",
|
||||
"proFeaturesWhatsIncluded": "Was ist enthalten?",
|
||||
"featureReflectedLightMetering": "Messung von reflektiertem Licht",
|
||||
"featureIncidentLightMetering": "Messung von einfallendem Licht",
|
||||
"featureIsoAndNdValues": "Große Auswahl von ISO und ND Filtern",
|
||||
"featureTheme": "Theme Anpassung",
|
||||
"featureSpotMetering": "Punktmessung",
|
||||
"featureHistogram": "Histogramm",
|
||||
"featureListOfFilms": "Liste von 20+ Filmen mit Reziprozitätsformeln",
|
||||
"featureCustomFilms": "Eigene Filme erstellen",
|
||||
"featureEquipmentProfiles": "Ausrüstungsprofile",
|
||||
"featureTimer": "Eingebauter Timer für Langzeitbelichtungen",
|
||||
"featureMeteringScreenLayout": "Anpassbare Messansicht",
|
||||
"proFeaturesSupportText": "Durch den Kauf von Lightmeter Pro unterstützen Sie den Entwickler und ermöglichen das Hinzufügen weiterer Funktionen.",
|
||||
"getNowFor": "Jetzt für {price} kaufen",
|
||||
"@getNowFor": {
|
||||
"price": {
|
||||
"version": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"tooltipAdd": "Hinzufügen",
|
||||
"tooltipClose": "Schließen",
|
||||
"tooltipExpand": "Erweitern",
|
||||
"tooltipCollapse": "Schrumpfen",
|
||||
"tooltipCopy": "Kopieren",
|
||||
"tooltipDelete": "Löschen",
|
||||
"tooltipSelectAll": "Alle auswählen",
|
||||
"tooltipDesecelectAll": "Keine auswählen",
|
||||
"tooltipResetToZero": "Auf null zurücksetzen",
|
||||
"tooltipUseLightSensor": "Lichtsensor verwenden",
|
||||
"tooltipUseCamera": "Kamera verwenden",
|
||||
"tooltipOpenSettings": "Einstellungen öffnen",
|
||||
"exposurePair": "Belichtungspaar",
|
||||
"whatsnew": "Was ist neu?",
|
||||
"changesInVersion": "Änderungen in Version {version}:",
|
||||
"@changesInVersion": {
|
||||
"placeholders": {
|
||||
"version": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"close": "Schließen",
|
||||
"films": "Filme",
|
||||
"filmsInUse": "Verwendete Filme",
|
||||
"filmsCustom": "Eigene Filme",
|
||||
"addFilmTitle": "Film hinzufügen",
|
||||
"editFilmTitle": "Film bearbeiten",
|
||||
"filmFormula": "Formel",
|
||||
"filmFormulaExponential": "T=t^Rf",
|
||||
"filmFormulaExponentialRf": "Rf",
|
||||
"filmFormulaExponentialRfPlaceholder": "1.3",
|
||||
"name": "Name",
|
||||
"addEquipmentProfileTitle": "Ausrüstung hinzufügen",
|
||||
"editEquipmentProfileTitle": "Ausrüstung bearbeiten"
|
||||
}
|
|
@ -30,14 +30,14 @@
|
|||
"halfStops": "1/2",
|
||||
"thirdStops": "1/3",
|
||||
"calibration": "校准",
|
||||
"calibrationMessage": "此应用程序测量读数的准确性取决于设备的后置摄像头。如需更精确的测量结果或测量结果存在偏差,请手动校准 EV 。",
|
||||
"calibrationMessageCameraOnly": "此应用程序测量读数的准确性取决于设备的后置摄像头。如需更精确的测量结果或测量结果存在偏差,请手动校准 EV 。",
|
||||
"calibrationMessage": "此应用测量读数的准确性取决于设备的后置摄像头。如需更精确的测量结果或测量结果存在偏差,请手动校准 EV 。",
|
||||
"calibrationMessageCameraOnly": "此应用测量读数的准确性取决于设备的后置摄像头。如需更精确的测量结果或测量结果存在偏差,请手动校准 EV 。",
|
||||
"camera": "摄像头",
|
||||
"lightSensor": "光传感器",
|
||||
"lightSensor": "光线传感器",
|
||||
"showEv100": "显示 EV\u2081\u2080\u2080",
|
||||
"meteringScreenLayout": "布局",
|
||||
"meteringScreenLayoutHint": "隐藏不需要的元素,以免浪费曝光列表空间",
|
||||
"meteringScreenLayoutHintEquipmentProfiles": "设备配置选择",
|
||||
"meteringScreenLayoutHint": "隐藏不需要的元素,让主界面更加整洁",
|
||||
"meteringScreenLayoutHintEquipmentProfiles": "选择设备配置",
|
||||
"meteringScreenFeatureExtremeExposurePairs": "最快 & 最慢曝光组合",
|
||||
"meteringScreenFeatureFilmPicker": "胶片选择",
|
||||
"cameraFeatures": "相机功能",
|
||||
|
@ -48,22 +48,22 @@
|
|||
"film": "胶片",
|
||||
"filmPush": "胶片 (push)",
|
||||
"filmPull": "胶片 (pull)",
|
||||
"filmReciprocityHint": "对快门速度超过 1 秒的情况进行修正",
|
||||
"filmReciprocityHint": "倒易律失效补偿(对快门速度超过 1 秒的情况进行修正)",
|
||||
"equipmentProfileName": "设备配置名称",
|
||||
"equipmentProfileNameHint": "Praktica MTL5B",
|
||||
"equipmentProfileAllValues": "全部",
|
||||
"apertureValues": "光圈值",
|
||||
"apertureValuesFilterDescription": "选择要显示的光圈值范围。这通常由您使用的镜头决定。",
|
||||
"apertureValuesFilterDescription": "选择要显示的光圈值范围。取决于使用的镜头。",
|
||||
"ndFilters": "ND 滤镜",
|
||||
"ndFiltersFilterDescription": "选择要显示的 ND 滤镜系数。可能是您最常用的 ND 滤镜,也可能是适合您镜头的减光镜。",
|
||||
"ndFiltersFilterDescription": "选择要显示的 ND 滤镜系数。取决于使用的 ND 滤镜",
|
||||
"shutterSpeedValues": "快门速度",
|
||||
"shutterSpeedValuesFilterDescription": "选择要显示的快门速度范围。这通常由您使用的相机机身决定。",
|
||||
"shutterSpeedManualShort": "B",
|
||||
"shutterSpeedManual": "手册",
|
||||
"shutterSpeedValuesFilterDescription": "选择要显示的快门速度范围。取决于相机机身。",
|
||||
"shutterSpeedManualShort": "B门",
|
||||
"shutterSpeedManual": "手动",
|
||||
"isoValues": "ISO",
|
||||
"isoValuesFilterDescription": "选择要显示的 ISO 。这些可能是您常用的ISO值,也可以是相机支持的ISO范围。",
|
||||
"isoValuesFilterDescription": "选择要显示的 ISO 范围。",
|
||||
"lensZoom": "镜头变焦",
|
||||
"lensZoomDescription": "设置相对于手机摄像头的变焦级别,使其与相机取景器相匹配。",
|
||||
"lensZoomDescription": "设置相对于手机摄像头的变焦焦距,使其与相机取景相匹配。",
|
||||
"equipmentProfile": "设备配置",
|
||||
"equipmentProfiles": "设备配置",
|
||||
"tapToAdd": "点击添加",
|
||||
|
@ -105,19 +105,19 @@
|
|||
"featuresFree": "免费",
|
||||
"featuresPro": "专业版",
|
||||
"proFeaturesPromoText": "Lightmeter Pro 提供您需要的一切,助您拍出最佳照片!",
|
||||
"proFeaturesWhatsIncluded": "包括哪些内容?",
|
||||
"proFeaturesWhatsIncluded": "Lightmeter Pro 包含哪些内容?",
|
||||
"featureReflectedLightMetering": "反射光测光",
|
||||
"featureIncidentLightMetering": "入射光测光",
|
||||
"featureIsoAndNdValues": "广泛的ISO和ND滤镜值范围",
|
||||
"featureIsoAndNdValues": "更广的 ISO 和 ND 滤镜系数范围",
|
||||
"featureTheme": "主题自定义",
|
||||
"featureSpotMetering": "点测光",
|
||||
"featureHistogram": "直方图",
|
||||
"featureListOfFilms": "20多部电影的修正公式列表",
|
||||
"featureCustomFilms": "创建自定义胶片的能力",
|
||||
"featureListOfFilms": "20多种胶片的补偿公式",
|
||||
"featureCustomFilms": "创建自定义胶片",
|
||||
"featureEquipmentProfiles": "设备配置文件",
|
||||
"featureTimer": "内置长曝光计时器",
|
||||
"featureMeteringScreenLayout": "可自定义的主屏幕",
|
||||
"proFeaturesSupportText": "通过购买Lightmeter Pro,您支持开发工作,并使添加新功能成为可能。",
|
||||
"featureMeteringScreenLayout": "可自定义的主界面",
|
||||
"proFeaturesSupportText": "通过购买Lightmeter Pro,支持软件的开发,让软件持续添加新功能!",
|
||||
"getNowFor": "立即获取 {price}",
|
||||
"@getNowFor": {
|
||||
"price": {
|
||||
|
@ -141,13 +141,13 @@
|
|||
"exposurePair": "曝光对",
|
||||
"films": "Films",
|
||||
"filmsInUse": "使用的胶片",
|
||||
"filmsCustom": "定制胶片",
|
||||
"filmsCustom": "自定义胶片",
|
||||
"addFilmTitle": "添加胶片",
|
||||
"editFilmTitle": "编辑胶片",
|
||||
"filmFormula": "计算公式",
|
||||
"filmFormulaExponential": "T=t^Rf",
|
||||
"filmFormulaExponentialRf": "Rf",
|
||||
"filmFormulaExponentialRfPlaceholder": "1.3",
|
||||
"addEquipmentProfileTitle": "添加简介",
|
||||
"editEquipmentProfileTitle": "编辑个人资料"
|
||||
}
|
||||
"addEquipmentProfileTitle": "添加设备",
|
||||
"editEquipmentProfileTitle": "编辑设备"
|
||||
}
|
||||
|
|
|
@ -30,7 +30,6 @@ Future<void> runLightmeterApp(Environment env) async {
|
|||
products: [
|
||||
IAPProduct(
|
||||
storeId: IAPProductType.paidFeatures.storeId,
|
||||
status: IAPProductStatus.purchased,
|
||||
price: '0.0\$',
|
||||
),
|
||||
],
|
||||
|
|
|
@ -137,8 +137,8 @@ class _NameFieldBuilder extends StatelessWidget {
|
|||
bottom: Dimens.paddingS / 2,
|
||||
),
|
||||
child: LightmeterTextField(
|
||||
initialValue: state.name,
|
||||
autofocus: true,
|
||||
initialValue: state.name,
|
||||
maxLength: 48,
|
||||
hintText: S.of(context).name,
|
||||
style: Theme.of(context).listTileTheme.titleTextStyle,
|
||||
|
|
|
@ -132,7 +132,7 @@ class _ProFeaturesOverlay extends StatelessWidget {
|
|||
);
|
||||
final bool hasSpotMetering = UserPreferencesProvider.cameraFeatureOf(
|
||||
context,
|
||||
CameraFeature.histogram,
|
||||
CameraFeature.spotMetering,
|
||||
);
|
||||
return Stack(
|
||||
alignment: Alignment.bottomCenter,
|
||||
|
|
|
@ -1,33 +1,74 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
class LightmeterTextField extends TextFormField {
|
||||
LightmeterTextField({
|
||||
super.controller,
|
||||
super.autofocus,
|
||||
super.initialValue,
|
||||
super.inputFormatters,
|
||||
super.maxLength,
|
||||
super.onChanged,
|
||||
super.style,
|
||||
super.textAlign,
|
||||
Widget? leading,
|
||||
String? hintText,
|
||||
}) : super(
|
||||
autovalidateMode: AutovalidateMode.onUserInteraction,
|
||||
maxLines: 1,
|
||||
decoration: InputDecoration(
|
||||
counter: const SizedBox(),
|
||||
contentPadding: EdgeInsets.zero,
|
||||
errorStyle: const TextStyle(fontSize: 0),
|
||||
icon: leading,
|
||||
hintText: hintText,
|
||||
),
|
||||
validator: (value) {
|
||||
if (value == null || value.isEmpty) {
|
||||
return '';
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
},
|
||||
);
|
||||
class LightmeterTextField extends StatefulWidget {
|
||||
const LightmeterTextField({
|
||||
this.autofocus = false,
|
||||
this.controller,
|
||||
this.hintText,
|
||||
this.initialValue,
|
||||
this.inputFormatters,
|
||||
this.leading,
|
||||
this.maxLength,
|
||||
this.onChanged,
|
||||
this.style,
|
||||
this.textAlign = TextAlign.start,
|
||||
});
|
||||
|
||||
final bool autofocus;
|
||||
final TextEditingController? controller;
|
||||
final String? hintText;
|
||||
final String? initialValue;
|
||||
final List<TextInputFormatter>? inputFormatters;
|
||||
final Widget? leading;
|
||||
final int? maxLength;
|
||||
final void Function(String)? onChanged;
|
||||
final TextStyle? style;
|
||||
final TextAlign textAlign;
|
||||
|
||||
@override
|
||||
State<LightmeterTextField> createState() => _LightmeterTextFieldState();
|
||||
}
|
||||
|
||||
class _LightmeterTextFieldState extends State<LightmeterTextField> {
|
||||
late final focusNode = FocusNode(debugLabel: widget.hintText);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return TextFormField(
|
||||
autofocus: widget.autofocus,
|
||||
autovalidateMode: AutovalidateMode.onUserInteraction,
|
||||
controller: widget.controller,
|
||||
focusNode: focusNode,
|
||||
initialValue: widget.initialValue,
|
||||
inputFormatters: widget.inputFormatters,
|
||||
maxLength: widget.maxLength,
|
||||
onChanged: widget.onChanged,
|
||||
style: widget.style,
|
||||
textAlign: widget.textAlign,
|
||||
decoration: InputDecoration(
|
||||
counter: const SizedBox(),
|
||||
contentPadding: EdgeInsets.zero,
|
||||
errorStyle: const TextStyle(fontSize: 0),
|
||||
icon: widget.leading,
|
||||
hintText: widget.hintText,
|
||||
),
|
||||
onTapOutside: (event) {
|
||||
focusNode.unfocus();
|
||||
},
|
||||
validator: (value) {
|
||||
if (value == null || value.isEmpty) {
|
||||
return '';
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
focusNode.dispose();
|
||||
super.dispose();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,11 +2,14 @@ import 'dart:ui';
|
|||
|
||||
extension ColorToInt on Color {
|
||||
int toInt() {
|
||||
final a = (this.a * 255).round();
|
||||
final r = (this.r * 255).round();
|
||||
final g = (this.g * 255).round();
|
||||
final b = (this.b * 255).round();
|
||||
return value;
|
||||
|
||||
return (a << 24) | (r << 16) | (g << 8) | b;
|
||||
// Wait for Flutter 3.27.1
|
||||
// final a = (this.a * 255).round();
|
||||
// final r = (this.r * 255).round();
|
||||
// final g = (this.g * 255).round();
|
||||
// final b = (this.b * 255).round();
|
||||
|
||||
// return (a << 24) | (r << 16) | (g << 8) | b;
|
||||
}
|
||||
}
|
||||
|
|
98
pubspec.lock
|
@ -5,10 +5,10 @@ packages:
|
|||
dependency: transitive
|
||||
description:
|
||||
name: _fe_analyzer_shared
|
||||
sha256: "16e298750b6d0af7ce8a3ba7c18c69c3785d11b15ec83f6dcd0ad2a0009b3cab"
|
||||
sha256: f256b0c0ba6c7577c15e2e4e114755640a875e885099367bf6e012b19314c834
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "76.0.0"
|
||||
version: "72.0.0"
|
||||
_flutterfire_internals:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -21,15 +21,15 @@ packages:
|
|||
dependency: transitive
|
||||
description: dart
|
||||
source: sdk
|
||||
version: "0.3.3"
|
||||
version: "0.3.2"
|
||||
analyzer:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: analyzer
|
||||
sha256: "1f14db053a8c23e260789e9b0980fa27f2680dd640932cae5e1137cce0e46e1e"
|
||||
sha256: b652861553cd3990d8ed361f7979dc6d7053a9ac8843fa73820ab68ce5410139
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "6.11.0"
|
||||
version: "6.7.0"
|
||||
ansicolor:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -114,50 +114,50 @@ packages:
|
|||
dependency: transitive
|
||||
description:
|
||||
name: build
|
||||
sha256: cef23f1eda9b57566c81e2133d196f8e3df48f244b317368d65c5943d91148f0
|
||||
sha256: "80184af8b6cb3e5c1c4ec6d8544d27711700bc3e6d2efad04238c7b5290889f0"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.4.2"
|
||||
version: "2.4.1"
|
||||
build_config:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: build_config
|
||||
sha256: "4ae2de3e1e67ea270081eaee972e1bd8f027d459f249e0f1186730784c2e7e33"
|
||||
sha256: bf80fcfb46a29945b423bd9aad884590fb1dc69b330a4d4700cac476af1708d1
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.1.2"
|
||||
version: "1.1.1"
|
||||
build_daemon:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: build_daemon
|
||||
sha256: "294a2edaf4814a378725bfe6358210196f5ea37af89ecd81bfa32960113d4948"
|
||||
sha256: "79b2aef6ac2ed00046867ed354c88778c9c0f029df8a20fe10b5436826721ef9"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "4.0.3"
|
||||
version: "4.0.2"
|
||||
build_resolvers:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: build_resolvers
|
||||
sha256: "99d3980049739a985cf9b21f30881f46db3ebc62c5b8d5e60e27440876b1ba1e"
|
||||
sha256: "339086358431fa15d7eca8b6a36e5d783728cf025e559b834f4609a1fcfb7b0a"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.4.3"
|
||||
version: "2.4.2"
|
||||
build_runner:
|
||||
dependency: "direct dev"
|
||||
description:
|
||||
name: build_runner
|
||||
sha256: "74691599a5bc750dc96a6b4bfd48f7d9d66453eab04c7f4063134800d6a5c573"
|
||||
sha256: "028819cfb90051c6b5440c7e574d1896f8037e3c96cf17aaeb054c9311cfbf4d"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.4.14"
|
||||
version: "2.4.13"
|
||||
build_runner_core:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: build_runner_core
|
||||
sha256: "22e3aa1c80e0ada3722fe5b63fd43d9c8990759d0a2cf489c8c5d7b2bdebc021"
|
||||
sha256: f8126682b87a7282a339b871298cc12009cb67109cfa1614d6436fb0289193e0
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "8.0.0"
|
||||
version: "7.3.2"
|
||||
built_collection:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -282,10 +282,10 @@ packages:
|
|||
dependency: "direct main"
|
||||
description:
|
||||
name: collection
|
||||
sha256: a1ace0a119f20aabc852d165077c036cd864315bd99b7eaa10a60100341941bf
|
||||
sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.19.0"
|
||||
version: "1.18.0"
|
||||
convert:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -688,10 +688,10 @@ packages:
|
|||
dependency: transitive
|
||||
description:
|
||||
name: http_parser
|
||||
sha256: "178d74305e7866013777bab2c3d8726205dc5a4dd935297175b19a23a2e66571"
|
||||
sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "4.1.2"
|
||||
version: "4.0.2"
|
||||
image:
|
||||
dependency: "direct dev"
|
||||
description:
|
||||
|
@ -781,18 +781,18 @@ packages:
|
|||
dependency: transitive
|
||||
description:
|
||||
name: leak_tracker
|
||||
sha256: "7bb2830ebd849694d1ec25bf1f44582d6ac531a57a365a803a6034ff751d2d06"
|
||||
sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "10.0.7"
|
||||
version: "10.0.5"
|
||||
leak_tracker_flutter_testing:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: leak_tracker_flutter_testing
|
||||
sha256: "9491a714cca3667b60b5c420da8217e6de0d1ba7a5ec322fab01758f6998f379"
|
||||
sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "3.0.8"
|
||||
version: "3.0.5"
|
||||
leak_tracker_testing:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -829,11 +829,11 @@ packages:
|
|||
dependency: "direct main"
|
||||
description:
|
||||
path: "."
|
||||
ref: "v2.1.2"
|
||||
resolved-ref: "2eff5443e89c28795f3bb21d027eb43243a49b5d"
|
||||
ref: "v2.1.3"
|
||||
resolved-ref: "4575586ff6114b780ca651b7ac7c272a4a4801eb"
|
||||
url: "https://github.com/vodemn/m3_lightmeter_iap"
|
||||
source: git
|
||||
version: "2.1.2+29"
|
||||
version: "2.1.3+30"
|
||||
m3_lightmeter_resources:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
|
@ -847,10 +847,10 @@ packages:
|
|||
dependency: transitive
|
||||
description:
|
||||
name: macros
|
||||
sha256: "1d9e801cd66f7ea3663c45fc708450db1fa57f988142c64289142c9b7ee80656"
|
||||
sha256: "0acaed5d6b7eab89f63350bccd82119e6c602df0f391260d0e32b5e23db79536"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "0.1.3-main.0"
|
||||
version: "0.1.2-main.4"
|
||||
matcher:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -1159,10 +1159,10 @@ packages:
|
|||
dependency: transitive
|
||||
description:
|
||||
name: shelf
|
||||
sha256: e7dd780a7ffb623c57850b33f43309312fc863fb6aa3d276a754bb299839ef12
|
||||
sha256: ad29c505aee705f41a4d8963641f91ac4cee3c8fad5947e033390a7bd8180fa4
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.4.2"
|
||||
version: "1.4.1"
|
||||
shelf_packages_handler:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -1191,7 +1191,7 @@ packages:
|
|||
dependency: transitive
|
||||
description: flutter
|
||||
source: sdk
|
||||
version: "0.0.0"
|
||||
version: "0.0.99"
|
||||
source_map_stack_trace:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -1268,10 +1268,10 @@ packages:
|
|||
dependency: transitive
|
||||
description:
|
||||
name: stack_trace
|
||||
sha256: "9f47fd3630d76be3ab26f0ee06d213679aa425996925ff3feffdec504931c377"
|
||||
sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.12.0"
|
||||
version: "1.11.1"
|
||||
stream_channel:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -1292,10 +1292,10 @@ packages:
|
|||
dependency: transitive
|
||||
description:
|
||||
name: string_scanner
|
||||
sha256: "688af5ed3402a4bde5b3a6c15fd768dbf2621a614950b17f04626c431ab3c4c3"
|
||||
sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.3.0"
|
||||
version: "1.2.0"
|
||||
sync_http:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -1324,26 +1324,26 @@ packages:
|
|||
dependency: "direct dev"
|
||||
description:
|
||||
name: test
|
||||
sha256: "713a8789d62f3233c46b4a90b174737b2c04cb6ae4500f2aa8b1be8f03f5e67f"
|
||||
sha256: "7ee44229615f8f642b68120165ae4c2a75fe77ae2065b1e55ae4711f6cf0899e"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.25.8"
|
||||
version: "1.25.7"
|
||||
test_api:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: test_api
|
||||
sha256: "664d3a9a64782fcdeb83ce9c6b39e78fd2971d4e37827b9b06c3aa1edc5e760c"
|
||||
sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "0.7.3"
|
||||
version: "0.7.2"
|
||||
test_core:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: test_core
|
||||
sha256: "12391302411737c176b0b5d6491f466b0dd56d4763e347b6714efbaa74d7953d"
|
||||
sha256: "55ea5a652e38a1dfb32943a7973f3681a60f872f8c3a05a14664ad54ef9c6696"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "0.6.5"
|
||||
version: "0.6.4"
|
||||
timing:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -1468,10 +1468,10 @@ packages:
|
|||
dependency: transitive
|
||||
description:
|
||||
name: vm_service
|
||||
sha256: f6be3ed8bd01289b34d679c2b62226f63c0e69f9fd2e50a6b3c1c729a961041b
|
||||
sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "14.3.0"
|
||||
version: "14.2.5"
|
||||
watcher:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -1508,10 +1508,10 @@ packages:
|
|||
dependency: transitive
|
||||
description:
|
||||
name: webdriver
|
||||
sha256: "3d773670966f02a646319410766d3b5e1037efb7f07cc68f844d5e06cd4d61c8"
|
||||
sha256: "003d7da9519e1e5f329422b36c4dcdf18d7d2978d1ba099ea4e45ba490ed845e"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "3.0.4"
|
||||
version: "3.0.3"
|
||||
webkit_inspection_protocol:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -1561,5 +1561,5 @@ packages:
|
|||
source: hosted
|
||||
version: "3.1.3"
|
||||
sdks:
|
||||
dart: ">=3.6.0 <4.0.0"
|
||||
flutter: ">=3.27.1"
|
||||
dart: ">=3.5.0 <4.0.0"
|
||||
flutter: ">=3.24.5"
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
name: lightmeter
|
||||
description: Lightmeter app inspired by Material 3 design system.
|
||||
publish_to: "none"
|
||||
version: 1.0.2+57
|
||||
version: 1.0.4+59
|
||||
|
||||
environment:
|
||||
sdk: ">=3.0.0 <4.0.0"
|
||||
flutter: "3.24.5"
|
||||
|
||||
dependencies:
|
||||
app_settings: 5.1.1
|
||||
|
@ -31,7 +32,7 @@ dependencies:
|
|||
m3_lightmeter_iap:
|
||||
git:
|
||||
url: "https://github.com/vodemn/m3_lightmeter_iap"
|
||||
ref: v2.1.2
|
||||
ref: v2.1.3
|
||||
m3_lightmeter_resources:
|
||||
git:
|
||||
url: "https://github.com/vodemn/m3_lightmeter_resources"
|
||||
|
@ -49,7 +50,7 @@ dependencies:
|
|||
dev_dependencies:
|
||||
args: 2.6.0
|
||||
bloc_test: 10.0.0
|
||||
build_runner: 2.4.14
|
||||
build_runner: 2.4.13
|
||||
flutter_test:
|
||||
sdk: flutter
|
||||
golden_toolkit: 0.15.0
|
||||
|
@ -61,7 +62,7 @@ dev_dependencies:
|
|||
logging: 1.3.0
|
||||
meta: 1.15.0
|
||||
mocktail: 1.0.4
|
||||
test: 1.25.8
|
||||
test: 1.25.7
|
||||
|
||||
dependency_overrides:
|
||||
material_color_utilities: 0.11.1
|
||||
|
|
|
@ -30,11 +30,6 @@
|
|||
"title": "Create multiple profiles",
|
||||
"subtitle": "to match your\ncamera & lens setups"
|
||||
},
|
||||
{
|
||||
"screenshotName": "light_equipment-profiles-iso-picker",
|
||||
"title": "Fine-tune results",
|
||||
"subtitle": "by selecting the values\nthat you use the most"
|
||||
},
|
||||
{
|
||||
"screenshotName": "dark_metering-reflected",
|
||||
"title": "Match your style",
|
||||
|
|
|
@ -15,7 +15,6 @@ import 'package:lightmeter/data/shared_prefs_service.dart';
|
|||
import 'package:lightmeter/generated/l10n.dart';
|
||||
import 'package:lightmeter/res/dimens.dart';
|
||||
import 'package:lightmeter/res/theme.dart';
|
||||
import 'package:lightmeter/screens/equipment_profiles/screen_equipment_profiles.dart';
|
||||
import 'package:lightmeter/screens/metering/components/shared/exposure_pairs_list/widget_list_exposure_pairs.dart';
|
||||
import 'package:lightmeter/screens/metering/components/shared/readings_container/components/iso_picker/widget_picker_iso.dart';
|
||||
import 'package:lightmeter/screens/metering/screen_metering.dart';
|
||||
|
@ -118,13 +117,9 @@ void main() {
|
|||
|
||||
await tester.tapDescendantTextOf<SettingsScreen>(S.current.equipmentProfiles);
|
||||
await tester.pumpAndSettle();
|
||||
await tester.tapDescendantTextOf<EquipmentProfilesScreen>(mockEquipmentProfiles.first.name);
|
||||
await tester.tap(find.byIcon(Icons.edit_outlined).first);
|
||||
await tester.pumpAndSettle();
|
||||
await tester.takeScreenshotLight(binding, 'equipment-profiles');
|
||||
|
||||
await tester.tap(find.byIcon(Icons.iso_outlined).first);
|
||||
await tester.pumpAndSettle();
|
||||
await tester.takeScreenshotLight(binding, 'equipment-profiles-iso-picker');
|
||||
});
|
||||
|
||||
/// and the additionally the first one with the dark theme
|
||||
|
@ -168,7 +163,7 @@ void main() {
|
|||
ev: 5,
|
||||
exposurePair: timerExposurePair,
|
||||
);
|
||||
await tester.tap(find.text(timerExposurePair.shutterSpeed.toString()));
|
||||
await tester.tap(find.text(_mockFilm.reciprocityFailure(timerExposurePair.shutterSpeed).toString()));
|
||||
await tester.pumpAndSettle();
|
||||
await tester.mockTimerResumedState(timerExposurePair.shutterSpeed);
|
||||
await tester.takeScreenshotLight(binding, 'timer');
|
||||
|
|
Before Width: | Height: | Size: 492 KiB After Width: | Height: | Size: 469 KiB |
Before Width: | Height: | Size: 221 KiB |
Before Width: | Height: | Size: 221 KiB After Width: | Height: | Size: 215 KiB |
Before Width: | Height: | Size: 235 KiB After Width: | Height: | Size: 235 KiB |
Before Width: | Height: | Size: 220 KiB After Width: | Height: | Size: 223 KiB |
Before Width: | Height: | Size: 500 KiB After Width: | Height: | Size: 478 KiB |
Before Width: | Height: | Size: 235 KiB After Width: | Height: | Size: 234 KiB |
Before Width: | Height: | Size: 219 KiB After Width: | Height: | Size: 220 KiB |
Before Width: | Height: | Size: 346 KiB After Width: | Height: | Size: 348 KiB |
Before Width: | Height: | Size: 159 KiB |
Before Width: | Height: | Size: 163 KiB After Width: | Height: | Size: 159 KiB |
Before Width: | Height: | Size: 177 KiB After Width: | Height: | Size: 181 KiB |
Before Width: | Height: | Size: 345 KiB After Width: | Height: | Size: 347 KiB |
Before Width: | Height: | Size: 167 KiB After Width: | Height: | Size: 169 KiB |
Before Width: | Height: | Size: 148 KiB After Width: | Height: | Size: 148 KiB |
Before Width: | Height: | Size: 507 KiB After Width: | Height: | Size: 511 KiB |
Before Width: | Height: | Size: 223 KiB |
Before Width: | Height: | Size: 227 KiB After Width: | Height: | Size: 224 KiB |
Before Width: | Height: | Size: 248 KiB After Width: | Height: | Size: 254 KiB |
Before Width: | Height: | Size: 501 KiB After Width: | Height: | Size: 505 KiB |
Before Width: | Height: | Size: 235 KiB After Width: | Height: | Size: 238 KiB |
Before Width: | Height: | Size: 206 KiB After Width: | Height: | Size: 207 KiB |
|
@ -1,4 +0,0 @@
|
|||
dart run screenshots/convert_to_store_screenshots.dart -p android -d pixel_6 -l android
|
||||
dart run screenshots/convert_to_store_screenshots.dart -p ios -d iphone_13_pro -l iphone55inch
|
||||
dart run screenshots/convert_to_store_screenshots.dart -p ios -d iphone_13_pro -l iphone65inch
|
||||
#dart run screenshots/convert_to_store_screenshots.dart -p ios -d ipad_pro_12.9-inch_6th_generation -l ipad13inch
|
|
@ -1 +1,3 @@
|
|||
sh screenshots/scripts/generate_screenshots.sh "Pixel 6"
|
||||
sh screenshots/scripts/generate_screenshots.sh "Pixel 6"
|
||||
|
||||
dart run screenshots/convert_to_store_screenshots.dart -p android -d pixel_6 -l android
|
|
@ -6,3 +6,6 @@ for i in "${simulators_array[@]}"; do # https://www.baeldung.com/linux/shell-scr
|
|||
sh screenshots/scripts/generate_screenshots.sh "$i"
|
||||
done
|
||||
killall 'Simulator'
|
||||
|
||||
dart run screenshots/convert_to_store_screenshots.dart -p ios -d iphone_13_pro -l iphone55inch
|
||||
dart run screenshots/convert_to_store_screenshots.dart -p ios -d iphone_13_pro -l iphone65inch
|
4
scripts/mocks/mock_constants.dart
Normal file
|
@ -0,0 +1,4 @@
|
|||
const String contactEmail = '';
|
||||
const String iapServerUrl = '';
|
||||
const String issuesReportUrl = 'https://github.com/vodemn/m3_lightmeter/issues/new/choose';
|
||||
const String sourceCodeUrl = 'https://github.com/vodemn/m3_lightmeter/';
|
30
scripts/mocks/mock_firebase.json
Normal file
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
"flutter": {
|
||||
"platforms": {
|
||||
"android": {
|
||||
"default": {
|
||||
"projectId": "mockproject-1234",
|
||||
"appId": "1:123456789000:android:f1bf012572b04063",
|
||||
"fileOutput": "android/app/google-services.json"
|
||||
}
|
||||
},
|
||||
"ios": {
|
||||
"default": {
|
||||
"projectId": "mockproject-1234",
|
||||
"appId": "1:123456789000:ios:f1bf012572b04063",
|
||||
"uploadDebugSymbols": true,
|
||||
"fileOutput": "ios/Runner/GoogleService-Info.plist"
|
||||
}
|
||||
},
|
||||
"dart": {
|
||||
"lib/firebase_options.dart": {
|
||||
"projectId": "mockproject-1234",
|
||||
"configurations": {
|
||||
"android": "1:123456789000:android:f1bf012572b04063",
|
||||
"ios": "1:123456789000:ios:f1bf012572b04063"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
7
scripts/mocks/mock_firebase_options.dart
Normal file
|
@ -0,0 +1,7 @@
|
|||
// ignore_for_file: type=lint
|
||||
import 'package:firebase_core/firebase_core.dart' show FirebaseOptions;
|
||||
|
||||
class DefaultFirebaseOptions {
|
||||
static FirebaseOptions get currentPlatform =>
|
||||
FirebaseOptions(apiKey: '', appId: '', messagingSenderId: '', projectId: '');
|
||||
}
|
12
scripts/setup_fork.sh
Normal file
|
@ -0,0 +1,12 @@
|
|||
cp "scripts/mocks/mock_constants.dart" "lib/constants.dart"
|
||||
cp "scripts/mocks/mock_firebase_options.dart" "lib/firebase_options.dart"
|
||||
cp "scripts/mocks/mock_firebase.json" "firebase.json"
|
||||
|
||||
curl -H 'Accept: application/vnd.github.v3.raw' \
|
||||
-o "android/app/google-services.json" \
|
||||
-L "https://api.github.com/repos/firebase/quickstart-android/contents/mock-google-services.json"
|
||||
curl -H 'Accept: application/vnd.github.v3.raw' \
|
||||
-o "ios/Runner/GoogleService-Info.plist" \
|
||||
-L "https://api.github.com/repos/firebase/quickstart-ios/contents/mock-GoogleService-Info.plist"
|
||||
|
||||
sh .github/scripts/stub_iap.sh
|
|
@ -7,6 +7,7 @@ void main() {
|
|||
expect(SupportedLocale.fr.intlName, 'fr');
|
||||
expect(SupportedLocale.ru.intlName, 'ru');
|
||||
expect(SupportedLocale.zh.intlName, 'zh');
|
||||
expect(SupportedLocale.de.intlName, 'de');
|
||||
});
|
||||
|
||||
test('localizedName', () {
|
||||
|
@ -14,5 +15,6 @@ void main() {
|
|||
expect(SupportedLocale.fr.localizedName, 'Français');
|
||||
expect(SupportedLocale.ru.localizedName, 'Русский');
|
||||
expect(SupportedLocale.zh.localizedName, '简体中文');
|
||||
expect(SupportedLocale.de.localizedName, 'Deutsch');
|
||||
});
|
||||
}
|
||||
|
|
Before Width: | Height: | Size: 301 KiB After Width: | Height: | Size: 301 KiB |
Before Width: | Height: | Size: 1.5 MiB After Width: | Height: | Size: 1.5 MiB |
Before Width: | Height: | Size: 498 KiB After Width: | Height: | Size: 497 KiB |
Before Width: | Height: | Size: 863 KiB After Width: | Height: | Size: 862 KiB |