Skip to content

Commit

Permalink
Merge branch 'develop' into feat/5741
Browse files Browse the repository at this point in the history
  • Loading branch information
g123k authored Nov 7, 2024
2 parents 0bbb3d7 + e869e15 commit 52dc7f5
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions packages/smooth_app/lib/resources/app_icons.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'dart:io';

import 'package:flutter/material.dart';
import 'package:openfoodfacts/openfoodfacts.dart';
import 'package:openfoodfacts/openfoodfacts.dart' as off;

part 'app_icons_font.dart';

Expand All @@ -15,18 +15,18 @@ class Add extends AppIcon {
}

class AddPrice extends AppIcon {
factory AddPrice(Currency currency) {
factory AddPrice(off.Currency currency) {
return switch (currency) {
Currency.GBP => const AddPrice.britishPound(),
Currency.USD => const AddPrice.dollar(),
Currency.EUR => const AddPrice.euro(),
Currency.RUB => const AddPrice.ruble(),
Currency.INR => const AddPrice.rupee(),
Currency.CHF => const AddPrice.swissFranc(),
Currency.TRY => const AddPrice.turkishLira(),
Currency.UAH => const AddPrice.ukrainianHryvnia(),
Currency.KRW => const AddPrice.won(),
Currency.JPY => const AddPrice.yen(),
off.Currency.GBP => const AddPrice.britishPound(),
off.Currency.USD => const AddPrice.dollar(),
off.Currency.EUR => const AddPrice.euro(),
off.Currency.RUB => const AddPrice.ruble(),
off.Currency.INR => const AddPrice.rupee(),
off.Currency.CHF => const AddPrice.swissFranc(),
off.Currency.TRY => const AddPrice.turkishLira(),
off.Currency.UAH => const AddPrice.ukrainianHryvnia(),
off.Currency.KRW => const AddPrice.won(),
off.Currency.JPY => const AddPrice.yen(),
_ => const AddPrice.dollar(),
};
}
Expand Down

0 comments on commit 52dc7f5

Please sign in to comment.