pariyatti / mobile-app

The Pariyatti mobile app
https://pariyatti.app/
GNU Affero General Public License v3.0
8 stars 11 forks source link

English color values fail on iOS #52

Closed deobald closed 3 years ago

deobald commented 3 years ago

It would appear these are not valid on iOS ... or perhaps Flutter stopped understanding them in the past 6 months.

pariyatti-ios-exception

flutter: ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
flutter: The following FormatException was thrown building OverlayInspirationCard(dirty):
flutter: Invalid radix-10 number (at character 1)
flutter: white
flutter: ^
flutter:
flutter: The relevant error-causing widget was:
flutter:   OverlayInspirationCard
flutter:   file:///Users/steven/work/pariyatti/mobile-app/lib/ui/screens/today/TodayScreen.dart:52:18
flutter:
flutter: When the exception was thrown, this was the stack:
flutter: #0      int._throwFormatException (dart:core-patch/integers_patch.dart:131:5)
flutter: #1      int._parseRadix (dart:core-patch/integers_patch.dart:142:16)
flutter: #2      int._parse (dart:core-patch/integers_patch.dart:100:12)
flutter: #3      int.parse (dart:core-patch/integers_patch.dart:63:12)
flutter: #4      OverlayInspirationCard.build (package:patta/ui/common_widgets/cards/OverlayInspirationCard.dart:136:50)
< the rest of the stack trace is elided >
NamanShergill commented 3 years ago

Fixed in https://github.com/pariyatti/mobile-app/pull/53