From 8b30c8f2c5000e9361cefc3afd279d0cea9dedf6 Mon Sep 17 00:00:00 2001 From: Valentin REVERSAT Date: Mon, 18 Sep 2023 23:28:42 +0200 Subject: [PATCH] Revert "feat(ui): set special UI for the King's Charles boat" This reverts commit e79452b88aadda74d84d0ed89577dbc3480738fc. --- lib/const.dart | 1 - lib/models/boat_forecast.dart | 6 +----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/const.dart b/lib/const.dart index cdbb3d92..df4a798e 100644 --- a/lib/const.dart +++ b/lib/const.dart @@ -150,7 +150,6 @@ class Const { static const List vowelList = ['a', 'e', 'i', 'o', 'u', 'y']; static const String oflLicenseEntryName = 'google_fonts'; static const String specialWineFestivalBoatsEvent = 'Bateaux fete du vin'; - static const String specialKingCharlesBoats = 'IRON DUKE'; static const String sentryDSNEnvKey = 'SENTRY_DSN'; static const String envKey = 'ENV'; static const String defaultEnv = 'dev'; diff --git a/lib/models/boat_forecast.dart b/lib/models/boat_forecast.dart index 411080b8..9ce25a32 100644 --- a/lib/models/boat_forecast.dart +++ b/lib/models/boat_forecast.dart @@ -1,4 +1,3 @@ -import 'package:chabo_app/const.dart'; import 'package:chabo_app/cubits/time_format_cubit.dart'; import 'package:chabo_app/extensions/boats_extension.dart'; import 'package:chabo_app/extensions/color_scheme_extension.dart'; @@ -59,10 +58,7 @@ class BoatForecast extends AbstractForecast { bool isLeaving = false; final rawBoatName = json['fields']['bateau'] as String; final boatNames = rawBoatName.split(RegExp(r'/')); - for (var boatName in boatNames) { - if (rawBoatName == Const.specialKingCharlesBoats) { - boatName = '👑 $boatName 👑'; - } + for (final boatName in boatNames) { final trimmedBoatName = boatName.trim(); isLeaving = allBoatNames.contains(trimmedBoatName); boats.add(Boat(name: trimmedBoatName, isLeaving: isLeaving));