mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-23 07:50:42 +00:00
Merge branch 'main' of https://github.com/vodemn/m3_lightmeter into feature/ML-196
This commit is contained in:
parent
495d7a9cd1
commit
a918f067f8
4 changed files with 5 additions and 14 deletions
2
.github/workflows/run_integration_tests.yml
vendored
2
.github/workflows/run_integration_tests.yml
vendored
|
@ -12,7 +12,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
run-integration-tests:
|
run-integration-tests:
|
||||||
name: Run integration tests
|
name: Run integration tests
|
||||||
timeout-minutes: 60
|
timeout-minutes: 90
|
||||||
runs-on: macos-13
|
runs-on: macos-13
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
2
assets/release_notes/release_notes_en_1.0.0.md
Normal file
2
assets/release_notes/release_notes_en_1.0.0.md
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
- [Pro] Added the ability to create custom films.
|
||||||
|
- [Pro] Added the ability to select equipment profiles in use.
|
|
@ -1,8 +1,6 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/services.dart' show rootBundle;
|
import 'package:flutter/services.dart' show rootBundle;
|
||||||
import 'package:lightmeter/data/models/supported_locale.dart';
|
|
||||||
import 'package:lightmeter/generated/l10n.dart';
|
import 'package:lightmeter/generated/l10n.dart';
|
||||||
import 'package:lightmeter/providers/user_preferences_provider.dart';
|
|
||||||
import 'package:lightmeter/res/dimens.dart';
|
import 'package:lightmeter/res/dimens.dart';
|
||||||
|
|
||||||
class ReleaseNotesDialog extends StatelessWidget {
|
class ReleaseNotesDialog extends StatelessWidget {
|
||||||
|
@ -40,17 +38,8 @@ class ReleaseNotesDialog extends StatelessWidget {
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<String> loadReleaseNotes(BuildContext context) async {
|
Future<String> loadReleaseNotes(BuildContext context) async {
|
||||||
late final String localeName;
|
|
||||||
|
|
||||||
switch (UserPreferencesProvider.localeOf(context)) {
|
|
||||||
case SupportedLocale.ru:
|
|
||||||
localeName = SupportedLocale.ru.name;
|
|
||||||
default:
|
|
||||||
localeName = SupportedLocale.en.name;
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return rootBundle.loadString('assets/release_notes/release_notes_${localeName}_$version.md');
|
return rootBundle.loadString('assets/release_notes/release_notes_en_$version.md');
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
name: lightmeter
|
name: lightmeter
|
||||||
description: Lightmeter app inspired by Material 3 design system.
|
description: Lightmeter app inspired by Material 3 design system.
|
||||||
publish_to: "none"
|
publish_to: "none"
|
||||||
version: 0.21.0+53
|
version: 1.0.0+54
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=3.0.0 <4.0.0"
|
sdk: ">=3.0.0 <4.0.0"
|
||||||
|
|
Loading…
Reference in a new issue