mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-12-03 12:50:40 +00:00
Compare commits
3 commits
1e4aa33b67
...
fd97fc7fef
Author | SHA1 | Date | |
---|---|---|---|
|
fd97fc7fef | ||
|
38f99afa8c | ||
|
c0e26b8840 |
3 changed files with 27 additions and 7 deletions
4
.github/workflows/create_release.yml
vendored
4
.github/workflows/create_release.yml
vendored
|
@ -9,7 +9,7 @@
|
|||
|
||||
name: Create new release
|
||||
|
||||
run-name: Release v${{ inputs.version }}
|
||||
run-name: Release v${{ inputs.version }}${{ inputs.release-track == 'beta' && '-Beta' || '' }}
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
@ -137,7 +137,7 @@ jobs:
|
|||
artifacts: "m3_lightmeter.apk"
|
||||
skipIfReleaseExists: true
|
||||
prerelease: ${{ inputs.release-track == 'beta' }}
|
||||
tag: "v${{ github.event.inputs.version }}"
|
||||
tag: "v${{ github.event.inputs.version }}${{ inputs.release-track == 'beta' && '-beta' || '' }}"
|
||||
bodyFile: "${{ env.RELEASE_NOTES_PATH }}/${{ env.RELEASE_NOTES_FILE }}"
|
||||
|
||||
create-google-play-release:
|
||||
|
|
|
@ -83,22 +83,42 @@ class EquipmentProfileEditBloc extends Bloc<EquipmentProfileEditEvent, Equipment
|
|||
|
||||
Future<void> _onApertureValuesChanged(EquipmentProfileApertureValuesChangedEvent event, Emitter emit) async {
|
||||
_newEquipmentProfile = _newEquipmentProfile.copyWith(apertureValues: event.apertureValues);
|
||||
emit(state.copyWith(apertureValues: event.apertureValues));
|
||||
emit(
|
||||
state.copyWith(
|
||||
apertureValues: event.apertureValues,
|
||||
canSave: _canSave(state.name, state.lensZoom),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> _onShutterSpeedValuesChanged(EquipmentProfileShutterSpeedValuesChangedEvent event, Emitter emit) async {
|
||||
_newEquipmentProfile = _newEquipmentProfile.copyWith(shutterSpeedValues: event.shutterSpeedValues);
|
||||
emit(state.copyWith(shutterSpeedValues: event.shutterSpeedValues));
|
||||
emit(
|
||||
state.copyWith(
|
||||
shutterSpeedValues: event.shutterSpeedValues,
|
||||
canSave: _canSave(state.name, state.lensZoom),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> _onIsoValuesChanged(EquipmentProfileIsoValuesChangedEvent event, Emitter emit) async {
|
||||
_newEquipmentProfile = _newEquipmentProfile.copyWith(isoValues: event.isoValues);
|
||||
emit(state.copyWith(isoValues: event.isoValues));
|
||||
emit(
|
||||
state.copyWith(
|
||||
isoValues: event.isoValues,
|
||||
canSave: _canSave(state.name, state.lensZoom),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> _onNdValuesChanged(EquipmentProfileNdValuesChangedEvent event, Emitter emit) async {
|
||||
_newEquipmentProfile = _newEquipmentProfile.copyWith(ndValues: event.ndValues);
|
||||
emit(state.copyWith(ndValues: event.ndValues));
|
||||
emit(
|
||||
state.copyWith(
|
||||
ndValues: event.ndValues,
|
||||
canSave: _canSave(state.name, state.lensZoom),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> _onLensZoomChanged(EquipmentProfileLensZoomChangedEvent event, Emitter emit) async {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
name: lightmeter
|
||||
description: Lightmeter app inspired by Material 3 design system.
|
||||
publish_to: "none"
|
||||
version: 1.0.0+54
|
||||
version: 1.0.0+55
|
||||
|
||||
environment:
|
||||
sdk: ">=3.0.0 <4.0.0"
|
||||
|
|
Loading…
Reference in a new issue