Skip to content

Commit acff7c0

Browse files
authored
Merge branch 'master' into indonesia-language-translate
2 parents c09fc03 + 650d988 commit acff7c0

25 files changed

+2299
-702
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# The .vscode folder contains launch configuration and tasks you configure in
1919
# VS Code which you may wish to be included in version control, so this line
2020
# is commented out by default.
21-
#.vscode/
21+
.vscode/
2222

2323
# Flutter/Dart/Pub related
2424
**/doc/api/
@@ -31,6 +31,7 @@
3131
.pub/
3232
/build/
3333

34+
3435
# Web related
3536
lib/generated_plugin_registrant.dart
3637

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"dart.lineLength": 100
2+
"dart.lineLength": 100,
3+
"diffEditor.ignoreTrimWhitespace": true,
34
}

AUTHORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
- Karthik Reddy (Axel) - <https://github.com/AxelBlaz3>
1515
- Ogundoyin Toluwani - <https://github.com/Tolu007>
1616
- Nenza Nurfirmansyah - <https://github.com/nenzan>
17+
- Florian Schmitz - <https://github.com/floodoo>
1718

1819
## Translators
1920

android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ if (localMapsPropertiesFile.exists()) {
5151
def wgerApiKey = wgerProperties.getProperty('WGER_API_KEY')
5252
if(wgerApiKey == null){
5353
wgerApiKey = ""
54-
project.logger.error('Wger Api Key not configured. Set it in `app/wger.properties` or in the environment variable `WGER_API_KEY`')
54+
project.logger.error('Wger Api Key not configured. Set it in `/fastlane/metadata/android/envfiles/wger.properties` or in the environment variable `WGER_API_KEY`')
5555
}
5656

5757
android {

android/fastlane/envfiles/wger.properties

Lines changed: 0 additions & 3 deletions
This file was deleted.

ios/Runner/Info.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,7 @@
4141
</array>
4242
<key>UIViewControllerBasedStatusBarAppearance</key>
4343
<false/>
44+
<key>CADisableMinimumFrameDurationOnPhone</key>
45+
<true/>
4446
</dict>
4547
</plist>

lib/helpers/misc.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ extension TimeOfDayExtension on TimeOfDay {
9393
}
9494

9595
void launchURL(String url, BuildContext context) async {
96-
await canLaunch(url)
97-
? await launch(url)
96+
await canLaunchUrl(Uri.parse(url))
97+
? await launchUrl(Uri.parse(url))
9898
: ScaffoldMessenger.of(context).showSnackBar(
9999
SnackBar(content: Text('Could not open $url.')),
100100
);

lib/models/nutrition/ingredient.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Ingredient {
2727

2828
/// Barcode of the product
2929
@JsonKey(required: true)
30-
final String code;
30+
final String? code;
3131

3232
/// Name of the product
3333
@JsonKey(required: true)

lib/models/nutrition/ingredient.g.dart

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/models/nutrition/nutritional_values.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class NutritionalValues {
9191

9292
@override
9393
//ignore: avoid_equals_and_hash_code_on_mutable_classes
94-
int get hashCode => hashValues(
94+
int get hashCode => Object.hash(
9595
energy, protein, carbohydrates, carbohydratesSugar, fat, fatSaturated, fibres, sodium);
9696
}
9797

0 commit comments

Comments
 (0)