You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 28, 2021. It is now read-only.
I am totally new to Dart and Flutter, so my knowledge is quite limited.
I am getting the following error when I use your factory contructor. The error happens a couple of seconds after the app is launching on iPhone.
Performing full restart...
Restarted app in 2,563ms.
[VERBOSE-2:dart_error.cc(16)] Unhandled exception:
type 'YamlMap' is not a subtype of type 'Map<String, dynamic>' where
YamlMap is from package:yaml/src/yaml_node.dart
Map is from dart:core
String is from dart:core
#0 new AppConfig.fromJson (package:letsvote/model.dart:91:59) #1 ConfigService.parseYaml (package:letsvote/services.dart:36:16) #2 FlutterConfigService.loadConfig (package:letsvote_mobile/services.dart:15:12)
I managed to get it running with the code in the comments.
It is a very nice example as it combines exactly what I want out of Dart (mobile and web). Dart 2 does not make the learning process easy, as many things have been broken.
If you update it to Dart 2.0 please send me a message on this issue. I will also keep an eye.
Thanks! Upgrading to Dart 2 will take some effort; it most likely involve switching the web app from Polymer to AngularDart. But I think it would be a good idea :)
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am totally new to Dart and Flutter, so my knowledge is quite limited.
I am getting the following error when I use your factory contructor. The error happens a couple of seconds after the app is launching on iPhone.
If I do not use JsonSerializable and do the initialization my self (using the code inside the comments) it works without issues:
As I said I am totally new to this and was inspired by your talks and articles on using dart for Web/Mobile, so I am trying to find my way around it.
The text was updated successfully, but these errors were encountered: